So my SP List have questions that required just Yes or No. And I set the Column Type to Yes/No.
In my test PowerApps app I am using Radio input of 'Yes' or 'No' as opposed to '1' or '2'.
I'm using Patch() function to update the SP List.
Patch('LBCC Checkin Online',Defaults('LBCC Checkin Online'),{Title:User().FullName,Question1:Radio1.Selected})
Getting error: The type of this argument 'Question1' does not match the expected type 'Boolean'. Found type 'Record'.
I am not sure if I want to do Single Line Text in SP List which I can get to work. TBH.
Solved! Go to Solution.
Hi @devdotme ,
I suspect you have a Boolean field (Yes/No) behind the Radio button option and I see you have hard-coded ["Yes","No"] as the Items, so try this
Patch(
'LBCC Checkin Online',
Defaults('LBCC Checkin Online'),
{
Title:User().FullName,
Question1:
If(
Radio1.Selected.Value="Yes",
true,
false
)
}
)
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. If the content was useful in other ways, please consider giving it Thumbs Up.
Hi @devdotme ,
I suspect you have a Boolean field (Yes/No) behind the Radio button option and I see you have hard-coded ["Yes","No"] as the Items, so try this
Patch(
'LBCC Checkin Online',
Defaults('LBCC Checkin Online'),
{
Title:User().FullName,
Question1:
If(
Radio1.Selected.Value="Yes",
true,
false
)
}
)
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. If the content was useful in other ways, please consider giving it Thumbs Up.
Thank you so much.
Thank you @WarrenBelz! This worked great.
I didn't think I'd find an answer close to what I needed for my Patch function in my form.
User | Count |
---|---|
125 | |
87 | |
86 | |
75 | |
69 |
User | Count |
---|---|
216 | |
181 | |
140 | |
97 | |
83 |