Ability to customize form content based on the URL and get the form submission id after submitting.

  • Profile Image
    Vignesh689
    Asked on February 08, 2018 at 03:10 AM

    Hello,

    I have an application running in my intranet servers for healthcare organization and I need to integrate the forms filled by my clients using JotForms.

    My use cases are

    1. I have the client name, treatment etc that changes for each client filling the form. I need to somehow send those data to the jot form when the client fills it. I saw help for sending data to an input field, but I want to send to normal text fields. 

    Eg: Form content would be: 'Hello Vignesh, Please fill the form below.' I want the content Vignesh from the URL and to be dynamic.

    2. Since my servers are internal, I cannot integrate with Webhooks. I want to trigger the JotForm from my web page on a button click and then when the user completes the form, I would need the submission id for the form submitted sent back to the javascript function as return parameter (or any other method is also accepted). I will get the submission id and then query the API to get the submission data.

    Please let me know if these are achievable using JotForms.

    Cheers

    Vignesh

  • Profile Image
    Adrian
    Answered on February 08, 2018 at 06:55 AM

    1. I have the client name, treatment etc that changes for each client filling the form. I need to somehow send those data to the jot form when the client fills it. I saw help for sending data to an input field, but I want to send to normal text fields. 

    Eg: Form content would be: 'Hello Vignesh, Please fill the form below.' I want the content Vignesh from the URL and to be dynamic.

    You can prepopulate the fields of your form using URL parameters.

    Example prepopulated URL for your form: http://www.jotform.me/form/80381780613456?clientName72[first]=Vignesh

    You can read more about prepopulating forms in the article below:

    Prepopulating Fields to Your JotForm via URL Parameters

    This web application built by JotForm will help you a lot to generate the URL that you want:

    http://prepopulate.jotform.io/

    2. Since my servers are internal, I cannot integrate with Webhooks. I want to trigger the JotForm from my web page on a button click and then when the user completes the form, I would need the submission id for the form submitted sent back to the javascript function as return parameter (or any other method is also accepted). I will get the submission id and then query the API to get the submission data.

    You can get the full source code of your form and customize it to your needs.

    How to get the Full Source Code of your Form

    I believe webhooks would work on local server machines as well.

    Help Articles:

    How to Setup a Webhook with JotForm

    Send Instant Submission Notifications with Webhooks


    Let us know if you have further questions.

  • Profile Image
    Vignesh689
    Answered on February 08, 2018 at 07:32 AM

    Hello,

    Thanks for the response. To clarify the questions,

    1. I want to autopopulate based on the URL generated from my other application. Its not statically prepopulated. Its dynamic based on the client logging into the system. And secondly, I want to autopopulate the Text (Static header or sub header text) and not the text box control. Only the text box control has the id to manipulate it.


    I am trying now by creating a hidden textbox element and sending value to the element through url and then in the conditions, modifying the text with the value from the input box. But the problem is I am not able to modify the text box using the condition.


    2. Does webhooks allow to be called in intranet? I believe the form will be rendered from your site so it cannot reach the app in the intranet. Please let me know.

    I am so new to this, so any help would be appreciated.

  • Profile Image
    Adrian
    Answered on February 08, 2018 at 09:09 AM

    1. The following guide shows how you can pass data from one form to another:

    Send Submission Data via Post Method and Thank You Settings

    If you have your own login system, you will need to generate the prepopulated URL which should not be difficult.

    You can pass the data from the input to the textbox by putting the unique name of the input inside curly braces.

    Here is an example: https://form.jotform.com/80383524122954?hiddenField=TEXT%20GOES%20HERE

    1518097857Fullscreen_2_8_18__2_48_PM.png


    2. This guides can help you achieve what you need, assuming the form is filled from a computer in your intranet.

    https://www.jotform.com/help/51-How-to-Post-Submission-Data-to-Thank-You-Page

    https://www.jotform.com/help/213-Send-Submission-Data-via-Post-Method-and-Thank-You-Settings

  • Profile Image
    Adrian
    Answered on February 08, 2018 at 09:09 AM

    1. The following guide shows how you can pass data from one form to another:

    Send Submission Data via Post Method and Thank You Settings

    If you have your own login system, you will need to generate the prepopulated URL which should not be difficult.

    You can pass the data from the input to the textbox by putting the unique name of the input inside curly braces.

    Here is an example: https://form.jotform.com/80383524122954?hiddenField=TEXT%20GOES%20HERE

    1518097857Fullscreen_2_8_18__2_48_PM.png


    2. This guides can help you achieve what you need, assuming the form is filled from a computer in your intranet.

    https://www.jotform.com/help/51-How-to-Post-Submission-Data-to-Thank-You-Page

    https://www.jotform.com/help/213-Send-Submission-Data-via-Post-Method-and-Thank-You-Settings