I have this line of code:
<?php // echo generate_select_list('form_abook_type', 'abook_type', ($row['abook_type'] ?? null), '', 'Unassigned', 'form-control-sm', 'typeSelect(this.value)'); ?>that leads to the image below where we imported the address book types from the list:
I want to do this as well but for the states ( I changed name of State to Kaza in the figure), but I think I am missing something or the list name is wrong, does anyone know what is the correct name fore the States list if I want to add it to my code
code I am trying to change that was inspired from the code above:
<?php echo generate_select_list('form_abook_state', 'abook_state', ($row['state'] ?? null), '', 'Unassigned', 'form-control-sm', 'typeSelect(this.value)'); ?>
Empty list of states
full code can be found in addrbook_edit.php