I have this piece of code in an edit content form:
---------------------------
....
[cred_generic_field field='eliminacion' type='select' class='' urlparam='']
{
"required":1,
"validate_format":0,
"default":["0"],
"options":[
{"value":"0","label":"No deseo ni ocultar ni eliminar esta casa"},
{"value":"1","label":"Deseo ocultar esta casa"},
{"value":"2","label":"Deseo eliminar esta casa"}]
}
[/cred_generic_field]
[cred_show_group if="($(eliminacion) gt '0')" mode="fade-slide"]
Esta opción se aplicará a esta casa ("[wpv-post-title]")
[/cred_show_group]
[cred_show_group if="($(eliminacion) eq '0')" mode="fade-slide"]
<a href="hidden link" class="button" style="width:100%;text-align:center">Cancelar y volver a Mis Casas</a>
[/cred_show_group]
[cred_show_group if="($(eliminacion) eq '1')" mode="fade-slide"]
[cred_field field='form_submit' value='Confirmar Ocultar casa y volver a Mis Casas' urlparam='' class='btn btn-primary btn-lg' output='bootstrap']
[/cred_show_group]
....
---------------------------
First time I display this edit content form it shows nothing - I would expect the message "Esta opción se aplicará a esta casa..." to be displayed (as 0 is the default option).
Strange enough if I navigate back and get into this page again the message "Esta opción se aplicará a esta casa..." is displayed correctly.
So this is working randomly, sometimes the messages are displayed correctly (based on the generic field "eliminacion") and sometimes nothing is displayed.
Can you please help me?
Thanks a lot in advance.