cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
shaneOZ
Level 8

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
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
New Ranks and Rank Icons in April

'New Ranks and Rank Icons in April

Read the announcement for more information!

Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (9,106)