cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted
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
Highlighted
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

Highlighted
Helper V
Helper V

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

Highlighted
Helper V
Helper V

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

Power Platform Community Conference

Find your favorite faces from the community presenting at the Power Platform Community Conference!

Watch Now

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (7,195)