- kimonoboyAsked on July 10, 2012 at 05:29 AM
How can I pre-populate the form with a non-editable field as in this form where my "name" field is fixed?
This is a re-post of a comment on Prepopulating Fields to Your JotForm via URL Parameters
- JotForm SupportidarktechAnswered on July 10, 2012 at 05:45 AM
You need to use form source code for embedding and append disabled="disabled" code to the fields that you'd like to protect. Please check this simple guide right here, in this example I have added the code to the name field input line.
Let us know if you need further assistance. Thanks!
- kimonoboyAnswered on July 10, 2012 at 06:12 AM
Thank you for your very thorough explanation, video and very quick response.
Your solution works quite well but I had hoped to duplicate the format as seen on your site's question form. That is.. you can see the "name" field content in bold and there's no text box surrounding it.
It that possible?
- JotForm SupportidarktechAnswered on July 10, 2012 at 10:08 AM
Sorry for the delay.
To remove the box border and make the text bold, you can simply add custom css codes to your form. To do that, you have to get first the field ID. Example:
<label class="form-label-left" id="label_6" for="input_6"> Name: </label><div id="cid_6" class="form-input"><input type="text" class="form-textbox" id="input_6" name="q6_name" size="30" disabled="disabled"/></div>
The ID for this name field is input_6, to use it with CSS simply add # prefix. You may use this CSS, just replace the ID to your field ID.
Here's another simple video for you :) http://www.screencast.com/t/WT8Yt8K8mEU
Hope this helps. Thank you!
- kimonoboyAnswered on July 11, 2012 at 07:21 PMHello idarktech,
Thank you for responding to my inquiry.
Perfect answer and video.
Antique Japanese Folk Textiles
- jeanettebmzAnswered on July 11, 2012 at 08:35 PM
On behalf of my colleague, the legendary Idarktech, you are very welcome!