web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Apps
Answered

Checkbox in form

(0) ShareShare
ReportReport
Posted on by 102

I have a form and I would like to add some checkboxs for the user to select their department ,thus , I need to add 5 checkbox for the test value equal to user department and not allow the user multi selection of checkbox. I have add a column with data type=choice. what should I choose in "Display choices using: "? in the column setting? And what code I should add in powerapps in order to update the text value in the sharepoint list column?

Categories:
I have the same question (0)
  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    Hi @Pinoq 

    It sounds like you need a radio control.  That one lets you select one option only. 

  • Verified answer
    v-yutliu-msft Profile Picture
    Microsoft Employee on at

    Hi @Pinoq ,

    Do you want to use check boxes to update a choice column(not allow multiple choice)?

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

    1)You need to set check boxes' Text to the choices one by one manually.

    For example: my choice column's choices are:
    Choice 1
    Choice 2
    Choice 3
    Choice 4
    Choice 5

    2)set check box1's Text:

    "Choice 1"

    set check box1's OnCheck:

     

    Set(varde,Checkbox1.Text);Reset(Checkbox2);Reset(Checkbox3);Reset(Checkbox4);Reset(Checkbox5)

     

    //set variable based on the checkbox text, if you check one checkbox, reset others.

    3)set check box2's Text:

     

    "Choice 2"

     

    set check box2's OnCheck:

     

    Set(varde,Checkbox2.Text);Reset(Checkbox1);Reset(Checkbox3);Reset(Checkbox4);Reset(Checkbox5)

     

    4)set check box3's Text:

     

    "Choice 3"

     

    set check box3's OnCheck:

     

    Set(varde,Checkbox3.Text);Reset(Checkbox2);Reset(Checkbox1);Reset(Checkbox4);Reset(Checkbox5)

     

    5)set check box4's Text:

     

    "Choice 4"

     

    set check box4's OnCheck:

     

    Set(varde,Checkbox4.Text);Reset(Checkbox2);Reset(Checkbox3);Reset(Checkbox1);Reset(Checkbox5)

     

    6)set check box5's Text:

     

    "Choice 5"

     

    set check box5's OnCheck:

     

    Set(varde,Checkbox5.Text);Reset(Checkbox2);Reset(Checkbox3);Reset(Checkbox4);Reset(Checkbox1)

     

    7)use formula like this to update:

    Patch(test1,First(test1),{department:{Value:varde}})

    545.PNG

     

     

    Actually, I more suggest you use radio to update choice column.

    The settings will be more simple.

    You just need to set the radio's Items:

    Choices(test1.department)

    Use formula like this to update:

    Patch(test1,First(test1),{department:{Value:Radio1.Selected.Value}})

    //test is my list name, please replace with your listname.

    546.PNG

     

     

    Best regards,

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    Hi @Pinoq and @v-yutliu-msft 

    Thanks for "fleshing out" my suggestion Phoebe. 

  • vjefpeng Profile Picture
    Microsoft Employee on at

    Hello! 

     

    I wanted to jump on this solution and see if it can be remade so that ALL 5 of the checklist items need to be checked prior to "Submit Request" button can be pressed.

     

    I am using the checkbox function as a way to inform users of a list of actions that need to be done. The user would check the boxes indicating that they've completing the actions stated. Checking all 5 would allow the Submit Request button to be active - and proceed to the next Screen.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 345 Most Valuable Professional

#2
11manish Profile Picture

11manish 207 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 177

Last 30 days Overall leaderboard