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:readonly}** Where RT_ID will be the name of the field as defined in code charge (Name attribute in field property)
 +  * In the before show event of the field, include these lines
 +<code>
 +if ($RT_TABLE->EditMode)
 +{
 + $Component->Attributes->SetValue('readonly', 'readonly');
 +}
 +</code>
 +Again where $RT_TABLE is the form name
 +
 +
  

QR Code
QR Code tech:codecharge:make_a_field_dynamically_readonly (generated for current page)