This topic is locked

Date Field default now() in add set to read only in edit page

9/9/2011 7:39:33 AM
ASPRunnerPro General questions
A
andrews author

Hi All
I have a date field in the add page that is filled by default with now().
I would like to disable the editing or changing of this field only in edit mode and on list page
Thank you in advance.

Sergey Kornilov admin 9/9/2011

Try setting 'Edit as' type of this field to Readonly or make it disabled on the Edit page using setDisabled() function:

http://xlinesoft.com/phprunner/docs/ctrl_setdisabled.htm