For mostly aesthetic reasons I too have a form that needs to be "read-only"
with updates occurring through a dialog box. After pulling my hair out for 2
days I realized there was a simple solution.
Set the HTML Attribute of the field on the calling (main) form to "DISABLED".
The field will retain its programmability, the caveat is it will also be
"grayed-out".
If this is an issue set the HTML attribute to "READONLY" and set the field's
border = 0 (in the html style or via a CSS). Read only prevents the user from
changing the field's value but it leaves the field's border in tact, so the
setting the style border = 0 is needed to complete the deception.
Both provide you with an HTML equivalent of a computed field.
btw... your modal dialog box was a great help.
Thanks
For mostly aesthetic reasons I too have a form that needs to be "read-only" with updates occurring through a dialog box. After pulling my hair out for 2 days I realized there was a simple solution.
Set the HTML Attribute of the field on the calling (main) form to "DISABLED". The field will retain its programmability, the caveat is it will also be "grayed-out". If this is an issue set the HTML attribute to "READONLY" and set the field's border = 0 (in the html style or via a CSS). Read only prevents the user from changing the field's value but it leaves the field's border in tact, so the setting the style border = 0 is needed to complete the deception. Both provide you with an HTML equivalent of a computed field.
btw... your modal dialog box was a great help. Thanks