Javascript for hubspot forms on hubspot landing page



hi, i’m creating a LP with hubspot form. we have a hidden field similar to unique ID (“unique_id”).

we would like to insert this javascript


to generate this UID when a user submits the form to be captured. is there a way we can do this on hubspot landing page? where do we insert this javascript and how do we direct it to the custom form property “unique_id”?

many thanks! :slight_smile:


@daryl You can write in any custom Javascript onto the page using the design manager where you can either add a custom module including it or you can write your own JS file and call it from your template.