Add DropDown Custom Field to Form
-
I am trying to add a Custom Field to the ‘Submit Ticket’ page. I have added the following to my functions.php file, but the field shows as a text field in the dashboard and the submit ticket page.
Please advise.
//* Custom Field for Status
wpas_add_custom_field( ‘my_field_with_options’,
array(
‘title’ => ‘Ticket Status’,
‘type’ => ‘select’,
‘options’ => array(
array( ‘name’ => ‘Emergency’, ‘value’ => ‘Emergency’, ),
array( ‘name’ => ‘Urgent’, ‘value’ => ‘Urgent’, ),
array( ‘name’ => ‘Safety’, ‘value’ => ‘Safety’, ),
),
)
);
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Add DropDown Custom Field to Form’ is closed to new replies.