Zippy Form

Customizing After Form Submission

To customize what should happen after a form is submitted using the Zippy Form WordPress plugin, utilize the custom hook provided.

Example: Code For Redirect after submission

add_action('zippy_custom_hook_{formID}','callback_function');
function callback_function(){
    $output = array(
        'status' => 'redirect',
        'url'    => 'http://yourwebsite.com/thankyou/'
    );
    echo json_encode( $output );
}
                    

Example: Code For Refresh after submission

add_action('zippy_custom_hook_{formID}','callback_function');
function callback_function(){
    $output = array(
        'status' => 'refresh',
    );
    echo json_encode( $output );
}
                    

Replace custom_function_after_form_submission with your custom function name, and add your desired functionality within the function.