Conditionally switch default value
add_filter(‘frm_get_default_value’, ‘switch_my_default_value’, 10, 2); function switch_my_default_value( $new_value, $field ){ if ( in_array( $field->id, array( 25, 26, 27 ) ) ) { if ( isset( $_GET[‘pass_entry’] ) ) { $new_value = do_shortcode( ‘[frm-field-value field_id=’ . $field->id . ‘ entry=pass_entry]’ ); }…Continue reading