Heads up!
This article contains PHP code and is intended for developers. We offer this code as a courtesy, but don't provide support for code customizations or 3rd party development.
This article contains PHP code and is intended for developers. We offer this code as a courtesy, but don't provide support for code customizations or 3rd party development.
Use this filter to toggle off the behavior of the auto-focus that gets triggered on the first field with an error.
Usage
add_filter( 'frm_focus_first_error', '__return_false' );
Parameters
- None
Examples
Basic example
This filter is on by default. Use this code example to turn it off.
add_filter( 'frm_focus_first_error', '__return_false' );