Access Form ID / Title inside JavaScript Event Callback
-
I would like to access the form title and ID inside the JavaScript event [0]. You get the
event
variable in the callback and through thetarget
property get the HTMLid=""
of the emitting form.Inside the form is a hidden input field with
name="_wpcf7"
wich contains the WordPress ID of the form. This is perfect, but I would also like to get to the name of the form.Is it possible to add a hidden input field like
name="_wpcf7_title"
that contains the title? Or is it the possible to get the name with the JavaScript another way?Thanks,
Jonathan
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Access Form ID / Title inside JavaScript Event Callback’ is closed to new replies.