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
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
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
News & Announcements

Community Blog

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

Power Apps Community Call

Power Apps Community Call- January

Check out the Power Apps Community Call for January 2021

PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

Top Solution Authors
Top Kudoed Authors
Users online (3,904)