How to make a Yes/No Question appear as a checkbox?

Options

So this seems like a basic question and I'm hoping someone has a quick answer (asking on behalf of a client):

We added a Boolean field to our Constituent360 database (i.e. true/false).

When adding this as a Yes/No Question to our Surveys, Action Alerts and Donation forms, it shows up as a drop-down question and the choices are Yes and No.

We would LIKE this to show up as a checkbox, pre-checked.

Is there an easy way to make this Question show up as a pre-checked checkbox?

Tagged:

Comments



  • Sally Heaven:

    So this seems like a basic question and I'm hoping someone has a quick answer (asking on behalf of a client):

    We added a Boolean field to our Constituent360 database (i.e. true/false).

    When adding this as a Yes/No Question to our Surveys, Action Alerts and Donation forms, it shows up as a drop-down question and the choices are Yes and No.

    We would LIKE this to show up as a checkbox, pre-checked.

    Is there an easy way to make this Question show up as a pre-checked checkbox?

     

    Did you ever get this figured out, Sally? 


     
  • Sally Heaven:

    So this seems like a basic question and I'm hoping someone has a quick answer (asking on behalf of a client):

    We added a Boolean field to our Constituent360 database (i.e. true/false).

    When adding this as a Yes/No Question to our Surveys, Action Alerts and Donation forms, it shows up as a drop-down question and the choices are Yes and No.

    We would LIKE this to show up as a checkbox, pre-checked.

    Is there an easy way to make this Question show up as a pre-checked checkbox?

     

    Hi Sally,


    It sort of depends on which type of form you're talking about. Donation forms should allow you to choose how you want the Yes/No to display (either Drop Down, Radio Buttons or Single Checkbox). Then you may need to add a little javascript or jQuery to have it pre-checked. Something like $("#question_id").prop('required',true);


    For Surveys, we put the forms in Pagebuilder. There all you need to do is copy the question ID and change the HTML form element from <select> to <input type="checkbox" id="question_id" name="question_id" value="true" checked />


    I've done it for action alerts as well, but it's not as straight forward so if anyone else has a good solution, I'd like to hear it.

  • Mike Lewis:

    Sally Heaven:

    So this seems like a basic question and I'm hoping someone has a quick answer (asking on behalf of a client):

    We added a Boolean field to our Constituent360 database (i.e. true/false).

    When adding this as a Yes/No Question to our Surveys, Action Alerts and Donation forms, it shows up as a drop-down question and the choices are Yes and No.

    We would LIKE this to show up as a checkbox, pre-checked.

    Is there an easy way to make this Question show up as a pre-checked checkbox?

     

    Hi Sally,


    It sort of depends on which type of form you're talking about. Donation forms should allow you to choose how you want the Yes/No to display (either Drop Down, Radio Buttons or Single Checkbox). Then you may need to add a little javascript or jQuery to have it pre-checked. Something like $("#question_id").prop('required',true);


    For Surveys, we put the forms in Pagebuilder. There all you need to do is copy the question ID and change the HTML form element from <select> to <input type="checkbox" id="question_id" name="question_id" value="true" checked />


    I've done it for action alerts as well, but it's not as straight forward so if anyone else has a good solution, I'd like to hear it.

     

    Mike, Are you using this tactic for mobile alert opt-ins? That is something I'm trying to figure out how to add to our action alert forms and this solution sounds like it might apply. 

     

Categories