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

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Did you miss the call? Check out the recording here!

Top Solution Authors
Top Kudoed Authors
Users online (78,660)