JavaScriptEvents property: Field class
Description
Use this property to set or return a string representing JavaScript code to be executed for this field.
WARNING:
This is a free form field and no validation is performed to check for any JavaScript errors.
When a field has JavaScriptEvents set in PeopleCode, its DisplayOnly setting will be overridden to False only if the field is displayed in a non-interactive grouplet. If the field is displayed in an interactive grouplet or defined on a fluid page displayed as part of a fluid component, its DisplayOnly setting will not be overridden.
This property is read/write.
Important:
Use this property within fluid applications only.
Example
PTS_SRCH.PTS_CANCEL.JavaScriptEvents = "onclick='javascript:DoSearchCancel();' href='javascript:void(0);'";