Welcome, Guest
  • Page:
  • 1
  • 2

TOPIC: Insert Current Date & Time to automatically

Insert Current Date & Time to automatically 4 years 6 months ago #63144


  • Posts:185 Thank you received: 3
  • pratam02's Avatar
  • pratam02
  • Gold Boarder
  • Offline
  • Karma: 0
Hi All,


If i want to create any new record then in particular text field date & time should be filled automatically while loading a form for creation.

any possibilities.

Praveen
Thanks & Regards
Praveen
Bangalore
India
The administrator has disabled public write access.

Re: Insert Current Date & Time to automatically 4 years 6 months ago #63205


  • Posts:6995 Thank you received: 503
  • TheMuffinMan's Avatar
  • TheMuffinMan
  • Moderator
  • Offline
  • Karma: 117
Hi,

BreezingForms or built-in forms from ContentBuilder?

Regards,
Markus
===============================================
Satisfied?
Consider a membership!
===============================================
Like us on Facebook
===============================================
Follow us on Twitter
===============================================
The administrator has disabled public write access.

Re: Insert Current Date & Time to automatically 4 years 6 months ago #63226


  • Posts:185 Thank you received: 3
  • pratam02's Avatar
  • pratam02
  • Gold Boarder
  • Offline
  • Karma: 0
Ok

I need for both.

thanks
Praveen
Thanks & Regards
Praveen
Bangalore
India
The administrator has disabled public write access.

Re: Insert Current Date & Time to automatically 4 years 6 months ago #63675


  • Posts:6995 Thank you received: 503
  • TheMuffinMan's Avatar
  • TheMuffinMan
  • Moderator
  • Offline
  • Karma: 117
Hi,

for BF, add something like this into the value field of the element's setup
<?php return date('Y-m-d');?>

For CB, this functionality is not yet built-in (though for lists it is). Let me do it today quickly, had to update the site and didn't have much time over the weekend.

Regards,
Markus
===============================================
Satisfied?
Consider a membership!
===============================================
Like us on Facebook
===============================================
Follow us on Twitter
===============================================
The administrator has disabled public write access.

Re: Insert Current Date & Time to automatically 4 years 2 months ago #70122


  • Posts:64 Thank you received: 1
  • hockey2112's Avatar
  • hockey2112
  • Senior Boarder
  • Offline
  • Karma: 0
This isn't working for me. When I copy/paste "<?php return date('Y-m-d');?>" into the value for a "text field" object, it literally shows that code (and not the date itself). How can I get this to work?
The administrator has disabled public write access.

Re: Insert Current Date & Time to automatically 4 years 2 months ago #70449


  • Posts:2190 Thank you received: 208
  • Syno's Avatar
  • Syno
  • Administrator
  • Offline
  • Karma: 3
Hello,

which mode do you use in Breezingforms.

The code Markus provided only works in quickmode.


Regards,
Syno
===============================================
Satisfied?
Consider a membership!
===============================================
Like us on Facebook
===============================================
Follow us on Twitter
===============================================
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Moderators: ForumSupport, pedro81, tomeperica
Time to create page: 0.083 seconds

News and Updates

Get informed about new downloads, updates and more in our News and Updates newsletter.

BreezingForms For BreezingCommerce Released!

Now you can use the power of BreezingForms as very flexible product configurator right within BreezingCommerce. Watch here how it works!

Lifetime Subscription

Special offer: Get lifetime access to all of our current and future products and 2 years of professional support -- for just 129 for just 90, Spring Discount until June 1st, 2016!

No support per domain or website installation limits! Includes all of our current and future Joomla!® extensions, WordPress® plugins, Joomla!® templates   this means, by purchasing a Lifetime Subscription you'll have it all covered!

Get it from here

3rd Party Discount - 25% Off

We help you to keep your costs under control. If you are a new member and purchased a form building tool from a different form vendor, then you'll get a 25% discount on our 1-Year or Lifetime Subscription plans.

How to receive the discount:

Send us a quick email to sales@crosstec.org with a proof of purchase (for example a paypal receipt), await payment instructions and enjoy your membership!

Supporting the Joomla! Community

Offical Joomla! User Groups and organizers of Joomla! Days, registered at Joomla.org, are supported by Crosstec, worldwide!

If you are running a JUG or organize a Joomla! Day and you need any of our products, just write an email to info@crosstec.org and you'll get a Lifetime Membership for free!