• Resolved wilkeebeling

    (@wilkeebeling)


    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 fine

    Now 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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author wpDataTables

    (@wpdatatables)

    Hi there.

    Thank you for reaching out to us.

    We’ve tested this on our end and the values will be replaced only when the field in question is empty. Then, it will be displayed both in the table and in the edit modal.

    Since Gravity Forms integration is only available with the full version of the plugin, this forum is not suitable for providing this kind of assistance.

    Please open a ticket on our official support platform, and we’ll gladly help. If your support expired, just open a pre-purchase ticket.

    Kind regards.

    Thread Starter wilkeebeling

    (@wilkeebeling)

    Hi thanks for the reply. Sorry for the wrong forum. I do have a paid version. Meanwhile it works now. When the fields in the form are hidden fields, the fields can be checked and updated also after front-end editing submit. That is sufficient for my needs. Will reach out on official platform in case of problems next time.
    Kind regards, Wilke

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Gravity integrations fontend edit does not fire hooks?’ is closed to new replies.