- This topic has 2 replies, 2 voices, and was last updated 2 years, 2 months ago by .
I have two metabox:
First metabox 'metabox_id_A' wiht a radio field 'radio_field_id' and the values 'radio_1' and 'radio_2'.
Another metabox 'metabox_id_B' with some text fields 'text_field_1', 'text_field_2', 'text_field_3', 'text_field_4','map_field'...
It's posible to hidden all the fields of' metabox_id_B' if is select the 'radio_1' of the 'metabox_id_A' ?
I try this i the 'metabox_id_A':
'hidden' => array( 'metabox_id_A', '=', 'radio_1' ),
And it run well in the back office, but NOT run well in the front office...
If I put the hidden in each field of 'text_field_1', 'text_field_2',..... it run well both, back and front office.
Also, don't know if is the best way do this, because in this case, I only have one field in 'metabox_id_A'.
- You must be logged in to reply to this topic.