I'm trying to block the date field on the form and make the customer not able to change it, we successfully succeed to block the field by using this code:
Thank you for your reply, yes, I try this CSS solution before, and didn't work, I don't know why, please try it by yourself, that's why, I'm looking for javascript code to fix this issue.
I have issue on using script to block field on Hubspot?
SOLVE
Hello @RMechergui , you don't actually need javascript for this, you can do it by using just css like this:
.hs_event_date {
pointer-events: none;
}
Pointer events rule controls the mouse/touch functionality on the html elements so you can disable any events on any element by using the "none" value.