iphorm_success_message

This documentation page is for Quform version 1 and may not be applicable for Quform 2 click here to visit the documentation for Quform 2.

This hook is run when retrieving the success message.

iphorm_success_message

This hook is run for all forms when the success action is set to display a message.

Example

1
2
3
4
5
6
7
8
function my_success_message($message, $form)
{
    // Custom code example
    $message = 'This is a success message.';
 
    return $message ;
}
add_action('iphorm_success_message', 'my_success_message', 10, 2);
function my_success_message($message, $form)
{
    // Custom code example
    $message = 'This is a success message.';

    return $message ;
}
add_action('iphorm_success_message', 'my_success_message', 10, 2);

Parameters

  • $message – the current success message set in the form builder
  • $form – the iPhorm instance

Accessing form data

See Getting form values

iphorm_success_message_X

This hook is run for a single form when the success action is set to display a message, replace X with the form ID.

Example

1
2
3
4
5
6
7
8
function my_success_message($message, $form)
{
    // Custom code example
    $message = 'This is a success message.';
 
    return $message;
}
add_action('iphorm_success_message_1', 'my_success_message', 10, 2);
function my_success_message($message, $form)
{
    // Custom code example
    $message = 'This is a success message.';

    return $message;
}
add_action('iphorm_success_message_1', 'my_success_message', 10, 2);

This function will run for form ID 1.

Parameters

  • $message – the current success message set in the form builder
  • $form – the iPhorm instance

Accessing form data

See Getting form values

Be inspired. © 2024 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy