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

    Feature request. Field parameter insertion at run time.

    Asked by NRCsupport on March 09, 2014 at 05:26 PM

    There are various places where JotForm allowsthe use of a field name enclosed in {} to be replaced by the value of that field at run time. This is available in building a thankyou url, in the caculation widget, in building a thankyou message, and in building notification and response emails.

    Would it be possible to extend this capability to wider use, particularly in any HTML text block. It would also be useful in setting the default value for some fields - to base it on the contents of other fields.

    Feature Request Emails JotForm name message
  • Profile Image
    JotForm Support

    Answered by jonathan on March 09, 2014 at 07:41 PM

    Hi,

    If I am to simplify the description of your request, I understand it like this.

    "Allow insertion of script code block in TEXT(HTML) field to capture or assign value base on the content of other fields in the form."

    Can you please confirm if my understanding is correct?

    You can also re-phrase your descriptions for clarity.

    I just need to have a clearer details before I can submit the request for approval.

    Thanks!

  • Profile Image

    Answered by NRCsupport on March 10, 2014 at 07:21 AM

    Thank you. I think you've understood what I'm asking for, but I would prefer this brief description.

    "Allow the insertion of field names enclosed in {} in TEXT(HTML) field to be replaced by the contents of the field when the form is being used"

    A useful example of where it is already available is in the TEXT(HTML) when building a Thank You message (third option in thankyou wizard)

    The mention of script code implies how it is to be implented - not the user requirement.

  • Profile Image
    JotForm Support

    Answered by TitusN on March 10, 2014 at 10:39 AM

    Hello,

    Thank you for the clarification.

    A couple of more questions:

    So you want to prepopulate values in the Test/HTML field using the server-side Variable - for instance -  {some_text}, right?

    What if you were able to do this, with say - the calculation widget to prepopulate values on a certain part of the form -  would it be the same thing?

    Thank you for your patience.

     

  • Profile Image

    Answered by NRCsupport on March 10, 2014 at 11:09 AM

    Yes, that is what I meant. And yes, doing it through the calculation widget would be fine if that could be used in aText/HTML area rather than in a field. I think that would also meet my request for a "non-submit" button, as it would allow me to create a link to a url that is partly made up from substituted field values.

  • Profile Image

    Answered by EliezerN on March 10, 2014 at 02:08 PM

    Hi NRCsupport,

    I don't think what you need can be accomplished by using the Text (HTML) feature. The Text feature is used to show text, as an output that will read just the plain text that is entered on it. It will not interpret/read any value from other field.

    In the next example I tried to use the Name field variable to show the final value on the Text field, but it just shows the variable itself: 

    So, the only way would be by using a Textbox. If you want to generate a URL so that the form user can get it and go there, you can apply this workaround with the Calculation widget: 

    1. Add a textbox field where the form user enters the part of the URL that will be generated. I have labeled mine as "Enter the folder's name".

    2. Then add the Form Calculation widget, and configure it by adding the main/default part of the URL and then add the field where users will enter the complement.

    3. You can label the widget as "Copy the URL". That way the form user will know he needs to go that link.

    (Click on the image to make it bigger)

    I hope this helps. Please let us know if you need further assistance with this inquiry.

    Thanks

  • Profile Image

    Answered by NRCsupport on March 10, 2014 at 05:23 PM

    Thanks, that is a neat solution, although I'd prefer a link or button that the user can click rather than having to copy and paste. I found a solution using a renamed submit button (described in another thread).

    I did try your suggestion and met a problem. The url I need to create contains ampersand characters (&). The widget is replacing & by & (presumably some sort of substitution for html or php or javascript), and it does not seem to work as a url. Is there a way of getting them put back to ampersands?

  • Profile Image

    Answered by Cesar on March 10, 2014 at 07:51 PM

    I have been testing the widget and indeed the ampersands inserts additional information on the form. I have now inserted a bug ticket in regards to this issue to the development team. Once they have additional information on this, you will be notified through this thread. Thank you.

  • Profile Image

    Answered by NRCsupport on March 11, 2014 at 10:10 AM

     

    Thanks