Time Display wirh Parameters

2 months 4 weeks ago - 2 months 4 weeks ago #337243 by PipB
Time Display wirh Parameters was created by PipB
I have a question about time fields and the time format on Profile.
I have a created a list fields for opening and closing times which I have set on display none on the Profile Page
I try to display them via Parameters in a field called Openingtimes.

My problem: I don't want to display seconds so each time field has settings: Custom Time Format: H:i
This setting when i show the field direcly on profile
This setting is NOT applied when ik show the field via another field with a parameter on profile

In the general Configuration my Time Format is hh:mm

Can you please guide me in the right direction?
Prinstscreens attached

Kind regards, Pip      

Please Log in to join the conversation.

2 months 4 weeks ago #337253 by krileon
Replied by krileon on topic Time Display wirh Parameters
You're using [FIELD_NAME] substitutions. That's original value unformatted. In most cases it's directly the database value. Use a formatted substitution for it to be formatted. See the substitutions tutorial below for further usage information and examples.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in to join the conversation.

2 months 4 weeks ago #337267 by PipB
Replied by PipB on topic Time Display wirh Parameters
Thanks very much for the quick reply.
I have the solution, maybe helpfull for others in de future:

[cb:if cb_maandag="1"]<label class="dag">maandag</label> [cb:userfield field="cb_maandagvanaf"/] -  [cb:userfield field="cb_maandagtot"/][/cb:if]

Great! I'm happy!

Kind regards, Pip
The following user(s) said Thank You: krileon

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.183 seconds

Facebook Twitter LinkedIn