Hi @Rober1
To dynamically set a dropdown to an Option you can use Set function the code for this would be:
Set(VarSelectedItem,"SI")
and then in the Default Property of the Dropdown you would want to use this:
If(!IsBlank(VarSelectedItem),VarSelectedItem,"1")
But I am unsure what your trying to achieve with the above code as you don't need && you need to separate functions with a ; so it should be this:
If SI and NO Do the same thing:
If(
DataCardValue12.Selected.Value = "SI"||DataCardValue12.Selected.Value = "NO",
SubmitForm(EditForm1);
Navigate(BrowseScreen1, ScreenTransition.Fade))
If the SI and NO do different things:
If(
DataCardValue12.Selected.Value = "SI",
SubmitForm(EditForm1);
Navigate(BrowseScreen1, ScreenTransition.Fade),
If(DataCardValue12.Selected.Value = "NO",
SubmitForm(EditForm1);
Navigate(BrowseScreen1, ScreenTransition.Fade)))
Also an If function needs you to supply the True for each Condition you are testing so the Syntax is If(Condition, True Function, Else Function) here you will need a nested If or you could replace this with a Switch Statement:
Switch(
DataCardValue12.Selected.Value,
"IS",
SubmitForm(EditForm1);
Navigate(BrowseScreen1, ScreenTransition.Fade),
"NO",
SubmitForm(EditForm1);
Navigate(BrowseScreen1, ScreenTransition.Fade))
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. Remember, you can accept more than one post as a solution. If the content was useful in other ways, please consider giving it Thumbs Up.
Thanks
Andrew