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.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.


  • Profile Image

    Conditional Validation for Grouped Fields

    Asked by bookmarkmns01 on September 17, 2014 at 08:18 AM

    I need to build a form for assessment. These are the instructions for the candidate

    "Each line contains 4 descriptive words. For each line, read the words and place an M in the box, next to one word that most accurately describes you in a work situation, MOST of the time i.e. the words you feel most comfortable with. From the remaining three words place an L next to the word that LEAST accurately describes you in a work situation. (For each line - place an M and an L)."

    The original site is broken but I have taken a screen shot below.

    There will be 25 lines.

    I need to validate that each of the lines has one M, one L and two blank values. The values are used to plot a graph which looks at personality types in management.

    Is this possible? If so how do I do it. please?

    Thanks for looking at this.

    Mark

     

    Screenshot
    next site validate thanks
  • Profile Image
    JotForm Support

    Answered by KadeJM on September 17, 2014 at 09:45 AM

    I think you are basically asking if this form validation situation will work?

    Also, I believe that understand the basic concept you've shown us above.

    That should be possible to do although it probably wouldn't look exactly like that unless we used some injected css to change it's appears closer to that.

    Anyhow, jotforms do feature a validation ability but it only works with certain fields such as the textbox. The same can be said about the character counter which only currently works with the textarea field.

    I have a concept in mind at the moment but I am still seeing what I can come up with and will show you as soon as I have it working. I will let you know in an update as soon as I can.

  • Profile Image

    Answered by bookmarkmns01 on September 17, 2014 at 10:54 AM

    Thank you for looking at this KadeJM - I greatly appreciate it.

    The original form was developed years ago - it worked until recently and the person who wrote it was available ... until now. 

    I look forward to seeing the results ... and once again thank you.

    I am going back to it in the morning because my first ideas trying to adjust the code didn't work and now it feels as though Thor is using his hammer ... in my head.

    Mark

  • Profile Image
    JotForm Support

    Answered by KadeJM on September 17, 2014 at 11:46 AM

    Well I just want to apologize as I honestly originally thought this might be something that could be done but unfortunately my results were only impartial to the contrary of your request.

    Here's what I had come up with so far: (but it's certainly not what you showed or wanted)

    Live Form: http://form.jotform.us/form/42594543698167

    Screenshot:

     

    I even tried it a few other ways as I was racking my brain for awhile trying to come up with a feasible solution but it seems that this might not be possible with what we currently offer. If it is then it would only be an extremely slim chance with an onslaught of various fields and extremely tedious conditions to update field values but it's not a full guarantee that it will work either.

    This means that the only alternative for this which I believe should workaround that would be to do this with a custom script and the form's source code because of the complexity behind this.

    Additionally though, Aside from that...On a good note I think this is a terrific idea for a "matching-based widget or feature. So because of it I've sent this over to our developers as a feature request on your behalf. If they decide to apply it then we'll inform you about it here if it is added.

     

     

  • Profile Image

    Answered by bookmarkmns01 on September 17, 2014 at 12:19 PM

    Hi KadeJM

    Thank you for all of your work. I am really pleased you've sent it to the Developers as it does seem a useful addition.

    I have the source code and scripts so will go into it more in the morning. I'm not a coder ...

    Once again many thanks and I will add to this post if I can find anything that may help others.

    Mark

     

     

  • Profile Image

    Answered by Ben on September 17, 2014 at 01:46 PM

    Hi Mark,

    Let me try something and will get back to you on what I got.

    Best Regards,
    Ben

  • Profile Image

    Answered by Ben on September 17, 2014 at 02:01 PM

    Hi Mark,

    OK, at first I thought of posting a hidden field to which every update on the dropboxes would add +1 and as soon as the counter hits 2 to hide the other fields.

    Now this would work to some extent, but as you require to have only 1 L and only 1 M to be selected, this would require some codding that is not currently available in JotForm. If you would take approach using JotForm, you might be able to accomplish similar, but it would require a lot of conditioning and would not look as the image that you have provided.

    If you are willing you can send the code that you have used to support@jotform.com and our developers could provide you with a similar if not same functionality that much easier.

    Best Regards,
    Ben

  • Profile Image

    Answered by bookmarkmns01 on September 17, 2014 at 02:16 PM

    Hi Ben

    It's really good to hear from you and I will bundle what I have, zip it and send it over tomorrow.

    I am so grateful that both you and KadeJM have responded - thank you.

    I'll email it first thing and look forward to what if anything you can come up with.

    Mark

  • Profile Image

    Answered by Ben on September 17, 2014 at 02:21 PM

    Hi Mark,

    Thank you. We like to help as much as we can :)

    Please include the link to the ticket in the email so that anyone that catches it can quickly know that it is for the functionality above :)

    Best Regards,
    Ben

  • Profile Image

    Answered by bookmarkmns01 on September 17, 2014 at 02:25 PM

    HI Ben

    I will do! The support has been amazing ...

    Mark

  • Profile Image
    JotForm Support

    Answered by KadeJM on September 17, 2014 at 02:31 PM

    Thank you for the comment and you are very welcome. We'll update you if there are any changes.

    Additionally, I have bookmarked your thread to look into this more in case we're able to figure out a decent workaround after looking at your code for the time being until our developers get involved.

     

  • Profile Image

    Answered by Ben on October 06, 2014 at 09:33 AM

    Hi Mark,

    I just wanted to upgrade you on the progress of this.

    Please take a look at this jotform: http://form.jotformpro.com/form/42746647373969

    You can see the report as it gets filled out here http://www.jotform.com/grid/42783718905061

    You will not be able to use this widget for now, we will need to wait for it to get approved and I can not tell you the exact time when this will happen.

    I have added 2 of these widgets to a jotform mentioned above.

    Now a few details:

    You can create any amount of fields (dropboxes) on the line from within a wizard (addBoxes), the values that you want to have shown in each dropbox (addOptions), select how many dropbox could be selected (topCount) and if the values across the line should be unique - if 2 boxes can have same value or only different values can be selected.

    As you change the dropbox values you will be able to see the unique effect go through them and disable the ones that were already added :)

    I hope that you will like it, there are still few tweaks that will be made to it before it gets approved and as soon as it gets approved we will update  you here :)

    I am sorry that it took us this time, hopefully it will be what you wanted.

    Best Regards,
    Ben

  • Profile Image

    Answered by bookmarkmns01 on October 06, 2014 at 10:34 AM

    Hi Ben

    Thank you. I am really impressed. That is exactly what I had hoped for ...

    I do hope this can go forward ... it is very impressive. I haven't see any other online form service cope with this and it is tremendous advertisement for Jotform.

    Some good news on a day when nothing has worked .. except for this.

    I hope the Developers OK this.

    Just Wow!

    Mark

     

     

  • Profile Image

    Answered by Ben on October 06, 2014 at 11:33 AM

    Hi Mark,

    Thank you. I am really impressed. That is exactly what I had hoped for ...

    You are welcome, it is great to hear that :)

    I hope the Developers OK this.

    There is a process in submitting any widgets for live so that our developers know that it meets certain standards and is safe for use, which is what we will need to wait upon.

    I am glad to hear that it is what you wanted, I can now make certain modifications to get it ready for inspection and then someone will get back to you when it gets approved :)

    Best Regards,
    Ben