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.
Make adjustments to the value used in form action logic. This filter is run each time a row of logic is evaluated at the time a form action is triggered.
Usage
add_filter( 'frm_action_logic_value', 'frm_change_logic_value' ); function frm_change_logic_value( $logic_value ) {
Parameters
- $logic_value (string) - The value saved in the form action conditional logic.
Examples
Run all shortcodes
Compare a value in the entry to any shortcode included in the conditional logic settings.
add_filter( 'frm_action_logic_value', 'frm_change_logic_value' );
function frm_change_logic_value( $logic_value ) {
$logic_value = do_shortcode( $logic_value );
return $logic_value;
}