I have a date field that i want to hide if empty using this code
[wpv-conditional if="( $(date-de-l-inscription-hative) ne '' )" ]
When this condition evaluate to TRUE, i need to display a text
Now, with this field empty or not, the text showed up !
In my image, there is the text AU ( red ) and AVANT LE ( in the grey square )
[wpv-conditional if="( $(date-de-l-inscription-hative) ne '' )" ]
before [types field='date-de-l-inscription-hative' style='text' format='j F Y'][/types]
[/wpv-conditional]
This was working fine for a while and since last upgrade, it won't anymore.
Hello. Thank you for contacting the Toolset support.
Can you please share admin access details so I can review whats going wrong with your setup.
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.
I have set the next reply to private which means only you and I have access to it.
I've changed the conditional shortcode as given under:
[wpv-conditional if="('[types field='date-de-l-inscription-hative' output='raw'][/types]' ne '' )"]
// ** IF Date de fin de l'inscription hâtive NOT EMPTY please be seen ! ** // [types field='date-de-l-inscription-hative' style='text' format='j F Y'][/types]
Can you please confirm it works as expected now: hidden link
I've changed the conditional shortcode as given under:
[wpv-conditional if="( '[types field='event-date-de-debut' output='raw'][/types]' ne '' ) AND ( '[types field='event-date-de-fin' output='raw'][/types]' ne '')"]
Can you please confirm it works at your end as well.
I'm not sure but may be you have many nested conditional statements that is the issue and to get raw value from database we can use the shortcode [types field='event-date-de-debut' output='raw'][/types]' ne '' ) AND ( '[types field='event-date-de-fin' output='raw'][/types] that is more appropriate.