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?
Thanks for any help, let me know if i am being too obscure in my description.