How to set up drop down default value to a text

I have a Powerapp that is connected to a Flow and the Flow will write to a SharePoint list.

I have couple of dropdown box in Power app and those are getting items from the SahrePoint list choise field.

When the Power app Button onselect I m running a Flow, but based on the user slections(user request type) some dropdowns are hidden and so that means user is not selecting any item for those hidden dropdowns,

the issue is when I try to run the flow button click for this type of senario I m getting an error as follows

Run failed: The method 'Run' has an invalid value for parameter

I think this has happen as I have used Ask Powerapp value in my Flow for those dropdown fields,so it is expecting a value to pass from Power app to Flow

So what I m thinlkin in this case to avoid the issue, if user hasnt select a value from the drop down set up a default value to pass to flow to make the flow triggers correctly.

note- I have set up txt box default to " ", then the flow is working, but I dont know how can I set up this on drop downs.

Can someone please hekp to et up dafult value on drop down.

I follow the instruction on the following thread but still not working for me

Re: How to set up drop down default value to a text

I have used { Value:""}, working for me, as attached screenshot I can now make default to "", when the user select Request type is to exit staff then the hardware required dropdown and some other unrelevent dropdowns are hidden, so then user cannot enter/select any value on those hidden controls, so the default is "" and with this deafult value when the flow calls it will take " " value and run the flow succesfully.

Default Drop down Value

thanks for this.

But the other issue is now I have mutliple selction called Additional sw , but when I use {Value:""} it will give me an error same as my oraginal error. can you please tell me how can I set up a default to "" on multiple selection , because when the user select exit staff for request type this Additional sw control will hidden and so I would like to pass a default value for this to satisfied the flow.

Re: How to set up drop down default value to a text

You will want to first make sure that the Default property of your DropDown is correct and that some value is selected.

Then, make sure you are passing the Value to the Flow in your Parameter (dropDown.Selected.Value)

If that is not what you're looking for, then you can consider using the Coalesce function to render a default. So your parameter would be Coalesce(dropDown.Selected.Value, "yourDefault"). That will pass, either the selected value, or the "default"...whichever is first to be not blank/empty.

I hope that helps you some and give you more fuel for thought.

_____________________________________________________________________________________Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.

Could you please show more details about the Dropdown box that you mentioned? Is it Dropdown controls or ComboBox controls?

If the Dropdown box that you mentioned is a Dropdown control, I think your issue is not related to the hidden Dropdown controls. In Default, the result the Dropdown1.Selected.Valueformula returns is a first option value within the Dropdown control rather than Blank.

I suppose that the Dropdown box that you mentioned is a ComboBox control, is it true? If the Dropdown box you mentioned is Combo Box control, and you want to set a Default value within it, I have made a test on my side, please take a try with the following workaround:

Re: How to set up drop down default value to a text

I have used { Value:""}, working for me, as attached screenshot I can now make default to "", when the user select Request type is to exit staff then the hardware required dropdown and some other unrelevent dropdowns are hidden, so then user cannot enter/select any value on those hidden controls, so the default is "" and with this deafult value when the flow calls it will take " " value and run the flow succesfully.

Default Drop down Value

thanks for this.

But the other issue is now I have mutliple selction called Additional sw , but when I use {Value:""} it will give me an error same as my oraginal error. can you please tell me how can I set up a default to "" on multiple selection , because when the user select exit staff for request type this Additional sw control will hidden and so I would like to pass a default value for this to satisfied the flow.