If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.
This macro effectively makes the field a label field (taken from macro section of SC manual):
This macro dynamically set a form field attribute to 'ReadOnly'. Use this macro only to do it at 'runtime'. Otherwise set this parameter on / off on the form interface. section "Read-Only".
The on/off parameter its optional, used by an ajax event to define if a field its going to be read-only (On) or read-only (Off).
Ex 1: To set a field as read only even when the form is in "Addition mode":
Ex. 2: To set a field as read only dynamically use: