Form field preset values disappear after the form load
SOLVE
In our project, we're using a HubSpot form for the product enquiry page. We've managed to retrieve the current product SKU and name and stored them in a JavaScript variable. We then used these values to populate two fields in the form (Product SKU and Product Name) and set those fields as read-only to prevent editing. We embedded this form as raw HTML.
However, we are currently facing an issue with the form. The preset values are not always displayed and they disappear after the form completely loads. Do you have any suggestions on how we can do it?