01Populate Custom Fields, explained
Using custom HTML/JavaScript you can set the value of a custom field by assigning to its element and dispatching an input event.
When the form is submitted, the populated custom field is saved in the submission record.
02How to set up and use Populate Custom Fields in HighLevel
Retrieve the custom field ID
- Go to the Preview of the form.
- Right click on the page and select 'Inspect.'
- Select the mouse pointer tool.
- Click on the "Custom Field."
- Copy the ID from the name and ID properties.
Set the custom field value with JavaScript
- Replace myData with the variable or string that holds the data you want to capture.
- Insert the following code, using the actual custom field ID:.
- Document.getElementsByName('customFieldId')[0].value = myData;.
- Document.getElementsByName('customFieldId')[0].dispatchEvent(new Event("input"));.
03What it looks like in HighLevel
Michael's take

Be careful: Inserting custom JavaScript into a form can break the submission if the script targets the wrong element or fails to fire the input event. Double check the field ID and test the form before you go live.
