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.
Can I have a link elsewhere on on the page to set the value of a form field?Asked by petruzzo on January 06, 2017 at 01:04 AM
I'm trying to find a way to use a link, say, in the header of the page, which when clicked, would set the value of one of the form fields on the same page.
Is this something that's possible?
Thank you for contacting us.
As I understood you correctly, you want to have a link that should automatically fill in value to your form and you want your form to be prepopulated after being clicked via URL.
You can prepopulating field your Jotform with URL parameters. Here is a guide helps to you: https://www.jotform.com/help/71-Prepopulating-Fields-to-Your-JotForm-via-URL-Parameters
If you do not want to this link, please provide us more detail about a link that you want to use. We can provide you the workaround.
Please let us know if you need any further assistance.
I think this is what I'm looking for, except the link is to an anchor on the same page. The form will not be on a separate page. Will this method still work?
You can use the Update/Calculate Field Conditions in your form. Here's a guide: https://www.jotform.com/help/286-How-to-Pass-Field-Value-to-Another-Field.
In this way, once the condition is met, it will pre-populate the fields automatically.
If you have any questions, let us know. Thank you.
I'm acquainted with the form conditions, but that's not what I'm looking for. I'm trying to make it so that clicking a link outside the form, but on the same page, will update a field.
I have three products on the page, each with an anchor link to elsewhere on the page. When a user clicks on of those links, I'd like a dropdown in the form to automatically be set to the product they clicked on.
Can this be done with the above method?
Thank you for contacting us.
If I understood you correctly, you want to make link outside the form. Then you want to pass the value to form after clicking this link.
You can not do this using any CSS or HTML codes. You can try the another way for solving this issue.
I am not sure about doing this. However, you can try to refresh your page after clicking this link. Here is an example:
1. You can use this tag for your product link:
If you have any questions or issue, feel free contact us.