How to pass date field from one form to another?

  • Profile Image
    veshman
    Asked on January 27, 2017 at 02:13 PM

    I'm having trouble passing a date from one form to another. I believe I have it coded correctly, but the variable that is passed over is not correct.

    This is what the code looks like:

     

    &dateOfBirth[month]={dateOf85:month_85}&dateOfBirth[day]={dateOf85:day_85}&dateOfBirth[year]={dateOf85:year_85}

  • Profile Image
    Kiran
    Answered on January 27, 2017 at 02:37 PM

    The format of date field to pass on to the other form should be like below:

    date[month]={date:month}&date[day]={date:day}&date[year]={date:year}

    where date[month], date[day] and date[year] are the fields from secondary form and date is the field name. And {date:month}, {date:day} and {date:year} are the fields from the primary form where date is the field name.

    In your case, it should be working by using the following URL parameters.

    dateOfBirth[month]={dateOf85:month}&dateOfBirth[day]={dateOf85:day}&dateOfBirth[year]={dateOf85:year}

     

    Please give it a try and let us know if you need any further assistance. We will be happy to assist. 

  • Profile Image
    veshman
    Answered on January 27, 2017 at 02:43 PM

    Hi Kiran,

     

    Thank you very much.

    http://form.jotformpro.com/62985337331966?fullName[first]=junio&fullName[last]=afed&dateOfBirth[month]=12&dateOfBirth[day]=29&dateOfBirth[year]=2015&preferredPhone[area]=&preferredPhone[phone]=&preferredEmail=veshman@veshman.com

     

    That was the generated URL. I'm having trouble getting the phone parameter,

    and I'm also struggling with the redirected link showing form data from previous testing, instead of what the URL is showing.

     

     

  • Profile Image
    Kiran
    Answered on January 27, 2017 at 03:28 PM

    As I check the URL provided, I see that the phone number field is not being passed to the second form. Please provide us with the primary form URL so that we can check and provide you with necessary assistance.

    We will wait for your response. Thank you! 

  • Profile Image
    Bhavesh Patel 
    Answered on January 27, 2017 at 03:30 PM
  • Profile Image
    Kiran
    Answered on January 27, 2017 at 04:47 PM

    Please change the following section in the URL 

    preferredPhone[area]={mobileNumber:input_83_area}&preferredPhone[phone]={mobileNumber:input_83_phone}

    with the below provided to get the phone number field working.

    preferredPhone[area]={mobileNumber:area}&preferredPhone[phone]={mobileNumber:phone}

    As a side note, I see that your JotForm is collecting credit card information on plain text fields which is not allowed. Such forms are considered as phishing forms and associated accounts will be automatically suspended. Please refer to our terms of usage for more information on phishing. If you need to receive payments, it is required to use one of the payment methods available in the form builder. These payment methods comply with the PCI/DSS security standards to process the payments securely.  

    Please remove the guilty fields from the form immediately to avoid any suspensions on your account. 

    Thank you! 

  • Profile Image
    veshman
    Answered on January 30, 2017 at 05:04 PM

    Hi Kiran,

    Thanks you for the information. That TOS regarding credit card numbers is new since the time I initially signed up for JotForm. I understand the issue on phishing. However, we only use that collection to make our operations on our side easier. As you can see, I specifically note that the person will *not* be charged, and it's also not a required field.

    The purpose of the field is primarily to make the job of my staff easier (and if when someone puts the number in, we know they are serious). However, I'm not sure I want to immediately bill people via payment gateways.

     

    Again, this wasn't a TOS when I signed up for JotForm, and I'll comply as necessary, but I'd also like the company to consider my intent and perhaps we can come to a mutual satisfactory solution.

    I think my history with JotForm will speak to my low usage and lack of any user issues.

     

    thanks,

     

    Bhavesh 

  • Profile Image
    Jim_R
    Answered on January 30, 2017 at 06:20 PM

    Hello Bhavesh, to keep this thread on topic, I had to move your most recent question about our TOS to a separate thread https://www.jotform.com/answers/1051051

    We'll have it addressed there shortly.