You can use hidden fields in the web forms by changing the HTML code. There are two cases:
- when you want to hide a standard field in the web form
For instance, you want to add a hidden field in the web to lead form
to capture the information regarding the source of the lead.
You can select the standard field, Lead Source, while creating the web form and
generate the HTML code. The code for the standard field will be as
mentioned below:
<input
type='text' maxlength='20' name='Lead Source' />
Replace the code with:
<input type='hidden' maxlength='20' name='Lead Source' value='Web Form 1'/>
- when you want to hide a custom field in the web form
For instance, you want to add a hidden field in the web to lead form
to track the source of your leads.
You can select the custom field (Source) while creating the web form and
generate the HTML code. The code for the custom field will be as
mentioned below:
<tr><td nowrap
style='font-family:sans-serif;font-size:12px;font-weight:bold'
align='right' width='25%'>Source: </td><td width='75%'><input
type='text' maxlength='8' name='LEADCF1' /> </td></tr>
Make 3 copies of the generated HTML code for the web form and replace the above code with the one mentioned below (with A, B, C values in each copy):
<input
type='hidden' maxlength='8' name='LEADCF1'
value="A"/>
Important Note: The name LEADCF1
(Lead Custom Field 1) is generated by Zoho CRM and used for reference
in the code instead of the actual field name. Please note that the
custom field name should not be used, as in <input
type='hidden' maxlength='8' name='Source'
value="A"/> .)
After making the changes, you can publish the web form in the corresponding web pages.
Related Questions:
Can multiple web forms be created?
How can I make certain fields as mandatory in web forms?