When using Salesforce Web to Lead and Web to Case, hidden HTML parameters can be used to set the values of lead or case fields. Hidden parameters prevent end users from changing those field values.
To pass a hidden value, add the following hidden input element to your HTML form:
<input type=hidden name="nameofhiddenfield" id="nameofhiddenfield" value="XXXX">
To set the Priority field to High for all cases captured via Web to Case, add the following hidden input element to your HTML form.
The name and id attributes use lowercase field API names, and value contains the desired field value.
<input type=hidden name="priority" id="priority" value="High">
Note: When writing the name or id of the field, use only lowercase characters, even if the API name appears capitalized in Salesforce.
Custom fields can also be passed as hidden parameters. This may require assistance from a Salesforce Administrator to obtain the custom field ID.
To pass a custom field value, add a hidden input element using the custom field ID as the name and id.
<input type="hidden" name="00N00000000X0xY" id="00N00000000X0xY" value="CustField">
000385544

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.