cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Helper V
Helper V

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

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

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
News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

Power Apps Community Call

Power Apps Community Call- January

Mark your calendars and join us for the next Power Apps Community Call on January 20th, 8a PST

PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

Top Solution Authors
Top Kudoed Authors
Users online (11,981)