AnsweredAssumed Answered

How and where to set up default value for a date field in a sub panel?

Question asked by Pranav Ns` on Dec 1, 2016

I've tried to set up default in vardefs file but it not seem to work. Even if it works it does not seem to reflect in Html View

 

'dateofoccurance' =>
array (
'required' => '1',
'name' => 'dateofoccurance',
'vname' => 'LBL_DATEOFOCCURANCE',
'type' => 'date',
'massupdate' => 0,
'comments' => 'Date of Occurance',
'help' => '',
'duplicate_merge' => 'disabled',
'duplicate_merge_dom_value' => 0,
'audited' => 0,
'reportable' => 1,

'default'=>date("m/d/Y"),
),

Outcomes