cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted
Advocate V
Advocate V

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

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
Highlighted
Anonymous
Not applicable

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

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

 

Highlighted
Advocate V
Advocate V

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

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
secondImage

New Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

August 2020 CYST Challenge

Check out the winners of the recent 'Can You Solve These?' community challenge!

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Users online (5,121)