Welcome, Guest
  • Page:
  • 1
  • 2

TOPIC: Insert Current Date & Time to automatically

Insert Current Date & Time to automatically 3 years 1 month ago #63144

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
  • pratam02
  • pratam02's Avatar
  • OFFLINE
  • Gold Boarder
  • Posts: 185
  • Thank you received: 2
  • Karma: 0
Thanks & Regards
Praveen
Bangalore
India
The administrator has disabled public write access.

Re: Insert Current Date & Time to automatically 3 years 1 month ago #63205

Hi,

BreezingForms or built-in forms from ContentBuilder?

Regards,
Markus
  • TheMuffinMan
  • TheMuffinMan's Avatar
  • OFFLINE
  • Moderator
  • Posts: 6496
  • Thank you received: 432
  • Karma: 96
===============================================
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 1 month ago #63226

Ok

I need for both.

thanks
Praveen
  • pratam02
  • pratam02's Avatar
  • OFFLINE
  • Gold Boarder
  • Posts: 185
  • Thank you received: 2
  • Karma: 0
Thanks & Regards
Praveen
Bangalore
India
The administrator has disabled public write access.

Re: Insert Current Date & Time to automatically 3 years 4 weeks ago #63675

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
  • TheMuffinMan
  • TheMuffinMan's Avatar
  • OFFLINE
  • Moderator
  • Posts: 6496
  • Thank you received: 432
  • Karma: 96
===============================================
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 9 months ago #70122

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?
  • hockey2112
  • hockey2112's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 64
  • Thank you received: 1
  • Karma: 0
The administrator has disabled public write access.

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

Hello,

which mode do you use in Breezingforms.

The code Markus provided only works in quickmode.


Regards,
Syno
  • Syno
  • Syno's Avatar
  • OFFLINE
  • Administrator
  • Posts: 2190
  • Thank you received: 206
  • Karma: 2
===============================================
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.115 seconds
Powered by Kunena Forum :: Joomlana_Dark-by- bz_kunena-templates

Our Discounts



Lifetime Subscription

Get lifetime access to all of our products and 2 years of professional support -- for just $149 USD. No limits on domains!. Includes all of our current and future Joomla!® extensions, WordPress® plugin, Joomla!® templates and WordPress® themes -- all of our products!

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 This email address is being protected from spambots. You need JavaScript enabled to view it. 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 This email address is being protected from spambots. You need JavaScript enabled to view it. and you'll get a Lifetime Membership for free!

About

Crosstec GmbH & Co. KG

Hohenzollernring 57

50672 Cologne, Germany

Imprint


Live Chat Software