Array Conditional Value
fauzie opened this issue · comments
I have radio_inline
field with options value '1', '2', '3'.
next on this i have select with conditional value, if radio option 2 or 3 selected:
'attributes' => array(
'required' => true,
'data-conditional-id' => $prefix . 'sidebar',
'data-conditional-value' => json_encode(array('2','3'))
)
But, its print html with invalid quotes, make select not working on change & won't save value with invalid html markup.
<select class="cmb2_select" ... data-conditional-value="["2","3"]" required> ....
Hi @fauzie,
I will check on it but i am afraid, it is out of the scope of cmb2-conditionals as the responsible for rendering the attributes is cmb2.
I will come back with a solution anyways.