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

Default Value for a ComboBox based on a Dropdown (Custom Form)

I have a dropdown (DropDown1) with 3 options:

 

Arenas

Allocations

Exhibitions

 

 

If Arenas is selected, I would like aComboBox which has the below options:

 Capture.PNG

 

 

 

 

 

 

 

 

 

 

 

 

 

 

To automatically select the "NEC Group Arenas" option.

 

ComboBox "Items" = Choices('Event Form'.BusinessAccountType)

 

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Default Value for a ComboBox based on a Dropdown (Custom Form)

Hi @jpacettf,

 

You could achieve this by setting below formula in the DefaultSelectedItems property of the combo box control:

If(Dropdown1.Selected.Value="Allocations",First(Choices('Event Form'.BusinessAccountType)),
Dropdown1.Selected.Value="Arenas",Last(FirstN(Choices('Event Form'.BusinessAccountType),2)),
Dropdown1.Selected.Value="Exhibitions",First(LastN(Choices('Event Form'.BusinessAccountType),2)))

Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Community Support Team
Community Support Team

Re: Default Value for a ComboBox based on a Dropdown (Custom Form)

Hi @jpacettf,

 

You could achieve this by setting below formula in the DefaultSelectedItems property of the combo box control:

If(Dropdown1.Selected.Value="Allocations",First(Choices('Event Form'.BusinessAccountType)),
Dropdown1.Selected.Value="Arenas",Last(FirstN(Choices('Event Form'.BusinessAccountType),2)),
Dropdown1.Selected.Value="Exhibitions",First(LastN(Choices('Event Form'.BusinessAccountType),2)))

Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

jpacettf
Level 8

Re: Default Value for a ComboBox based on a Dropdown (Custom Form)

@v-monli-msft Perfect! Many Thanks

Helpful resources

Announcements
thirdimage

Power Apps Super User Class of 2020

Check it out!

thirdimage

New Badges

Check it out!

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors
Users online (5,529)