cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
shaneOZ
Responsive Resident
Responsive Resident

Is it possible to only show datacard column in a editform with onselect or similar

Hi,

 

I have an app that would strongly benifit the users if several datacards where not visable unless a button was pressed? Is it able to be a dropdown and the dropdowns selection be the same as the columns names? 

 

ie dropdown with items "[Fault1],[Fault2],[Fault3],[Fault4]"

and if you select say on the dropdown fault3 only the fault3 dropdown appears? 

 

Is this possible?

1 ACCEPTED SOLUTION

Accepted Solutions
Office365Master
Advocate V
Advocate V

You can't reference the value from the dropdown control directly.

 

What you should alternatively do is use a variable that you set on the OnSelect property on the DropDown control, and then show or hide thedropdown control (or data card for that matter) based on the value of the variable.

 

For example:

 

Dropdown1 OnSelect : UpdateContext({ fault_v: Dropdown1.Selected.Value })

 

DropDown1_1  Visible : fault_v =“Fault1"

DropDown1_2 Visible = fault_v =“Fault2”

DropDown1_3 Visible = fault_v =“Fault3”

DropDown1_4 Visible = fault_v =“Fault4”

 

The question however is somewhat ambiguous - do you want to hide different data cards or hide different DropDown controls? Nonetheless similar logic would apply.

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi

 

I tryed to make an application with what I understood.

 

I created 5 dropdowns :

 

DropDown1 (principal)  -> Items ["Fault1";"Fault2";"Fault3";"Fault4"]

 

DropDown1_1          Visible = If(Dropdown1.Selected.Value = "Fault1";true;false)

DropDown1_2          Visible = If(Dropdown1.Selected.Value = "Fault2";true;false)

DropDown1_3          Visible = If(Dropdown1.Selected.Value = "Fault3";true;false)

DropDown1_4          Visible = If(Dropdown1.Selected.Value = "Fault4";true;false)

 

Best regards

 

Louis

 

Office365Master
Advocate V
Advocate V

You can't reference the value from the dropdown control directly.

 

What you should alternatively do is use a variable that you set on the OnSelect property on the DropDown control, and then show or hide thedropdown control (or data card for that matter) based on the value of the variable.

 

For example:

 

Dropdown1 OnSelect : UpdateContext({ fault_v: Dropdown1.Selected.Value })

 

DropDown1_1  Visible : fault_v =“Fault1"

DropDown1_2 Visible = fault_v =“Fault2”

DropDown1_3 Visible = fault_v =“Fault3”

DropDown1_4 Visible = fault_v =“Fault4”

 

The question however is somewhat ambiguous - do you want to hide different data cards or hide different DropDown controls? Nonetheless similar logic would apply.

View solution in original post

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

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

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.

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Users online (1,127)