CMS Development

sandracaroline
Participant

Disable button in hubspot form

Hello! 

 

I am trying to make a button disabled if the checkbox is not checked in a hubspot form. Like I did here http://jsfiddle.net/r58nfqL6/10/ 

 

I have tried a few different jquery solutions, but my code doesnt seem to be read. I have added Jquery 1.9.1 library and this is how my code is written at this moment:

 

jqueryerror.PNG

 

Would appreciate it if someone could correct me on this 🙂

0 Upvotes
2 Replies 2
dennisedson
HubSpot Product Team
HubSpot Product Team

Disable button in hubspot form

@sandracaroline, you will most likely want to put in the onFormReady parameter in the form embed code

see here

JasonRosa
HubSpot Employee
HubSpot Employee

Disable button in hubspot form

Hey @sandracaroline can you link to the page that you're working on/a preview URL so that I can take a closer look at your code? My guess is that your JS is loading before the form loads. You might need to add an on load event listener around your JS so that your code runs after the form loads. 

0 Upvotes