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

    Pre-populate fields with jQuery and pass to the google spreadsheet.

    Asked by cryptomain on March 07, 2014 at 05:05 AM

    Hello,

    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?

     

    http://jsfiddle.net/L4mWh/

    and new form prepopulation hello all
  • Profile Image
    JotForm Support

    Answered by jonathan on March 07, 2014 at 07:37 AM

    Hi,

    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.

    Thanks.

  • Profile Image

    Answered by cryptomain on March 08, 2014 at 08:22 AM

    Hello again,

    URL for the form is here: http://ievaa.com/form

  • Profile Image
    JotForm Support

    Answered by jonathan on March 08, 2014 at 08:36 AM

    Hi,

    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.

    Thanks!

  • Profile Image

    Answered by cryptomain on March 08, 2014 at 06:02 PM

    Hi again,

    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. 

  • Profile Image
    JotForm Support

    Answered by EltonCris on March 08, 2014 at 06:41 PM

    @cryptomain 

    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.

    http://jsfiddle.net/L4mWh/4/

    Hope this helps!