Setting up a Custom Field Name

By default, when searching within SessionCam for particular fields from your website forms, or when SessionCam saves the data, SessionCam uses the 'name=' attribute from within your html. If you don't wish to have a 'name=' attribute, or you have duplicate names, or non-meaningful names, you can tell SessionCam to use a Custom Field Name.

 

Adding the attribute sessioncam-name in the HTML of a field it is possible to set a custom field name that is sent over to SessionCam.

For example:

<input id="query" name="query" placeholder="Search" type="search">

This field could be assigned a custom name of SessionCamSearch by adding sessioncam-name as such:

<input id="query" name="query" sessioncam-name="SessionCamSearch"  placeholder="Search" type="search">

 

It is highly recommended that this attribute be placed on any fields that have a variable / dynamic field name which will provide a static name within the SessionCam console. 

This can also be used to give long or complex field names an easier to remember name or distinguish between multiple fields with the same name.