Populating a hidden field in a HubSpot form with Javascript

Hi @KKoch0

The onFormReady callback runs when the form is fully loaded, but HubSpot’s internal scripts might still override the hidden field value after your script runs.
Try using a setTimeout function inside onFormReady with different times and then it should work as per your requirement.

I hope this will help you out. Please mark it as Solution Accepted and upvote to help another Community member.
Thanks!