Checkbox to checkoff other checkboxes - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

Checkbox to checkoff other checkboxes

Last post 06-21-2021 11:48 AM by SeanPRyan. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 06-11-2021 08:57 AM

    Checkbox to checkoff other checkboxes

    I have a form I have created in InfoPath and I have several checkboxes. Is there a way to have a "select all" checkbox to select all my other checkboxes?
  • 06-11-2021 11:08 AM In reply to

    • SeanPRyan
    • Top 200 Contributor
      Male
    • Joined on 02-02-2012
    • Kansas City area
    • Posts 52

    Re: Checkbox to checkoff other checkboxes

    You can. If each of the checkboxes are boolean (TRUE, FALSE) fields, select the first checkbox and create an Action Rule. If Checkbox1 = TRUE. Set a field's value Checkbox2 = true() - Use the Fx function button to find the true function. Set another field's value and so on. You may also want to set them back to false() when the user unchecks Checkbox1. If Checkbox1 Not = TRUE set a field's value = false(). If the Checkbox is a string value, just use that text value to compare.
    Sean
  • 06-14-2021 03:02 PM In reply to

    Re: Checkbox to checkoff other checkboxes

    Thank you so much. This worked perfectly. Now, is there a way to make sure my users check at least one box or get an error message on the form?
  • 06-21-2021 11:48 AM In reply to

    • SeanPRyan
    • Top 200 Contributor
      Male
    • Joined on 02-02-2012
    • Kansas City area
    • Posts 52

    Re: Checkbox to checkoff other checkboxes

    You're welcome. The second one is a little tricky. This is called Conditionally Required since a checkbox Boolean FALSE is a valid value. So, you can create a hidden field somewhere in the form. I usually create a section and hide it if the authenticated user isn't me. When any of the checkboxes is checked, set the value of the hidden field. I'd use a counter for this. Make a text field a whole number and name it ChkCounter. Give it a default value of 0. On the checkbox field, when field changes If Checkbox1 = TRUE set ChkCounter = ChkCounter +1. Rule 2 If Checkbox1 changes and is false() set ChkCounter = ChkCounter -1. Now, create a validation rule on each checkbox control. If Checkbox1 = FALSE and ChkCounter
    Sean
Page 1 of 1 (4 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.