I want to set an empty value for Alfresco Aikau DateTextBox widget.
But the date is being set to "1970/1/1" automatically. How can i set a date to empty in Aikau ?
I'm trying this code in the jsonModel but it's not working:
{
name:"alfresco/forms/controls/DateTextBox",
widthPx:"90",
config:{
fieldId:"DATE_1",
additionalCssClasses:"datefield",
name:"Date1",
value:"",
requirementConfig:{
initialValue:false
}
}
}
I am not sure regarding why it is not working with existing
alfresco/forms/controls/DojoDateTextBoxwidget.I did following,for making it work.1.I have created a new widget,Placed below content in the file.(This content is copied from existing widget)
2.Used that widget by using following.
In case of aikau control,you can find source code inside
tomcat\webapps\share\WEB-INF\lib\aikau-1.0.8.1.jar.Version of aikau jar file may differ depends on your alfresco version.