AnsweredAssumed Answered

How to set today's date as Initial value for DateTextBox

Question asked by satheeshkumar on Apr 29, 2015
Latest reply on May 4, 2015 by satheeshkumar
Hi All,

I have a widget shown below, I would like to set today's date as initial valuee while showing the widget in UI,

var date = new Date();

var lastDeployedToPROD = {
   name : "alfresco/forms/controls/DateTextBox",
   config : {
      requirementConfig : {
         initialValue : true
      value : date,
      name : "prop_hccm_lastDeployedDateToPROD"

Even after setting the date in "value" field, it is not showing in the UI.
I will have to manually select the date, is there any way to populate the date with today's date.
Please help!!!!

Thanks in Advance,