Wednesday, 15 June 2011

javascript - Prevent Gravity Forms submitting -


I am trying to stop Gravity Form (WordPress) from presenting the form and pass field value instead of Simplified Javascript I am doing But somehow it just does not work.

I have tried:

  jquery (document) .ready (function () {$ ("# gform_1") submit (function (event) {// Gform_1 - the form alert's ID ('removed!'); Return return;});});  

But this is not triggered - the form is still stored and I can see that confirmation message. Can you tell me what is wrong?

Just to be clear: I do not want to see those entries in my database, I do not want my form being removed and confirmation message etc. (That's why I'm not using gform_post_submission like hook ) I just want to use some form data in my script. Is it possible and how? thank you in advanced! Edit: It was sorted: The script was inside a post, so I had to use "jQuery" ("# gform_1") instead of "$ (" # gform_1 ").


No comments:

Post a Comment