Hello, I have a logic issue that might be solved in a simpler way.
Currently, I have a form with various response options through radio buttons. The field in the SharePoint list is a text field.
I retrieve the table containing my list choices:
ClearCollect(Positivt;
{Indexnr:"1";Urval:"Alltid"};
{Indexnr:"2";Urval:"Ofta"};
{Indexnr:"3";Urval:"Ibland"};
{Indexnr:"4";Urval:"Sällan"};
{Indexnr:"5";Urval:"Aldrig"};
{Indexnr:"6";Urval:"Vet inte"}
)
The text box is named = txtFragaVal.Text
The code is LookUp(gyelevenkatfraga; Indexordning = Parent.DisplayName).Radioval
This code ensures that the correct radio button selection is displayed in the question.
If(txtFragaVal.Text = "PositivStamma.Urval"; PositivStamma.Urval;
If(txtFragaVal.Text = "Positivt.Urval"; Positivt.Urval;
If(txtFragaVal.Text = "Negativt.Urval"; Negativt.Urval;
If(txtFragaVal.Text = "PositivtBemot.Urval"; PositivtBemot.Urval;
If(txtFragaVal.Text = "PositivtHjalp.Urval"; PositivtHjalp.Urval;
If(txtFragaVal.Text = "PositivHallamed.Urval"; PositivHallamed.Urval;
If(txtFragaVal.Text = "PostivtPaverka.Urval"; PostivtPaverka.Urval;
If(txtFragaVal.Text = "PositivStamma.Urval"; PositivStamma.Urval
)))))))))
Can I combine and directly integrate this into my radio button choices in PowerApps, instead of using an IF statement for each question and an additional text box?
