In my app I have an Input Box that once the user clicks, opens a Search Box that the user can search a name and then choose and repopulate the Input Box. I set the OnSelect state of the Input Box with a variable that will trigger the visible state of the Search Box. I then put under the set command a SetFocus to move it to the newly visible Search Box.
When the user clicks the Input Box makes the Search Box visible, but you have to click the Input Box again to make it move focus. Not sure why it will not do both commands in the OnSelect of the Input Box.
Solved! Go to Solution.
Hi @dakridge,
I would like to first say thank you to you for finding this weird behavior. I can confirm the following behavior:
While I cannot say why this happens, if this is preventing you from achieving the desired behavior, I do have a workaround.
Set(showVar, false)
!showVar
Set(showVar, true); SetFocus(TextBox2)
Here is the behavior in both scenarios:
Let me know if this helps.
---
If you like this reply, please give kudos (Thumbs Up). And if this solves your problem, please mark this reply as a solution by selecting Accept as Solution. This makes it easier for others to find answers to similar questions.
Thanks!
Hardit Bhatia
Microsoft Business Applications MVP
Blog | Twitter | LinkedIn | Facebook | YouTube | Email
Hi @dakridge,
I would like to first say thank you to you for finding this weird behavior. I can confirm the following behavior:
While I cannot say why this happens, if this is preventing you from achieving the desired behavior, I do have a workaround.
Set(showVar, false)
!showVar
Set(showVar, true); SetFocus(TextBox2)
Here is the behavior in both scenarios:
Let me know if this helps.
---
If you like this reply, please give kudos (Thumbs Up). And if this solves your problem, please mark this reply as a solution by selecting Accept as Solution. This makes it easier for others to find answers to similar questions.
Thanks!
Hardit Bhatia
Microsoft Business Applications MVP
Blog | Twitter | LinkedIn | Facebook | YouTube | Email
Leave it to me to be trying to do something strange. Thank you for confirming and for the work around.
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
User | Count |
---|---|
201 | |
47 | |
43 | |
40 | |
36 |
User | Count |
---|---|
289 | |
81 | |
81 | |
79 | |
71 |