Skip to Content Skip to Menu

date field with current date as prefill

  • ericmuc
  • ericmuc
  • OFFLINE
  • Posts: 390
  • Thanks: 30
  • Karma: 2
  • Add-ons
3 years 11 months ago #321284 by ericmuc
Hi,
How is it possible to have in a date field with the format "M. Y" the current month and the current year as standard value ?
Thanks, best regards
Eric

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48429
  • Thanks: 8274
  • Karma: 1443
3 years 11 months ago #321300 by krileon
Replied by krileon on topic date field with current date as prefill
Edit the date field in CB > Field Management then under Parameters > Display set "Edit Display" to "Custom" then supply a custom PHP date function supported usage to "Custom Date Edit Format". If you also want it to display on profile in that format do the same for "Profile View Display". If you also want it to search in that format do the same for "Userlist Search Display" too.


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.
The following user(s) said Thank You: ericmuc

Please Log in or Create an account to join the conversation.

  • ericmuc
  • ericmuc
  • OFFLINE
  • Posts: 390
  • Thanks: 30
  • Karma: 2
  • Add-ons
3 years 11 months ago #321314 by ericmuc
Replied by ericmuc on topic date field with current date as prefill
Hi,
Thanks I understand.

I had before in Custom Date Edit Format filled in "M. Y" and switched to no calendar popup and drop down fields. Here in the drop down fields I needed the current month and year.

But I realized now that it is better to have a calendar popup with the current date, so I set this back to standard. Only in "Custom Date Format" I let "M. Y" so the right format is shown in profile view.

Thanks, best regards
Eric

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum