Hi All,
I'm setting up apps with forms that require the user to scroll down to enter more info. I currently have the Submit button on a custom DataCard at the bottom of the form. This works fine but I'm wondering if there is a more elegant way of doing it.
My question is: is it possible to hide the Submit button until the user has scrolled to the end of the form or gallery?
Kev
Solved! Go to Solution.
I'm not sure if more elegant, as I quite like your method, but you could have the Submit button outside your form and then check for IsBlank() in those datacardvalue items, in their order, and the first one that is false you'd use SetFocus to jump the user immediately to that field?
So pseudocode for the Button's OnSelect would be something like:
If( IsBlank(Item1.Text),
SetFocus(Item1),
IsBlank(Item2.Text),
SetFocus(Item2),
etc
etc
//else value
,
Submit(FormName)
)
Could you give that a try and let me know how you get on?
Cheers,
Sancho
@iAm_ManCat |
Please 'Mark as Solution' if someone's post answered your question and always 'Thumbs Up' the posts you like or that helped you! |
Thanks! |
I'm not sure if more elegant, as I quite like your method, but you could have the Submit button outside your form and then check for IsBlank() in those datacardvalue items, in their order, and the first one that is false you'd use SetFocus to jump the user immediately to that field?
So pseudocode for the Button's OnSelect would be something like:
If( IsBlank(Item1.Text),
SetFocus(Item1),
IsBlank(Item2.Text),
SetFocus(Item2),
etc
etc
//else value
,
Submit(FormName)
)
Could you give that a try and let me know how you get on?
Cheers,
Sancho
@iAm_ManCat |
Please 'Mark as Solution' if someone's post answered your question and always 'Thumbs Up' the posts you like or that helped you! |
Thanks! |
Stay up tp date on the latest blogs and activities in the community News & Announcements.
Mark your calendars and join us for the next Power Apps Community Call on January 20th, 8a PST
Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.
User | Count |
---|---|
203 | |
184 | |
71 | |
43 | |
33 |
User | Count |
---|---|
336 | |
265 | |
116 | |
66 | |
66 |