cancel
Showing results for 
Search instead for 
Did you mean: 

Default value of Custom Type 'Date Field'

bisana
Champ on-the-rise
Champ on-the-rise
Hi All
  I have defined custome type, in it one of the filed is a Date, say expiry date.
For some of the documents there is no expiry date, and I since the exiry date filed is mandatory, some values should  be filled up.
Can I keep the default date to 00-00-0000
How could I set a default value for the date?
Guidance requested
5 REPLIES 5

billerby
Champ on-the-rise
Champ on-the-rise
Could you please explain why the expiry date is declared as mandatory if all nodes of this type does should not have a date set?

bisana
Champ on-the-rise
Champ on-the-rise
Hi
The user (the person whom I am trying to give DM) thinks that his documents should have this date set field as mandatory
And he wants in that way.
End users or decision makers demands such a scenario

billerby
Champ on-the-rise
Champ on-the-rise
Well, your best option is probably to set the Date to something way off in the future and do that with a behaviour or a rule where a custom javascript gets executed upon the creation of this type.

Here is an old thread that mentions something similar using the "behaviour" way.

Regards
/Erik

bisana
Champ on-the-rise
Champ on-the-rise
Hi Erick
Thanks for the reply
I think the thread link is not active in the post
Can you please post the link again

billerby
Champ on-the-rise
Champ on-the-rise