JP.jpg

Hi.

Welcome to SharePoint Simply. I am a non-technical SharePoint person just like you. Follow along while I learn things and help you do them.

PowerApps: Show field based on value in another field

Time to do this: 1 minute

It’s all about the syntax. It really is.

Let’s say you have a form in Microsoft PowerApps and you have a number of fields displayed. You want a particular field to show up ONLY if the value selected in another field matches some kind of condition. For example:

“I want to show field two when someone selects “change” in the field one dropdown.”

It looks like this:

Make sure you’re using the “DataCardValue” name in your function for conditional display.

Make sure you’re using the “DataCardValue” name in your function for conditional display.

Here’s a function on the “Visible” field status. It looks at the value from my NewChange data card and displays the ChangeType data card if the value for NewChange is “Change.”

Here’s a function on the “Visible” field status. It looks at the value from my NewChange data card and displays the ChangeType data card if the value for NewChange is “Change.”

So to break that down:

Visible = The status of the field that you are adjusting.

IF = Building the conditional statement (if this happens, then do a thing)

DataCardValue2.Selected.Value = The actual field for the card I’m interested in. The “selected.value” translates to what value a user selected for that field.
”Change” = in my case, one of the available values in my field is Change, so I put that in as a string.

True,False = This just wraps up the condition. It says if that selected value equals what you said you wanted, the default visibility setting is to display. If the selected value isn’t what you specified, visibility will evaluate to false and the field won’t display.

Microsoft Flow: Error "we are unable to find the site address. please try selecting a site address from the dropdown"

Microsoft Flow: Email addresses in conditions are case sensitive