cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
FShaw19
Regular Visitor

How to hide forms based on radio button?

Hello: How to hide a field in the view from only if not blank but show in edit & new forms. Building PowerApps forms for Sharepoint. Thank you in advanced.

1 ACCEPTED SOLUTION

Accepted Solutions
v-xida-msft
Community Support
Community Support

Hi @FShaw19,

Could you please share a bit more about your scenario?

Do you want to hide a field data card within your View Form if the field value is blank?

I agree with @AndySid 's thought almost. I have made a test on my side, please take a try with the following workaround:

Within your View Form, set the Visible property of the corresponding Data card  control to following:

If(IsBlank(ThisItem.ColumnName), false, true)

 

In addition, if you want to hide a field (Data card) within your View Form based on Radio button control, please take a try with the following formula:

Set the Visible property of the Data card control to following:

If(Radio1.Selected.Value = "A specific value", false, true)

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
AndySid
Resolver II
Resolver II

Hi, you can try something like this in the visible property of the datacard.

If(IsBlank(ThisItem.fieldName),false,true)
v-xida-msft
Community Support
Community Support

Hi @FShaw19,

Could you please share a bit more about your scenario?

Do you want to hide a field data card within your View Form if the field value is blank?

I agree with @AndySid 's thought almost. I have made a test on my side, please take a try with the following workaround:

Within your View Form, set the Visible property of the corresponding Data card  control to following:

If(IsBlank(ThisItem.ColumnName), false, true)

 

In addition, if you want to hide a field (Data card) within your View Form based on Radio button control, please take a try with the following formula:

Set the Visible property of the Data card control to following:

If(Radio1.Selected.Value = "A specific value", false, true)

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (1,937)