Set List options dynamically?
-
I am trying to add options at a list dropdown dynamically at functions.php of the theme using ninja_forms_field (http://docs.ninjaforms.com/article/146-ninjaformsfield) . But what should be the key of that part of the array controlling the dropdown options? I try print_r($data) and seems cannot get the key like [label], etc
[label] => Package [input_limit_msg] => character(s) left [label_pos] => above [list_type] => dropdown [multi_size] => 5 [list_show_value] => 0 => Array ( [options] => Array ( [0] => Array ( [label] => Option 1 [value] => [calc] => [selected] => 0 ) ) ) [user_info_field_group] => ......
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
The topic ‘Set List options dynamically?’ is closed to new replies.