Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > Default values for datetime fields in document types View modes: 
User avatar
Member
Member
ps - 9/27/2010 10:25:32 PM
   
Default values for datetime fields in document types
Hi,

How can I set the default value for date time fields in document type? I want to have a custom date, like few days after the date the document is created.

I can't use a custom macro in date time fields, it wouldn't allow me to do so.

And also how can I validate the date time fields, ex: like I would want the document type not to allow any date that is 5 days after the date the document is created (something like 'currentdate'+5)

User avatar
Kentico Developer
Kentico Developer
kentico_ivanat - 9/30/2010 5:20:15 AM
   
RE:Default values for datetime fields in document types
Hi,

Unfortunately to reach your specific requirements you will need to create a custom form control.

You can set the requested date and validation in the code behind of this control.

Best regards,
Ivana Tomanickova