cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
msmith
Level 8

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
Super User
Super User

Re: Required Field with Patch

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
Super User
Super User

Re: Required Field with Patch

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

msmith
Level 8

Re: Required Field with Patch

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))

msmith
Level 8

Re: Required Field with Patch

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
New Ranks and Rank Icons in April

'New Ranks and Rank Icons in April

Read the announcement for more information!

Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (9,040)