cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
manjotsingh057
Level: Powered On

Set Field drop down on form

I want to set drop down value on form based on toggle button value.

 

I tried to set the "default" property of dropdown to toggle1.value but it shows error saying property expects record values but return boolean value.

 

Also any other way to set value of dropdown field apart from patch?

 

Need support to correct above issue.

 

Also is there any way by which we can connect toggle control directly to dropdown field containing yes/no ?

 

 

Thanks

Manjot Singh

3 REPLIES 3
Meneghino
Level 10

Re: Set Field drop down on form

You need to set the Default property of the dropdown to something like this:

If(Toggle1.Value, "Default value if true", "Default value if false")

Where the default values are the text of what needs to be selected.

If your values are "Yes" and "No" then something like this:

If(Toggle1.Value, "Yes", "No")
manjotsingh057
Level: Powered On

Re: Set Field drop down on form

Thanks @Meneghino,

 

Also i am trying to use radio button for choice field as we use in out of the box form.

 

Even if we select render as radio button, powerapp renders it as dropdown only. Is there any other way to do this ?

Meneghino
Level 10

Re: Set Field drop down on form

Helpful resources

Announcements
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 (Last 30 Days)
Users online (5,006)