How to add label to form element when using source code

  • Profile Image
    acornmarketplace
    Asked on September 08, 2017 at 01:55 PM

    Hello!

     

    I am trying to pre-populate values into a form. I have set the field name as firstname but when i publish the form the field name is changed to q5_firstname so my field data won't pre-populate from the URL parameters.

     

    How can I scrub the q5_ off the field name?

     

    Thanks!

     

  • Profile Image
    TREVON
    Answered on September 08, 2017 at 02:15 PM

    I have checked your forms but none of them has these elements. The form link you shared also does not have such elements. It only has submit button which links to a totally different site.

    Kindly share the exact for that has this issues so that we can look at it and resolve it accordingly.

    Thank you.

  • Profile Image
    acornmarketplace
    Answered on September 08, 2017 at 02:44 PM

    They are hidden elements which you can see by viewing the source. Example:

     

    <input type="text" id="input_4" name="q4_zipcode" data-type="input-textbox" class="form-textbox" size="20" value="" data-component="textbox">

     

    I want to scrub the q4_

  • Profile Image
    TREVON
    Answered on September 08, 2017 at 03:21 PM

    Kindly try the code below for the Zip code. It should resolve the issue. Kindly let me know if it resolves the issue. To replicate the same add the words you want displayed  before tags

    ZIP Code: <input type="text" id="input_4" name="q4_zipcode" data-type="input-textbox" class="form-textbox" size="20" value="" data-component="textbox">

  • Profile Image
    acornmarketplace
    Answered on September 12, 2017 at 10:11 PM

    Hello, thank you for your response. It is not that I want to add words before the tabs, it's that i want to change the field name behind the scenes.

     

    <input type="text" id="input_4" name="q4_zipcode" data-type="input-textbox" class="form-textbox" size="20" value="" data-component="textbox">

     

    I want to change the yellow highlight to just zipcode but I don't see an option to do that in configuration.

  • Profile Image
    jonathan
    Answered on September 13, 2017 at 01:43 AM

    It is not really clear what you wanted to do here. It will help us provide you with the appropriate response and suggestions if you provide us with a much clearer details of what you wanted to do.

     

    ...it is not that I want to add words before the tabs, it's that i want to change the field name behind the scenes.

    Now, from what I got so far from the discussion, I think what you were trying to do is to modify how the Form Builder publish the source codes of the form.

    Can you please confirm that this is what you are after?

    User guide: How to get the Full Source Code of your Form

    If this is the case, I am sorry but this not possible. You will have to develop the Form Builder to have that.

     I hope this help. Let us know how we can be of further assistance.