cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Required Field with Patch

I have a form with multiple pages with one required field on each page. To submit all the pages from the last page I am using the Patch function. So the person filling out the form from page to page will not know it is required until the very end. How can I make it so they need to fill in the required text field before clicking on "Next Page"?

1 ACCEPTED SOLUTION

Accepted Solutions
leyburn19
Memorable Member
Memorable Member

Create an overaly using 

1. A rectangle that covers the whole screen. Set its fill to be .5 on the last RGBA property.  This will make it semi transparent

2. Put a label with an error message on top of that 

3. Put an Icon X on the top corner of teh label

 

All of these will be on top of the whole view.  The first rectangle over everything prevents user from clicking anything else

 

Now Select all three items at the same time and set the visible property to be vaiable eg: MyVis

On the X icon set its onselect to be Set(MyVis,false)

 

Then on your next button to something like:

 

If(Isblank(textboxname),Set(MyVis,true),Navigate(to next screen)

 

This should do a popup effect with a message to the user if they do not fill in the field

View solution in original post

3 REPLIES 3
leyburn19
Memorable Member
Memorable Member

Create an overaly using 

1. A rectangle that covers the whole screen. Set its fill to be .5 on the last RGBA property.  This will make it semi transparent

2. Put a label with an error message on top of that 

3. Put an Icon X on the top corner of teh label

 

All of these will be on top of the whole view.  The first rectangle over everything prevents user from clicking anything else

 

Now Select all three items at the same time and set the visible property to be vaiable eg: MyVis

On the X icon set its onselect to be Set(MyVis,false)

 

Then on your next button to something like:

 

If(Isblank(textboxname),Set(MyVis,true),Navigate(to next screen)

 

This should do a popup effect with a message to the user if they do not fill in the field

View solution in original post

Anonymous
Not applicable

I can't seem to get this working.

 

I have all three new objects set to Visible=set(MyVis)

The X as Onselect=set(MyVis,false)

Next button as If(IsBlank(DataCardValue116),Set(MyVis,true),NewForm(Form_2);Navigate('Page2',ScreenTransition.Fade))

Anonymous
Not applicable

Thanks for the help, I was able to resolve this with your script by adding to the page OnVisible=Set(MyVis,false)

 

Then on the three objects visible=(MyVis)

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (2,695)