How to disable a checkbox option if it is already selected by another user?

  • Profile Image
    anastasop
    Asked on September 18, 2017 at 08:16 AM

    Hi all,

    i want to make a multiple choice form with days of the week and activities, but i need if someone check f.e. Monday on one activity all the other Mondays not be available anymore. Is that possible in some way?

     

    Thank you in advance!

    Vicky

  • Profile Image
    ashwin_d
    Answered on September 18, 2017 at 10:35 AM

    I am not sure if I have understood your question correctly. I did check your form and you have listed Monday, Tuesday & Wednesday for different sporting clubs. Please check the screenshot below:

    Do you mean to say that once a user select any day from the list, no other users should be able to select it?

    Yes it is possible to achieve your requirement by taking advantage of our "Gift Registry" widget. Once a user selects a day, it will become unavailable for other users. Please take a look at the following cloned form and see if this works as expected:  https://form.jotformpro.com/72604042913954

    Feel free to clone this form for a closer look. The following guide should help you in form cloning:  https://www.jotform.com/help/42-How-to-Clone-an-Existing-Form-from-a-URL

    Hope this helps.

    Do get back to us if you meant to ask something else.

  • Profile Image
    anastasop
    Answered on September 19, 2017 at 05:43 AM

    Hi, thanks for the reply but thats not the case.

    I need one user when he clicks f.e. Monday on one activity, all the other "Mondays" on the other activities to be disable for the same user not all the other. That is cause i have a lot of activities generally but someone can pick only one per day and i want to prevent them from choosing on the same day 2 different things.

    Looking forward for your reply

    Thank you in advance


    Vicky

  • Profile Image
    ashwin_d
    Answered on September 19, 2017 at 06:55 AM

    Unfortunately it is currently not possible to disable option of checkbox. If you want you can add condition to show / hide the checkbox question itself instead of hiding the options.

    One way to achieve your requirement is to add separate checkbox question for each day and add condition to show hide other chekcbox question based on the checkbox selection. I will create a demo form and get back to you on this soon.

  • Profile Image
    ashwin_d
    Answered on September 19, 2017 at 07:22 AM

    Please take a look at the following cloned form where I have separated the checkbox question and added the conditions as well: https://form.jotformpro.com/72613006813953

    Feel free to clone this form for a closer look. The following guide should help you in form cloning:  https://www.jotform.com/help/42-How-to-Clone-an-Existing-Form-from-a-URL

    Hope this helps.


  • Profile Image
    anastasop
    Answered on September 19, 2017 at 07:32 AM

    This is so nice and helpful! Thank you so much! Is there a way for the rest check box not to move ? If not its ok, just asking!


    Thanks again

    Vicky

  • Profile Image
    aubreybourke
    Answered on September 19, 2017 at 10:10 AM

    You can place each entry on its own line?

    Here's an example:

    https://form.jotformpro.com/72613987057971

    You just need to enable the "move to a new line" option on the advanced tab of the properties for each entry.

  • Profile Image
    anastasop
    Answered on September 20, 2017 at 04:02 AM

    Hello and thank you for your reply.

    Unfortunately they are too many activities to put each on a different line, as i can see it it would be chaos :( plus i need the same activity with the days in one row so people wont get confused.

    That may work for some other forms which i have less activities with same days.

    I really appreciate your time. If their is any other option i would like to know.


    Thank you in advance


    Vicky

  • Profile Image
    ashwin_d
    Answered on September 20, 2017 at 04:24 AM

    I have injected the following custom css code in form to solved this issue of checkbox position changes:

    li#id_29, li#id_30, li#id_31 {

        width: 450px !important;

    }

    li#id_32, li#id_33 {

        width: 350px !important;

    Please take a look at the following cloned form and see if it works as expected: https://form.jotformpro.com/72613006813953 

  • Profile Image
    anastasop
    Answered on September 22, 2017 at 05:52 AM

    Thank you so much for all your help!

    This is very nice and exactly what i wanted!

    How can i clone that? or where can i insert the code you make into my forms?

    Have a nice day!

     

    Vicky

  • Profile Image
    John_Benson
    Answered on September 22, 2017 at 09:13 AM

    How can I clone that?

    To clone a form, please follow this guide: https://www.jotform.com/help/42-How-to-Clone-an-Existing-Form-from-a-URL

    Where can I insert the code you make into my forms?

    To inject a custom CSS code to your form, please follow this guide: https://www.jotform.com/help/117-How-to-Inject-Custom-CSS-Codes

    Please contact us again if you have questions. Thank you.

  • Profile Image
    anastasop
    Answered on September 25, 2017 at 05:17 AM

    Hello,


    i try to put the code into my form but its not working. Im following the steps from the link you send me. Im i doing something wrong? Maybe i have to put it in specific line to work?What if i need to put more options, the code is for the whole form?


    Thanks again

    Vicky

  • Profile Image
    ashwin_d
    Answered on September 25, 2017 at 06:32 AM

    I did check your last edited form where you injected the custom css code shared by me. Unfortunately it will not work because the "Multiple choice" options of your form is still not separated. 

    If you see my form, I have separated the multiple choice options in separate questions. The best option is to clone my form and start using it.

    My form URL: https://form.jotformpro.com/72613006813953 

    The following guide should help you in form cloning:  https://www.jotform.com/help/42-How-to-Clone-an-Existing-Form-from-a-URL 

    Hope this helps.

    Do get back to us if you have any questions.