News:

Support the VirtueMart project and become a member

Main Menu

Default value for date field

Started by p.barg, November 10, 2017, 11:07:39 AM

Previous topic - Next topic

p.barg

Hello,

I wonder if there is a way to specify a default value for a shopper field of type date?

-- Petra

Jumbo!

#1
Yes, you need to set the default value in SQL Date format. Example: 2017-11-11 19:49:41

However, please remember that you can not set the field as "required" when you set a default value. That may create issues during form validation.

p.barg