0

I have a drop-down field in my form, I am using below code on select:

DataCardValue7.Selected.Value= "9:00 AM"

Also tried with passing variable:

DataCardValue7.Selected.Value= varTime
3
  • Do you want to set default value of drop-down? Or set value of drop-down on selection of other control? Jul 24, 2019 at 7:14
  • yes, setting dropdown value when other control is selected
    – KumarV
    Jul 24, 2019 at 7:27
  • Try creating a variable and then set its value on change of first control and use this variable as default value for your dropdown. Jul 24, 2019 at 7:33

1 Answer 1

3

Try below steps:

  1. Create one variable in PowerApps. Let Say, Testvariable.
  2. OnChange of your first control, Update the value of this variable like:

    UpdateContext({Testvariable: Dropdown1.Selected.Value})

  3. Then Set Default property of your second drop-down with this variable.

Reference:

Change dropdown value OnSelect.

1
  • Hi KumarV does this answers your question? If yes, Please Upvote and accept it as an answer so that it will help others with same question to find the correct answer easily. It also removes the question from "Unanswered questions" list. Oct 28, 2020 at 3:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.