Support Forum
Support › Meta Box Conditional Logic › bugs: using two fields and field with required attributeResolved
Hi!
How are you doing in this quarantine period? I hope well!
I have two cases in which I am encountering problems using the logical conditions:
MY CODE:
array(
'visible' => array('status', 'in', array('scheduled','realized','review')),
'name' => 'Data da Consulta',
'id' => 'scheduled_to',
'type' => 'datetime',
'attributes' => array(
'required' => true,
),
'js_options' => array(
'stepMinute' => 15,
'showTimepicker' => true,
'controlType' => 'select',
'showButtonPanel' => false,
'oneLine' => true,
),
'inline' => false,
'timestamp' => false,
'tooltip' => array(
'icon' => 'help',
'content' => esc_html__('Se for o caso, informe a data para a qual a consulta com o cliente foi agendada.', 'mercadoterra'),
'position' => 'right',
),
),
array(
'visible' => array('status', 'in', array('scheduled','realized','review')),
'name' => 'Informe o local da consulta',
'id' => 'location',
'type' => 'textarea',
'tooltip' => array(
'icon' => 'help',
'content' => esc_html__('Informe o endereço de forma detalhada onde será realizada a consulta. Caso seja na casa do cliente, informe "Em domicílio"', 'mercadoterra'),
'position' => 'right',
),
),
array(
'visible' => array('status', '=', 'declined'),
'name' => 'Informe o motivo da desistência',
'id' => 'declined_by',
'type' => 'textarea',
'tooltip' => array(
'icon' => 'help',
'content' => esc_html__('O motivo não será divulgado para o cliente e servirá para que possamos melhorar nosso serviço.', 'mercadoterra'),
'position' => 'right',
),
),
Hi,
The problem happens because of the double quote in the content of tooltip "Em domicílio"
. Please update the new version of MB Conditional Logic to v1.6.12 then check it again.
Thank you.
Hey Long!
Thanks for response. Works fine!
Now, I'm sending a screenshot of my metabox. When the fiedl are hidden a large vertical space are created because the style hidden is applied to rwmb-field and not to rwmb-row.
I believe that a feature shouldn't change the UI look that way. What do you think?
Hi,
There is margin-bottom 12px of each row, see my screenshot https://cl.ly/0b63d60d6edb
Thank you for your idea, I will discuss with the developer team to improve this case.
Have a good day.