cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

How do I save Checkbox value into a single column of Excel Online Datasource with comma as separation.

Hi, 

I am working on an app where User suggest new ideas for team development. This involves filling up a form which includes something like "Idea Title", "Added_Date", "User_Name", "User_ID", "Idea_Benefits" and so on. All of the field has a textbox for user to fill it up but for the "Idea_Benefits", it should be in checkbox. Something like :-

[ / ]  Business Growth
[   ]  Workforce Improvement
[ / ]  Moral Development in Team                                         ------------------> Options to select
[   ]  Time Management

{Submit}                                        -----------------> Button to submit the selected option above

What I'm trying to achieve is that when I select some of the option and click submit, it should submit the selected value at the backend which locates in excel online in Onedrive. The output in the column in this case after submit should be like "Business Development, Moral Development in Team"

Table Name : Idea
Column Name : 'Idea_Benefits'

Hope you all can help me out with this

Thanks in advance.


1 ACCEPTED SOLUTION

Accepted Solutions
v-yutliu-msft
Community Support
Community Support

Hi @Anonymous ,

Do you want to save checked value to one row with comma as separation?

If so, I've made a similar test for your reference:

1)insert 4 checkboxes

set Checkbox1's Text:

"Business Growth"

 set Checkbox2's Text:

"Workforce Improvement"

 set Checkbox3's Text:

"Moral Development in Team"

  set Checkbox4's Text:

"Time Management"

2)the patch formula:

Patch(Idea,Defaults(Idea),
      {'Idea_Benefits':
                       Left(
                            If(Checkbox1.Value,Checkbox1.Text&",","")&
                            If(Checkbox2.Value,Checkbox2.Text&",","")&
                            If(Checkbox3.Value,Checkbox3.Text&",","")&
                            If(Checkbox4.Value,Checkbox4.Text&",",""),
                            Len(
If(Checkbox1.Value,Checkbox1.Text&",","")&If(Checkbox2.Value,Checkbox2.Text&",","")&
If(Checkbox3.Value,Checkbox3.Text&",","")&If(Checkbox4.Value,Checkbox4.Text&",","")
                                 )-1
                             )
       }
)

 

 

 

Best regards,

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

View solution in original post

1 REPLY 1
v-yutliu-msft
Community Support
Community Support

Hi @Anonymous ,

Do you want to save checked value to one row with comma as separation?

If so, I've made a similar test for your reference:

1)insert 4 checkboxes

set Checkbox1's Text:

"Business Growth"

 set Checkbox2's Text:

"Workforce Improvement"

 set Checkbox3's Text:

"Moral Development in Team"

  set Checkbox4's Text:

"Time Management"

2)the patch formula:

Patch(Idea,Defaults(Idea),
      {'Idea_Benefits':
                       Left(
                            If(Checkbox1.Value,Checkbox1.Text&",","")&
                            If(Checkbox2.Value,Checkbox2.Text&",","")&
                            If(Checkbox3.Value,Checkbox3.Text&",","")&
                            If(Checkbox4.Value,Checkbox4.Text&",",""),
                            Len(
If(Checkbox1.Value,Checkbox1.Text&",","")&If(Checkbox2.Value,Checkbox2.Text&",","")&
If(Checkbox3.Value,Checkbox3.Text&",","")&If(Checkbox4.Value,Checkbox4.Text&",","")
                                 )-1
                             )
       }
)

 

 

 

Best regards,

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

View solution in original post

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

Top Solution Authors
Top Kudoed Authors
Users online (77,187)