web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id : ScM+fzeFf4i/5YwGJvbRty
Power Apps - Building Power Apps
Answered

Hidden mandatory fields

Like (1) ShareShare
ReportReport
Posted on 19 Oct 2021 07:02:57 by 28

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!

 

Categories:
  • Verified answer
    poweractivate Profile Picture
    11,078 Most Valuable Professional on 20 Oct 2021 at 11:01:17
    Re: Hidden mandatory fields

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

     

  • Mihály Profile Picture
    28 on 20 Oct 2021 at 10:53:03
    Re: Hidden mandatory fields

    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?

     

     

  • poweractivate Profile Picture
    11,078 Most Valuable Professional on 19 Oct 2021 at 07:28:21
    Re: Hidden mandatory fields

    @Mihály 

     

    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"

     

    poweractivate_0-1634628601609.png

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410 Super User 2025 Season 2

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 2

Loading complete