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 displayed.
iphorm_pre_display
This hook is run for all forms.
Example
1 2 3 4 5 | function my_pre_display($form) { // Custom code } add_action('iphorm_pre_display', 'my_pre_display'); |
function my_pre_display($form) { // Custom code } add_action('iphorm_pre_display', 'my_pre_display');
Parameters
- $form – the iPhorm instance
Accessing form data
iphorm_pre_display_X
This hook is run for a single form, replace X with the form ID.
Example
1 2 3 4 5 | function my_pre_display($form) { // Custom code } add_action('iphorm_pre_display_1', 'my_pre_display'); |
function my_pre_display($form) { // Custom code } add_action('iphorm_pre_display_1', 'my_pre_display');
Parameters
- $form – the iPhorm instance