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

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

 

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

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Apps Community!

Top Solution Authors
Top Kudoed Authors
Users online (7,866)