- dfreerAsked 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.
Field set up originally as 'dob' and the following pre-fill works...
...then dob renamed to 'dateofbirth' and the following pre-fill does not work:
I do not seem to be able to pre-fill a 'star rating' field
- JotForm SupportNeilVicenteAnswered on April 04, 2011 at 09:23 AM
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
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.
- dfreerAnswered on April 04, 2011 at 09:39 AM
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')
- JotForm SupportNeilVicenteAnswered on April 04, 2011 at 10:27 AM
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
I'll await your feedback.
- dfreerAnswered on April 04, 2011 at 12:10 PM
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?
- JotForm SupportNeilVicenteAnswered 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.
- dfreerAnswered on April 05, 2011 at 11:24 AM
No, I meant the custom URL posted to after the submission.
- JotForm SupportNeilVicenteAnswered on April 05, 2011 at 11:54 AM
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'];
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.
- dfreerAnswered 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.