iphorm_pre_process

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 before the form is processed.

iphorm_pre_process

This hook is run for all forms.

Example

1
2
3
4
5
function my_pre_process($form)
{
    // Custom code
}
add_action('iphorm_pre_process', 'my_pre_process');
function my_pre_process($form)
{
    // Custom code
}
add_action('iphorm_pre_process', 'my_pre_process');

Parameters

  • $form – the iPhorm instance

Accessing form data

Form data is not accessible using the $form object as the values have not been populated yet. You can access the fields directly in the $_POST superglobal and if needed modify them before they are processed.

iphorm_pre_process_X

This hook is run for a single form, replace X with the form ID.

Example

1
2
3
4
5
function my_pre_process($form)
{
    // Custom code
}
add_action('iphorm_pre_process_1', 'my_pre_process');
function my_pre_process($form)
{
    // Custom code
}
add_action('iphorm_pre_process_1', 'my_pre_process');

Parameters

  • $form – the iPhorm instance

Accessing form data

Form data is not accessible using the $form object as the values have not been populated yet. You can access the fields directly in the $_POST superglobal and if needed modify them before they are processed.

Other guides using this hook

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