Hi,
I have a form, where different hidden field appear based on information from a drop down.
Dropdown X or Y= hidden field A,
Dropdown Z = hidden field B.
I've also added the "If(BasicInfoForm.Valid,DisplayMode.Edit,Disabled)" option to the next button on my screen.
But now I can not move to the next screen, because not relevant hidden information is "required = true".
Everything is required = true, but not all the information is always relevant.
Is it possible to make the required option match the visible option?
I have followed this video when creating my app:
Multiple Screen Form Control in Power Apps - YouTube
At the end Reza creates a variable for the view and edit buttons. Probably because of the hidden mandatory field, I can not navigate in view mode to the 2nd form.
Thanks!
@Mihály The Form.Valid is an aggregate of Data_Card1.Valid && Data_Card2.Valid && Data_Card3.Valid .... values
To only pick and choose some, you have to pick and choose them manually
Instead of BasicInfoForm.Valid
you must use
Data_Card1.Valid && Data_Card2.Valid && Data_Card3.Valid
only picking and choosing the Data Cards you want to validate rather than those of whole form.
Check if above might help.
Hi,
thanks for your help.
I know the above. If I set the column as required in MS List, it doesn't make it required in the app. (refreshed the data) or I'm doing something wrong? When I set the Required property to true, it makes the issue I wrote above. Apparently hidden and required fields are also validated with this function: "If(BasicInfoForm.Valid,DisplayMode.Edit,Disabled)". Is there a way to add more condition? Or add a condition to the required option?
The visibility of the field is determined like this:
"If(DataCardValue11.Selected.Value="Severe incident",true,false)Or If(DataCardValue11.Selected.Value="If(DataCardValue11.Selected.Value="Severe incident",true,false)Or If(DataCardValue11.Selected.Value="Important information. Ongoing issue",true,false)"
Can I add something similar to the Required option?
Check your data source. If the field is required through a business rule, setting on the underlying field, or otherwise through the data source directly, the Required cannot be changed at all from Canvas App. The only way to change the Required for those is to change the setting directly on the data source. How to do this varies depending on what the data source is.
Presuming the data source does not require it, just go to the Field on the Form on the Canvas App you want to change the requirement for, go to the Required property, and put true in formula bar to make it required, false to make it not required. If the formula bar is grayed out, make sure to unlock the data card first, and then try this again.
Besides the formula bar, there is another way to change the "Required" property on a Canvas App field . It can also be changed from the very right side of the screen, after selecting the data card with the field on it on the Canvas App in Power Apps Studio - then on the very right side, under "Required" - changing the value in that text box - put it true to make it required, false to make it not required. The data card must still be unlocked first (you can do it by clicking on the padlock near "Unlock to change properties"
WarrenBelz
791
Most Valuable Professional
MS.Ragavendar
410
Super User 2025 Season 2
mmbr1606
275
Super User 2025 Season 2