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

    How to validate one form field entry in another field

    Asked by andynowlen on January 23, 2013 at 05:01 PM

    I am working on a event registration form.  I need to accomodate the fact that one registrant might be paying for a group of other registrants.  In the case of a group registration the Stripe payment should be for the appropriate number of total payments AND in addition, another field needs to list the names the payment applies to.  

    I have the CC field and a conditional appearance of a line for entering the names of those to whom the payment applies.  But during testing I have discovered that I need have a way to make sure the payment amount is equal to the number of names.  So, for instance, if one registration is $70 then four equals $280.  I need the person making the payment to supply the correct number of names and to validate that against the CC payment in the Stripe section.

    How can I validate the number of registration names with the size of the credit card payment?  Or is this possible?  Thanks for whatever advice you might have for me.

    Page URL:
    https://secure.jotformpro.com/form/30226111005937

    form field validate event registration event registration form registration form size
  • Profile Image
    JotForm Support

    Answered by Deygus on January 23, 2013 at 05:51 PM

    I took a look at your form and I think I understand what you mean but i'm not quite sure that it's possible since I don't quite think that our current conditional logic is able to coincide with it since that is the original way I was thinking about doing this.

    It's possible to have it validate based on conditions and a quantity preference outside of the payment integration but conjoined I'm not to certain this would work unless it was done using the form source.

    On another note though were you wanting the credit card to validate this some how or when you were talking about validation did you mean having a quanity amount that could be selected from a group product to then display how many people are going in that group with a basis off that value that a list of names could then be specified below it?

    Perhaps I am misunderstanding this though so please correct me if I have gone offroad on this.

  • Profile Image

    Answered by andynowlen on January 23, 2013 at 06:27 PM

    Yeah thanks for thinking this through with me.  My fall back situation is to just do single registrations.  I think for now I will just do it that way.

    Ideally a 'purchase' of four registrations would match up to four names listed in another field - possibly with logic that says if 4 registration payments are selected then there must be 4 names in this list or field.

    Thanks for your help no matter how this sorts out.

  • Profile Image

    Answered by billhz on June 23, 2013 at 02:58 PM
    I too need to resolve this someday. I had a person list 5 names of people attending an event. Each registration was $20. However, the person who paid only selected 1 for the payment and paid $20 instead of $100. A disaster at the door.I would prefer that the system would calculate the total. When a person's name was added to a field, it would tick off or add to the tally that will be charged. As it is now a person can select the number of people they are paying for, but they can enter the wrong number as above. I want to remove that voluntary control of the number selected and force the number of registrations paid for when a group registers with a number of registrants. Would be nice to have a plus sign or something on the form that allows the ability to add a new field for additional registrants. Would make the form look less cluttered.
  • Profile Image
    JotForm Support

    Answered by KadeJM on June 23, 2013 at 04:19 PM

    @andynowlen

    No problem, you are welcome. I think that the Conditions can handle that but it will take a little bit of playing around with them. You could ultimately base that on the hide/show mutliple fields for a single question. I will need to think about this some more to see if I can figure out something for it.

     

    @billhz

    I see what you mean and now I understand it all alot better about what is needed to configure this all further. Thank you for the breakdown of that. I will have to play around with this idea some more to see what else I can come up with if anything.

    I don't really think the calculation per person is a problem since when the Qty is selected it already displays this. It seems to be more of a validation controller that silently controls it as more participants are added to validate against the physical total calculation.