redux-framework icon indicating copy to clipboard operation
redux-framework copied to clipboard

Required for info field

Open javierencalada opened this issue 12 years ago • 3 comments

Hi, im trying to hide an info field with this code:

array( 'id' => 'display_gmap', 'type' => 'switch', 'title' => __('Display Google Maps', 'ep-framework'), 'subtitle' => '', 'desc' => __('', 'ep-framework'), 'default' => '1' ), array( 'id' => 'info_gmap', 'type' => 'info', 'required' => array('display_gmap', '=', '1'), 'title' => __( 'How to get the latitude and longitude:', 'redux-framework-demo' ), 'desc' => __( 'Lorem ipsum', 'redux-framework-demo') ),

But doesn't works. The bordered TR fadeouts but not the DIV with the information.

I have some fields like this one:

array( 'id' => 'latitude', 'type' => 'text', 'required' => array('display_gmap', '=', '1'), 'title' => __('Latitude', 'ep-framework') ), And all works fine, except the info field.

Im using Chrome, Windows 7 and the latest redux core from github.

javierencalada avatar Jan 06 '14 04:01 javierencalada

Yea, it's broken right now. This is a duplicate of #157, so I am closing the older. I'll look into this.

dovy avatar Jan 08 '14 00:01 dovy

Just pushed a fix. Works now.

dovy avatar Jan 08 '14 02:01 dovy

Just an FYI, this has been resolved. You can now have multiple required parents as well for each field. ;)

dovy avatar Apr 04 '14 15:04 dovy