[SOLVED] Delimiter field not to show no value

13 years 7 months ago #142312 by carina
Hi,

I have a delimiter field like this:

[cb_textfield1]
[cb_datefrom] - [cb_dateto]

Is there any way to get the [cb_dateto] to just be empty in the profile view if no value is entered by the user? Now it shows date to as 0000-00-00.

Thanks!

Post edited by: krileon, at: 2010/09/27 15:14

Please Log in to join the conversation.

13 years 7 months ago #142313 by nant
Replied by nant on topic Re:Delimiter field not to show no value
I guess you can use the if clause to not show anything if the value is 0000-00-00

Please Log in to join the conversation.

13 years 6 months ago #142809 by carina
Replied by carina on topic Re:Delimiter field not to show no value
Yes, it is possible.

Here's the code if someone else is looking for it:

[cb:if cb_dateto = "0000-00-00"][cb_datefrom][/cb:if] [cb:if cb_dateto != "0000-00-00"][cb_datefrom] -[cb_dateto][/cb:if]

I have only done this in the date format that we use, so it might be that the dateformat has to be changed.

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.191 seconds

Facebook Twitter LinkedIn