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

    Question renamed but remembers original name when doing pre-fill

    Asked by dfreer on April 04, 2011 at 08:15 AM

    If I rename a question (label), then although it shows as the new name in the field properties, and also reports as the new name in the submissions e-mail, it does not allow me to pre-fill on the form url using the new name.

    eg.

    Field set up originally as 'dob' and the following pre-fill works...

    xxxxxxx?dob[day]=31&dob[month]=January&dob[year]=2011

    ...then dob renamed to 'dateofbirth' and the following pre-fill does not work:

    xxxxxxx?dateofbirth[day]=31&dateofbirth[month]=January&dateofbirth[year]=2011

     

    ALSO

     

    I do not seem to be able to pre-fill a 'star rating' field

    eg.

    xxxxxxx?rate=3

  • Profile Image
    JotForm Support

    Answered by NeilVicente on April 04, 2011 at 09:23 AM

    Hi,

    First of all, I inspected your form and found out that dob is still dob and not dateofbirth, so it is still dob that should work and not dateofbirth

     

    About the stars rating, you'd have to understand that the star rating field uses Javascript to display the star images, because the star images are not inherent to HTML forms. Since you are using URL parameters to prepopulate an HTML form, it is but natural that only the form is affected and not the script that displays the stars.

    In this sample submission that I have made, I prepopulated the star rating form with the value of 5. Look how the stars are not affected at all by this prepopulation.

     

    However, when you look at the notification email, you would see that the value of the rating field is "5".

     

    There is a not-so-easy workaround to have the rating field display the number of stars depending on the value that you set with the URL parameters. This involves modifying the script that displays the stars but doing that can get a little messy.

    I hope you find this helpful. Let us know if you have further questions.

     

    Regards,

    Neil

  • Profile Image

    Answered by dfreer on April 04, 2011 at 09:39 AM

    Hi Neil

    Thank you for your reply. I only used the name 'dateofbirth' in my question in the forum, in my form called 'basic' I had actually (thought) I renamed it to 'zzz'; however it looks like changing the 'label' of the question does not really rename it (only on the form). I have never seen the first screen you have shown. Where do I get that screen from, and how do I rename the 'answer' (eg. how do I rename 'dob' to 'dateofbirth')

    Thanks.

     

    Kind regards

    Dan

  • Profile Image
    JotForm Support

    Answered by NeilVicente on April 04, 2011 at 10:27 AM

    Hey Dan,

    The first screenshot in my previous post can be found on the Notification Email Wizard. When you click on Email Alerts > Notification, the Compose Email window appears.

     

    There you can find the identifiers for your fields. Note that those are also used as parameters for URL prepopulation. You can have those identifiers changed by changing the Field Labels.

     

    Changing the field labels affects the unique identifiers for the field. You can see those identifiers in the Compose Email window.

     

     

    I used these identifiers to prepopulate the form

     

    and then....

     

    I'll await your feedback.

     

    Neil

  • Profile Image

    Answered by dfreer on April 04, 2011 at 12:10 PM

    Hi Neil

    That's great thank you. I had not seen that screen at all until you pointed it out!

    Just one last question...is it possible to specify the CustomURL on the form url along with the prefill values?

    eg. xxxxxxxx?surname=blogs&firstname=fred&customurl=www.mydomain.com/mypage.php

    Thanks.

  • Profile Image
    JotForm Support

    Answered by NeilVicente on April 04, 2011 at 07:28 PM

    Is this custom url a field in your form? If so, yes that particular field can be pre-filled with a url without affecting the form's own url or browser location.

     

    Neil

  • Profile Image

    Answered by dfreer on April 05, 2011 at 11:24 AM

    Hi Neil


    No, I meant the custom URL posted to after the submission.

    Thanks
    Dana

  • Profile Image
    JotForm Support

    Answered by NeilVicente on April 05, 2011 at 11:54 AM

    Hi Dana,

    Unfortunately that is not possible within the Form Builder. A workaround I could give you is to enable sending of HTTP POST data and then use a custom Thank You page which has a PHP script to get the url information sent and redirect the user to that url.

    Take a look at this sample form

    You can set the url parameter redirect to any website and right after submitting the form, you will be redirected to that particular url.

    If you are interested, here is the source code of that PHP script:


        $redirect = $_POST['redirect20'];
        header("Location: $redirect");
    ?>

    redirect20 is the name of the redirect POST data sent by the form to the PHP script.

    Implementing this would take some php scripting skills. I advise you to not do this yourself if you have nary an idea about PHP as it may open a whole lot of problems for you. I showed you this sample just for a proof that this could be done.

     

    Regards,

    Neil

     

  • Profile Image

    Answered by dfreer on April 05, 2011 at 12:11 PM

    Thank you. It's not quite what I wanted, but a good trick to remember for the future.

     

    I appreciate your prompt, and considered replies.