I wanted to use JS to manipulate the HS embedded form after it loads, To add a data-attribute=“PRICE” to each option in a select dropdown on a form. When the option is selected then I update a #subtotal text value with an updated price.
Seems like my JS won’t affect the embedded HS form or even listen to the select dropdown change. I then tried putting my JS in the onFormReady callback and still not working.
Hi @Senor and welcome to the Community, we are delighted to have you here!
Thanks for reaching out to us!
Could you please share the code you are using and the URL of the webpage where the form is, please?
The more info, screenshots (without sensitive/confidential information), and details you can provide, the better the Community can assist.
I’d love to put you in touch with some of our Top Experts:
Hi @Syeda_Fatima, @alyssamwilie and @miljkovicmisa do you have tips to help @Senor, please?
Thanks so much and have a nice day!
Best,
Bérangère
Can you please share your code snippet where you are using the call back and when you do please make sure to remove the values of portal ID and form ID.