What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

  • Profile Image

    Disable users from selecting same choice twice?

    Asked by kevinraos on March 06, 2012 at 05:37 PM

    What I'm trying to do is have users rank something (1st, 2nd, 3rd, 4th, etc...) and want to make it so they don't accidently select two different options for 2nd place or 3rd place, for example.

    What I want is for each item to have a unique answer, and be repeatable. If a user has already chosen their "2nd Place," I don't want them to be able to select 2nd place for something else.

    Make sense? Is it possible to do this?

    Thank you!!

    Kevin

    unique different
  • Profile Image

    Answered by kevinraos on March 06, 2012 at 05:38 PM

    EDIT: NOT be repeatable

  • Profile Image
    JotForm Support

    Answered by fxr on March 06, 2012 at 06:00 PM

    Hello Kevin,

    How many options does the end users have to rank? 

    It may be possible to come up with something (which wont be particularly pleasant from a form building perspective) if you have only 5 or 6 different options to rank. 

  • Profile Image

    Answered by kevinraos on March 06, 2012 at 06:10 PM

    It's 13 now, next week it will be 12, and so on. Basically the last place rank gets elminated, and then there's a new round of voting.

    Thanks for your help!

  • Profile Image
    JotForm Support

    Answered by fxr on March 06, 2012 at 07:21 PM

    With upto 13 different options to rank, the workaround I was thinking of just becomes impractical. 

    Unfortunately, there doesnt seem to be a way to achieve exactly what you describe without the addition of custom Javascript. 

    --

    The nearest I can get with JotForms existing toolset is with a Matrix field, like the top field in this form -> http://form.jotformeu.com/form/20656655421352

    That still means a user could make a mistake in his rankings, but you could make a clear warning that voting an option in more than one place will be immediately discarded. 

  • Profile Image

    Answered by kevinraos on March 06, 2012 at 07:29 PM

    fxr,

    Thank you for your response! Your example makes it much easier to see what you've voted for. I was using a drop-down and that can be confusing.

    I will use the matrix form instead.

    Thanks again!

  • Profile Image

    Answered by ccomeau on March 28, 2012 at 01:08 AM

    FXR, Could you share what your other solution would have been if the choices were limited to 6 or less choices?  I am currently using the matrix, but it does allow surveytakers to make duplicate rankings.  

    Thanks for any help!

    CC

  • Profile Image
    JotForm Support

    Answered by fxr on March 28, 2012 at 05:18 PM

    @ccomeau,

    Sorry about the delay here.

    The only other solution I have is to use javascript to limit the number possible choices that could be made in a checkbox field. 

    It works well, the problem is you would need to embed the forms full source code onto a webpage so that you can use the script. 

    Obtaining your forms source code is shown here, option 3. Its just a matter of copying the contents of the text area and pasting it onto your webpage. 

    If you do want to pursue the functionality, provide me with a link to your form, tell me which checkbox field you want to limit a users choices on (preferably in a new thread) and I will get you the required javascript.