Skip to main content
Participant
September 14, 2019
Question

Requiring at least one checkbox selected within a group of checkboxes, same issue with text fields

  • September 14, 2019
  • 2 replies
  • 3099 views

I’m creating a form for requesting inspections. The user may request multiple types of inspections; however, specifying at least one of them must be required. I’m using checkboxes to specify the different types of inspections that may be requested. Is there a way to group all checkboxes as a single required field so at least one checkbox is selected when the user submits the form? I’d also like to accomplish this with text fields, where a single permit number must be specified; however, more than one permit number may be submitted. The form currently has different text fields for specifying the different types of permit numbers. Any and all recommendations will be greatly appreciated.

    This topic has been closed for replies.

    2 replies

    ls_rbls
    Community Expert
    Community Expert
    September 16, 2019

    ls_rbls
    Community Expert
    Community Expert
    September 14, 2019

    I am unclear about when you say that you want all checkboxes to be grouped in a single text form field.

     

    If what you are asking is to group the string of text that will appear in text form field as a result of a choice that will be provided to the users when they tick on a radio button or a check box, then you probably need a javascript to concatenate all those selected answers to be able to display them in the field you want as a text string.

     

    Can you share a screenshot of what you are trying to achieve?

     

     

    RAULHELIOAuthor
    Participant
    September 14, 2019
    I'd like for the checkboxes to treated as a required entry, at least one must be selected. There's another section within the form where I would like at least one text field entry made. The required fields are indicated by a red bullet. I can't seem to figure out how to insert a photo here, so I'm providing a dropbox link to a pair of screenshots.
    RAULHELIOAuthor
    Participant
    September 14, 2019