Welcome, Guest
  • Page:
  • 1
  • 2

TOPIC: Insert Current Date & Time to automatically

Insert Current Date & Time to automatically 3 years 2 months ago #63144

  • pratam02
  • pratam02's Avatar
  • OFFLINE
  • Gold Boarder
  • Posts: 185
  • Thank you received: 2
  • 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 3 years 2 months ago #63205

  • TheMuffinMan
  • TheMuffinMan's Avatar
  • OFFLINE
  • Moderator
  • Posts: 6531
  • Thank you received: 432
  • Karma: 100
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 3 years 2 months ago #63226

  • pratam02
  • pratam02's Avatar
  • OFFLINE
  • Gold Boarder
  • Posts: 185
  • Thank you received: 2
  • 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 3 years 2 months ago #63675

  • TheMuffinMan
  • TheMuffinMan's Avatar
  • OFFLINE
  • Moderator
  • Posts: 6531
  • Thank you received: 432
  • Karma: 100
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 2 years 10 months ago #70122

  • hockey2112
  • hockey2112's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 64
  • Thank you received: 1
  • 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 2 years 10 months ago #70449

  • Syno
  • Syno's Avatar
  • OFFLINE
  • Administrator
  • Posts: 2190
  • Thank you received: 206
  • Karma: 2
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
Time to create page: 0.099 seconds

Lifetime Subscription

Get lifetime access to all of our current and future products and 2 years of professional support -- for just $169 USD.

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.de 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.de and you'll get a Lifetime Membership for free!

Live Chat Software