Loading

Pass hidden parameters in Web to Case and Web to Lead

Julkaisupäivä: Oct 13, 2022
Kuvaus

Use hidden parameters in Web to Case and Web to Lead to pass additional data and prevent the end user from changing those values.
Ratkaisu

When using the Salesforce Web to Lead and Web to Case, hidden HTML parameters can be used to set the values of your lead or case fields. The use of hidden parameters prevents your end-users from changing the value of those fields.

To pass a hidden value, use the following HTML tags:

<input type=hidden name="nameofhiddenfield" id="nameofhiddenfield" value="XXXX">

For example, when trying to use all cases captured via the Online Case Capture interface to have a Priority of High, use the following HTML syntax:

<input type=hidden name="priority" id="priority" value="High">

Note: When writing the name/id of the field, use only lowercase, even though the API name shows capitalised in Salesforce

Custom fields can also be passed as hidden fields. However, this may require assistance from the Administrator of the Organization to attain the ID number of the custom field. The correct syntax to pass a hidden custom field would then be:

<input type="hidden" name="00N00000000X0xY" id="00N00000000X0xY" value="CustField">
Knowledge-artikkelin numero

000385544

 
Ladataan
Salesforce Help | Article