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

Change required on hidden sharepoint field

I have a sharepoint o365 list which I am editing the forms in PowerApps.  Depending on the selected item in one of the fields I am showing/hiding another fields.  This works fine.

 

I also want to tset this field as required if displayed and not if hidden - but if I try to save the form with the field hidden, the validation fails (if I change the drop down to expose the field, it is definitely that one that is failing!).

 

This is the code used: If(DataCardValue3.Selected.Value = "Physical", true, false)

 

Any ideas?  If not i'll just default the field to n/a

4 REPLIES 4
Super User III
Super User III

Hi @StevieC ,

I must admit I have not heard of that, but try putting it at the bottom and making all controls and the card zero height.

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

you mean?  The code is on the Required property of the card

@StevieC ,

No the Height of the object - this will effectively hide it without hiding it.

HeightSetting.png

 

 

 

 

 

 

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

The hiding part is working fine using the visible property of the card - or do you mean that the hiding is causing the required validation to always trigger?

Helpful resources

Announcements
New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

Top Solution Authors
Top Kudoed Authors
Users online (27,327)