Hi
I have two questions regarding functionality that are interrelated:
- Is there a way to prevent the saving of a form?
I have a requirement to optionally not save a form dependent on the value of one of its fields. I know that i can use gform_pre_submission_N to get access to the form data after submission and before it is saved. Is there a way to use this hook to tell Gravity forms not to save the current form? The Hook documentation isn't very detailed, returning false doesn't seem to work. - Is there a way to programatically submit a form with arbitrary data?
If i have captured the data from the previously cancelled form submission in a $_SESSION variable and then dependent on further actions on the site fill out a new form instance and submit it. A PHP solution would be preferable, however a having to use an embedded form with hidden fields and javascript to fill the values would be acceptable.
Thanks for any help, let me know if i am being too obscure in my description.
Thanks
Barney