How to customise the form success message

Created by Phil Kurth, Modified on Fri, 24 Jun 2022 at 10:00 AM by Phil Kurth

When creating or editing a form, you may customise the success message in Form Settings > Display > Success message. e.g; 


Customising the form success message using PHP


You may also use the `af/form/success_message` filter to customise the success message. e.g;


function change_success_message_example( $success_message, $form, $args ) {
  
  if ( $form['key'] === 'FORM_KEY' ) {
    $success_message = 'New success message';
  }
  
  return $success_message;
}

add_filter( 'af/form/success_message', 'change_success_message_example', 10, 3 );

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article