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

Notifications

Announcements

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:
I have the same question (0)
  • KimBim Profile Picture
    157 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
    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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard