I am trying to use this code (with different choices for the second dropdown) but keep getting a fatal error on line 1: syntax error, unexpected 'set_column2’' (T_STRING), expecting ')'
This my my code:
add_filter( 'gform_column_input_6_22_4’, 'set_column2’, 10, 5 );
function set_column2( $input_info, $field, $column, $value, $form_id ) {
return array( 'type' => 'select', 'choices' => 'One, Two' );
}
I understand I'm missing a ' (I think?) but I can't understand where? Everything seems complete.