no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
| — | tech:codecharge:make_a_field_dynamically_readonly [2014/11/15 15:13] (current) – created - external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | To make a field dynamically read only, use the CodeCharge Component Attributes feature. Here are the steps: | ||
| + | * Edit the form html and where the static text readonly will appear (assuming you want to this field to be always readonly) you will instead put this **{RT_ID: | ||
| + | * In the before show event of the field, include these lines | ||
| + | < | ||
| + | if ($RT_TABLE-> | ||
| + | { | ||
| + | $Component-> | ||
| + | } | ||
| + | </ | ||
| + | Again where $RT_TABLE is the form name | ||
| + | |||
| + | |||