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.
Pre-populate fields with jQuery and pass to the google spreadsheet.Asked by cryptomain on March 07, 2014 at 05:05 AM
i have made a new form simply to test if the prepopulation works. It populates the fields but when I submit the form all of the fields are blank. Is there any particular method i should use?
Can you share to us the actual URL of of the website page/form where we can test this.
We need to see the details how you manage to pre-populate this form http://www.jotform.com/40651796404356 using your custom code.
URL for the form is here: http://ievaa.com/form
I was able to see the form and the custom jquery code you have.
Can you please provide us more details on exactly what you wanted to achieve though.
Currently, I am not able to understand what you wanted to pre-popluate on the form.
From what I understand so far, you succeeded in putting a default Price on the price field and make and then make it a read-only field.
But the rest of the functionality, I am not able to figured out yet. There is an internal calculation that is happening every time I fill in the Total Price, but it is not clear what it does.
We could provide appropriate suggestion if you can break down by steps what it is you wanted to formulate/calculate.
Well what I would like to achieve is that afeter a user enters the amount and submits the form. All fields would be captured ant passed to the user and to my google spreadsheet. Because now when the form is submited the price and total price fields no info is passed to the spreadsheet and the fields come as blank .
Thank you for any assistance.
They are blank because the textbox fields has been changed to a "div" tag with text elements, this results to a blank submissions. Check this screenshot:
Here (see below), I have updated your script without omitting the textbox fields. I have included CSS styles to removed the textbox borders so it looks like a text element.
Hope this helps!