web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Apps
Answered

Lost in Logic

(0) ShareShare
ReportReport
Posted on by 648

Hello 
I am using 
'Office365-användare'.MyProfile().OfficeLocation to find a given number of location of the employee
But when a specific number shows i want my textinput to show the number , but be able to write 4 different values

Exampel 
User login in and the 6010 Is the Location value
I need my textbox to allow that user to be able ro change the value from 6010 to  6020 , 6030 or 6040 
and back to 6010

Everey other Values in login have to bee read only 


I Think that IsMatch function but i am totaly lost here 




 

Categories:
I have the same question (0)
  • Verified answer
    dalacarelia_196 Profile Picture
    648 on at

    I was able to solve this by my selfe 

    In onchange of the txtfield  i was "asking the value of " Officelocation  and make that textfield as numbers 

    In the logic the can use numbers bettween 6161 to 6181 if location is 6161  

     

    If(Value(txtenhet.Text) = 6161 ;

    If(
    Value(txtkst.Text)>= 6161 && Value(txtkst.Text)<=6181 ;
    UpdateContext({Error2:false});Reset(txtkst);
    UpdateContext({Error2:true})
    );false)

     

    dalacarelia_196_0-1662100524985.png

    Texfileds warning is erros warnings

    dalacarelia_196_1-1662100819551.png

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 392 Most Valuable Professional

#2
11manish Profile Picture

11manish 136 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 109 Super User 2026 Season 2

Last 30 days Overall leaderboard