Gravity integrations fontend edit does not fire hooks?
-
Hi, I have a gravity form. I have added a hook:
add_action( ‘gform_pre_submission_10’, ‘pre_submission_handler’ );
function pre_submission_handler( $form ) {
if (empty(rgpost( ‘input_46’ ))) {
$_POST[‘input_46’] = ‘Ja’;
$_POST[‘input_45’] = ‘Nieuw’; }
Basically it checks if a field is empty and if so it fills two fields in the form. Works fineNow when I open the record with the front end editing and change some stuff in the form and submit, the changed data IS in the form, but it looks like the hook did not change the data. So question: are the hooks not “fired” with front end editing and if not, how can I do some manipulation of the data, after front end editing, but before it is put back into the DB
Many thanks ! Wilke
The topic ‘Gravity integrations fontend edit does not fire hooks?’ is closed to new replies.