cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Asy
Level: Powered On

Multiple checkboxes in one DataCard

Hello,

 

I would like to create two checkboxes for a yes/no answer in my datacard in my form, how can I proceed ?

 

I already made the "yes" checkbox and it's working, which means when I checked yes it appears yes in my datasource. But when I put an other checkbox for the no answer it doesn't work anymore.

 

Can you please help me with this issue ?

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Multiple checkboxes in one DataCard

HI @Asy ,

Could you please share a screenshot about your app's configuration?

Which column do you used to store the Checkbox value within the Data card in your Edit form to your data source?

Further, could you please share a bit more about your data source?

 

I have made a test on my side (my data source is a SP list), and don't have the issue that you mentioned. Please take a try with the following workaround:3.JPG

Within the CheckBoxValue Data card in my Edit form, add two CheckBox controls. One (CheckBox1) for Yes answer and another (CheckBox2) for No answer.

Set the Update property of the CheckBoxValue Data card which contains the two CheckBox controls to following:

If(Checkbox1.Value = true, "Yes", Checkbox2.Value = true, "No")

On your side, you should set Update property of the corresponding Data card which contains the two CheckBox controls to following:

If(Checkbox1.Value = true, "Yes", Checkbox2.Value = true, "No")

Note: On my side, the data source within my app is a SP list. And I use a Single line of text type column to store the CheckBox value.

 

If your data source in your app is also a SP list, and you use a Yes/No type column to store the CheckBox value. Please consider take a try to modify above formula as below:

If(Checkbox1.Value = true, true, Checkbox2.Value = true, false)

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
2 REPLIES 2
BenFetters
Level 8

Re: Multiple checkboxes in one DataCard

Hello,

 

If I understood you correctly, you have two fields that require a Yes/No answer. I would just have the one check box in one datacard and another one in the other. Also, maybe try unlocking the data card when you have it selected by clicking the data card and then going to "Advanced" and then unlocking the data card. I forget to do this sometimes. Lastly, while selecting the datacard, you can go to the "Update" property and this will allow you to select whice control is being used to update your datasource. If you had two checkboxes, it wouldn't really work because you would have to just choose one per field or datacard.

 

Did that help at all? 

Kind regards,

Ben

Community Support Team
Community Support Team

Re: Multiple checkboxes in one DataCard

HI @Asy ,

Could you please share a screenshot about your app's configuration?

Which column do you used to store the Checkbox value within the Data card in your Edit form to your data source?

Further, could you please share a bit more about your data source?

 

I have made a test on my side (my data source is a SP list), and don't have the issue that you mentioned. Please take a try with the following workaround:3.JPG

Within the CheckBoxValue Data card in my Edit form, add two CheckBox controls. One (CheckBox1) for Yes answer and another (CheckBox2) for No answer.

Set the Update property of the CheckBoxValue Data card which contains the two CheckBox controls to following:

If(Checkbox1.Value = true, "Yes", Checkbox2.Value = true, "No")

On your side, you should set Update property of the corresponding Data card which contains the two CheckBox controls to following:

If(Checkbox1.Value = true, "Yes", Checkbox2.Value = true, "No")

Note: On my side, the data source within my app is a SP list. And I use a Single line of text type column to store the CheckBox value.

 

If your data source in your app is also a SP list, and you use a Yes/No type column to store the CheckBox value. Please consider take a try to modify above formula as below:

If(Checkbox1.Value = true, true, Checkbox2.Value = true, false)

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Users Online
Currently online: 113 members 4,233 guests
Please welcome our newest community members: