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 / Edit text field OnVisible
Power Apps
Answered

Edit text field OnVisible

(0) ShareShare
ReportReport
Posted on by 37

How can I make it so that when a user navigates to EditScreen1 it automatically is set up so that TextInput2 is being edited? To clarify, I am going to have an RFID reader enter a string of numbers when a badge is scanned and I need TextInput2 to be ready to receive this string OnVisible. 

officeadmingsf_0-1626192518629.png

 

Categories:
  • KimBim Profile Picture
    159 on at

    You could use a context variable that you pass as you navigate the screen:

     

    Navigate(EditScreen1,fade,{loc_displaymode:DisplayMode.Edit})

    When you have finished your data input, you can update this variable again with the UpdateContext() function.

    UpdateContext({loc_displaymode:DisplayMode.Disabled})

     

  • officeadmingsf Profile Picture
    37 on at

    I am still confused, could you please explain further? So when I click a button on a separate screen which has value Navigate(EditForm1), I should change that to Navigate(EditScreen1, {loc_displaymode:DisplayMode.Edit})? How would this make TextInput2 edited? Then, where would I put the function UpdateContext({loc_displaymode:DisplayMode.Disabled})? I want the text field to stop being edited after a certain number of characters. Where would I put an if statement to that effect?

  • Verified answer
    officeadmingsf Profile Picture
    37 on at

    update,  I had to use setfocus()

  • askondo Profile Picture
    Microsoft Employee on at

    @officeadmingsf Thank you for your feedback on the results of the solution. Your feedback will help other users of the forum.

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 383 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 356

#3
WarrenBelz Profile Picture

WarrenBelz 232 Most Valuable Professional

Last 30 days Overall leaderboard