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

    I like to take data from my website into a form field

    Asked by Nepalkinderhilfe on June 08, 2011 at 03:28 PM

    I have a website with personal data like name, first name, D.O.B. egg.

     

    I like to submit special data, for exaample, name or something else, comming from the website automatically into a field, may be a hidden field, if the form will be submited.

     

    Ho can I do this?

     

    Thanks and regards,

     

    Juergen

  • Profile Image
    JotForm Support

    Answered by NeilVicente on June 09, 2011 at 08:20 AM

    Hi Juergen,

    I don't fully understand what you mean by your question. Can you show us the website where the data will be taken from? Is the data dynamic? Can you give us a sample workflow on how the data will be taken from your site and into the form?

    Thank you in advance for your cooperation. I am looking forward to your response.

    Neil

  • Profile Image

    Answered by Nepalkinderhilfe on June 09, 2011 at 08:54 AM

    Hi Neil,

    thanks for your answer.

     

    Have a look at http://www.nepalkinderhilfe.de/Formular_Issue_2011_06_09.png

     

    There I tried to describe the sitaution. It's a website for godparent and their godchilds. A potential godparent can agree to the sponsorship and therefore he has to fill out the formular, related to that special godchild.

     

    I hope, it's a little bit clear so far.

     

    Many thanks and regards,

     

    Juergen

  • Profile Image
    JotForm Support

    Answered by NeilVicente on June 09, 2011 at 06:12 PM

    Hi Juergen,

    Can you give me the exact url of the page you were talking about? I'll try to find a solution to incorporate that data into the form although I cannot promise that I'll be able to do so successfully. I look forward to your response.


    Neil

  • Profile Image

    Answered by Nepalkinderhilfe on June 10, 2011 at 01:28 AM

    Hi Neil,

    here is the link: http://www.nepalkinderhilfe.de/NKH/schulpatenschaft.htm

    This side is the test side for the new homepage of the "Nepal Children Aid" and I'm figuring out possibilities with Jotform.

    Within that page, you'll see the first field in the form, that shall take for example Firstname and Name, in this case "Adit Sidan". May be we can define this field ass hidden field or read-only.

    Hope that will help. Many thanks and regards,

     

    Juergen

  • Profile Image

    Answered by Nepalkinderhilfe on June 10, 2011 at 05:12 AM

    Hi Neil,

    I made some test and had the idea, to implement a form field, let's say id = "test", with the attribute: disabled="true"

    The source data I like to submit into the form field is stored at a <div id="source_field"></div>

     

    Is it possible to define this disabled attribute within jotform?

    If possible, I would integrate the following lines of code behind the form code:

     

     

    ... </form>

    <script type="text/javascript">

    document.getElementById("test").value = document.getElementById("source_field").innerHTML;

    </script>

     

     

    Juergen

  • Profile Image
    JotForm Support

    Answered by NeilVicente on June 11, 2011 at 05:06 AM

    Hi Juergen,

    Unfortunately, there is no way to insert a script tags to the form using the Form Builder. Script tags will be stripped out from the form. It is intended to be that way for security purposes.

    I think the easiest way to implement this workflow is to embed your form using full source code. Add some extra JavaScript function to your name selector (Region and name) that will populate a hidden field in the form.

    Each submission would then include the information prefilled by your Region and Name selector.

    Hope you find this useful.


    Neil