Hi community,
I have this multi-language app with a simple Yes/No choice. I was able to translate the choices using a collection.
In App.Onstart:
ClearCollect(
colYesNo,
{
language: "en",
text: "Yes",
value: "Oui"
},
{
language: "en",
text: "No",
value: "Non"
},
{
language: "fr",
text: "Oui",
value: "Oui"
},
{
language: "fr",
text: "Non",
value: "Non"
}
);
I added a form component and have chosen the field I want to update. The field in sharepoint is a choice column with "Oui/Non" answer.
In PowerApps, I changed the dropdown list to a radio button control. I'm using the collection to show to the user the Yes/No option in their language.
Radio.OnChange:
UpdateContext({currentAnswer: Self.Selected.value})
Radio.Default:
LookUp(colYesNo,value=currentAnswer && language=varUserLanguage).text
Radio.Items:
Filter(colYesNo,language=varUserLanguage)
(Value: text)
In the Radio.Datacard.Update, I use:
Radio4_1.Selected
Now each time I submit the form, Sharepoint does not save the value of the radio button.
I tried to change the Radio.Datacard.Update to
Radio4_1.Selected.value
but i get an error "Expected record".
What did I miss?