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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Apps
Unanswered

Help with Checkbox

(0) ShareShare
ReportReport
Posted on by 516

Hi Community, 

 

Please help me with this. looks like a simple idea but i cannot figure it out. Sorry 🙂

 

I have a checkbox with label "Choice 2". I wanted to make this "checked" or value is true IF the text or label is found in the EditForm on the other side "Sec1A1" field name. And if they uncheck the checkbox it will REMOVE the item in the combobox "Sec1A1". is that possible?

 

I tried the below code in the checkbox default but its not working..

 

 

 

If("Choice 2" in DataCardValue9.SelectedItems, true, false)

 

 

 

echodapogi_0-1695411437525.png

 

Any other ideas please?

 

Categories:
I have the same question (0)
  • Verified answer
    Michael E. Gernaey Profile Picture
    53,315 Super User 2025 Season 2 on at

    Hi,

     

    I just want to be sure I understand.

     

    If Sec1A1's text has the words "Choice 2" you want it checked correct?

     

    Here is a sample on how to do that.

     

    In the Default property of the CheckBox

    Type the following code, changing the control names

     

    Self.Text in Concat(Choices.SelectedItems,Value & ",")

    FLMike_0-1695412259699.png

     

    Please mark this answer is resolved if it helps you


    Cheers
    If you like my answer, please Mark it as Resolved, and give it a thumbs up, so it can help others
    Thank You
    Michael Gernaey MCT | MCSE | MCP | Self-Contractor| Ex-Microsoft
    https://gernaeysoftware.com
    LinkedIn: https://www.linkedin.com/in/michaelgernaey

  • echodapogi Profile Picture
    516 on at

    Hi FLMike, thanks again. it worked!!! awesome... but my next problem is when i uncheck the checkbox, is it possible to remove it in the combobox list? 

     

    Perfect!!!

    echodapogi_0-1695412501800.png

     

  • Michael E. Gernaey Profile Picture
    53,315 Super User 2025 Season 2 on at

    Hi,

     

    That is a whole other problem yeah. I believe I remember seeing your post before related to this a couple days ago.

     

    If I might ask, what is the benefit of trying to do a circular reference check back and forth between these two. Is there something you are trying to accomplish that might be done differently? I definitely want to help you but this is a... hehe little weird.


    Cheers
    If you like my answer, please Mark it as Resolved, and give it a thumbs up, so it can help others
    Thank You
    Michael Gernaey MCT | MCSE | MCP | Self-Contractor| Ex-Microsoft
    https://gernaeysoftware.com
    LinkedIn: https://www.linkedin.com/in/michaelgernaey

  • echodapogi Profile Picture
    516 on at

    Hi FLMike, 

     

    Yes, I do have scenario that i am trying to complete but looks like i am hitting a brick wall. I'm new to this but to give you this idea. Here is what i'm trying to build. 

     

    Task: Needed to create a 50 questionnaire that user will just select the multiple answer, user have ability to save and edit. 

    Backend: SharePoint list with choice columns

     

    Challenges: User can select their answer selection in the initial questionnaire forms, BUT the problem is when they SAVED the form and then go back again to EDIT, i cannot show their selection on these same form with user  previously selected checkbox. IF i add edit form.. the choices field becomes combobox and that's the problem. I'm trying to convert the edit from choice field (combobox) to a checkbox or radio selection but i am unable to do that.  So i am resorting to other ways on how i can freely have a checkbox but when uncheck it will remove the selected values in the edit form combobox selecteditems list then save the form.

     

    Initial entry View

    This is what it looked like when the user initial open the form. 

    echodapogi_0-1695417492200.png

    Here is the code above on the Oncheck

     

    Collect(tempProgramDetailsQ7, chkSection3Q7a.Text); 

     

     

    Here is the code for uncheck

     

    Remove( tempProgramDetailsQ7,
    LookUp( tempProgramDetailsQ7, Value=chkSection3Q7a.Text ))

     

     

    here is the code when the user selection is completed. there is a next button and here is the code

     

    Patch(tblMain, LookUp(tblMain, Title = txtKeyLabel.Text),
    //save the data in the table from collection
    {
     Sec3Q7: tempProgramDetailsQ7 
    });
    
    //next question
    Navigate(frmProgramDetailsQ8,ScreenTransition.Fade);

     

     

    But when they saved the record and edit again and close the app, and change the answer the next day, i cannot show the same view above. so i was force to use this view below. 

     

    Edit View

    echodapogi_1-1695417925952.png

    What i really wanted is to show them same "Initial entry view" when editing and Adding. Hope this make sense. 

     

    Thank you so much for this. 

     

     

     

     

  • Michael E. Gernaey Profile Picture
    53,315 Super User 2025 Season 2 on at

    Hi

     

    Yes thank you for explaining. I am putting some though in, so don't give up yet.
    Cheers
    If you like my answer, please Mark it as Resolved, and give it a thumbs up, so it can help others
    Thank You
    Michael Gernaey MCT | MCSE | MCP | Self-Contractor| Ex-Microsoft
    https://gernaeysoftware.com
    LinkedIn: https://www.linkedin.com/in/michaelgernaey

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 793 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 333 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard