
Announcements
hello,
I have an app form based on a sharepoint list. i have 2 choices columns, one with each of the provinces, and another with "french" or "English"
I would like to update the default selection for the language to "french" if the user chooses "Quebec" as the province.
the code i have currently in the DefaultSelectedItems property is If(ThisItem.Province.Value="Quebec","French","English").
do i need to nest the choices in a search formula first? what am i missing?
Hi @ogopogoelmo,
The DefaultSelectedItems expects a table / object value. Additionally, the value linked to ThisItem will only change after the Form submission. Should you want to change the radio button value based on the current selection, use DataCardValue.Selected.Value instead:
If(
//For the current selection use: DataCardValue.Selected.Value (adjust DataCardValue to the correct combobox name)
ThisItem.Province.Value="Quebec",
{Value: "French"},
{Value: "English"}
)
If this solves your question, would you be so kind as to accept it as a solution. ✔️
If you liked my solution, please give it a thumbs up. 👍