Thank you for visiting my site!

Home / PowerApps - Forms / Update Choice field onChange or onSelect

Update Choice field onChange or onSelect

How to preset a dropdown value

DefaultSelectedItems

Table(
        {
           Value: "your value"
        }
)

———————————————

Totorial found at:
https://powerusers.microsoft.com/t5/Building-Power-Apps/Update-Choice-field-with-a-button-OnSelect/m-p/302503

Set OnVisible = Set(ChoiceVar, Blank())

Set the OnSelect property of the “Button” to following:

Set(ChoiceVar, {Value: "Closed"})

Set the DefaultSelectedItems property of the ComboBox within the Choice field Data card to following:
If(
   !IsBlank(ChoiceVar),
   ChoiceVar,
   Parent.Default
) 


If(frmEdit.Mode = FormMode.New, LookUp( Choices('dbconn'.field), Value = "something"), Parent.Default)

ADD YOUR COMMENT