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 Platform Community / Forums / Power Apps / Navigate to a screen b...
Power Apps
Answered

Navigate to a screen based on Len & LookUp of TextInput

(0) ShareShare
ReportReport
Posted on by 37

I want to first check is TextInput2 has Len = 1. If so, I want to check if the value exists in Table1 using a LookUp function. If not, I want to navigate the user to a new screen and reset the form. the line of code would look something like this, I just don't know where to put it / how to implement it. 

 

If(Len(TextInput2) = 1, If(LookUp(Table1, RFID = TextInput2.Text).Email = Blank(), And(Navigate('New User Screen'), ResetForm(EditForm1))))

officeadmingsf_0-1626274701426.png

 

 

 

Categories:
I have the same question (0)
  • cds Profile Picture
    1,001 on at

    put it on OnChange of the textinput

  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @officeadmingsf 

     

    Another option is, Have this logic in the selection of the gallery itself. So that the user will redirect either edit screen or New mode directly if a business wants.

     

    Example

    StalinPonnusamy_0-1626277443612.png

     

     

    But if you want the logic in the edit screen then as @cds mentioned we can do onchange event

     

    If you like this post, give it a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users to find it.

  • Verified answer
    officeadmingsf Profile Picture
    37 on at

    I ended up creating a button that had Visibility settings of If(Len(TextInput2.Text) = 1, If(LookUp(Table1, RFID = TextInput2.Text).Email = Blank(),true, false), false) and OnSelect of Navigate('New User Screen'); ResetForm(EditForm1). But thank you for your suggestions!

  • v-albai-msft Profile Picture
    Microsoft Employee on at

    Hi @officeadmingsf,

    Glad that you have sloved your issue by adding a button.

    You can mark your reply as a solution. This will benefit other community members who stuck with the same question.

    Best regards,

    Allen

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 494

#2
WarrenBelz Profile Picture

WarrenBelz 352 Most Valuable Professional

#3
11manish Profile Picture

11manish 323

Last 30 days Overall leaderboard