Insert Current Date & Time to automatically

  • pratam02
  • pratam02's Avatar Topic Author
  • Offline
  • Gold Boarder
  • Gold Boarder
  • Posts: 185
  • Thank you received: 3

pratam02 created the topic: Insert Current Date & Time to automatically

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
#63144
  • Posts: 7443
  • Karma: 144
  • Thank you received: 540

TheMuffinMan replied the topic: Re: Insert Current Date & Time to automatically

Hi,

BreezingForms or built-in forms from ContentBuilder?

Regards,
Markus



===============================================
Support Crosstec and get ALL EXTENSIONS and professional support for just $5
Here!
===============================================
Satisfied?
Consider a membership!
===============================================
Like us on Facebook
===============================================
#63205
  • pratam02
  • pratam02's Avatar Topic Author
  • Offline
  • Gold Boarder
  • Gold Boarder
  • Posts: 185
  • Thank you received: 3

pratam02 replied the topic: Re: Insert Current Date & Time to automatically

Ok

I need for both.

thanks
Praveen

Thanks & Regards
Praveen
Bangalore
India
#63226
  • Posts: 7443
  • Karma: 144
  • Thank you received: 540

TheMuffinMan replied the topic: Re: Insert Current Date & Time to automatically

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



===============================================
Support Crosstec and get ALL EXTENSIONS and professional support for just $5
Here!
===============================================
Satisfied?
Consider a membership!
===============================================
Like us on Facebook
===============================================
#63675
  • Posts: 64
  • Thank you received: 1

hockey2112 replied the topic: Re: Insert Current Date & Time to automatically

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?
#70122
  • Posts: 2188
  • Karma: 3
  • Thank you received: 208

Syno replied the topic: Re: Insert Current Date & Time to automatically

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
===============================================
#70449
Moderators: ForumSupporttomeperica
Time to create page: 0.060 seconds

Community Reward

Help us to create new extensions and plugins! With only $5 you help us a lot and get unlimited download access to all of our products, professional support and even more. Get your reward now!

Read More Here

News and Updates

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

All Extensions Subscription

Special Offer! Get 1 year access to all of our current and future products and 1 year of professional support -- 99 for only 70!

No support per domain or website installation limits! Includes all of our current and future Joomla!® extensions, WordPress® plugins, Joomla!® templates for the duration of your membership. This means, by purchasing an All Extensions 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 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!

Community Reward

Help us to create new extensions and plugins! With only $5 you help us a lot and get unlimited download access to all of our products, professional support and even more. Get your reward now!

Read More Here