I’m trying to find a solution how to activate a another customfield in WordPress pages when the selectbox is selected.
This is the script to simply show the customfield 'checkbox'
in wordpress page editor.
array(
'name' => 'Lees meer button',
'desc' => 'Leesbutton weergeven.',
'id' => $prefix . 'homepage_slider_leesmeer',
'type' => 'checkbox',
),
What I want to achieve is to display a another customfield in the WordPress page editor, when the selectbox is checked.
How can this be done?
A possible solution is to use jquery to show/hide your custom field, something like this: