Announcements
Hi @powertwo123,
You write this With() formula for the OnSelect property of Button2_1?
Could you please tell me that if you userrecord1.Role.Value returns Admin or not?
Based on your formula, wether the varuser is blank or not depends on if userrecord1.Role.Value returns Admin.
If it does return Admin, then, your varuser does return blank because the Switch() statement only process the Navigate() function.
Hi @powertwo123 ,
It is because you have it inside a Switch statement and it the first part works, it will never run. I am not totally clear on you model, but I think you need something like this.
If( LookUp( owner, Title = TextInput1.Text And Password=TextInput1_1.Text ).Role.Value = "Admin", Navigate(Wattala) ); Set( varuser, TextInput1.Text )
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
MVP (Business Applications) Visit my blog Practical Power Apps
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.
Congratulations to our 2026 Super Users!
Congratulations to our 2025 community superstars!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
11manish 541
WarrenBelz 434 Most Valuable Professional
Valantis 289