'Populate columns on selection - gravity forms
I have a gravity form list field and I have this code in order to turn the first column into a select drop down.
add_filter( 'gform_column_input_83_1_1', 'set_column', 10, 5 );
function set_column( $input_info, $field, $column, $value, $form_id ) {
return array( 'type' => 'select', 'choices' => 'choice 1,choice 2,choice 3' );
}
I would like to extend this further and would like column 2 to dynamically populate according to the selection.
For example.
Column 1 will be 'Name' and column 2 will be 'ID' and will be populated with the ID that I have in the code for that name choice.
Would anyone know a snippet for this?
Thankyou in advance.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
