cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

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
Highlighted
Community Support
Community Support

Hi @rgane ,

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
Highlighted
Community Support
Community Support

Hi @rgane ,

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
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Community Highlights

Community Highlights

Check out the Power Platform Community Highlights

Top Solution Authors
Top Kudoed Authors
Users online (9,414)