Overview
Description
During data entry, you want to implement the following effects: Values of certain fields, such as grades or passwords, can only be entered once. Once entered, the values cannot be modified. How can this be achieved?

Implementation Method
You can add an After Editing event to the widget to enable one-time-only data entry of the widget.
Example
Data Preparation
Create a built-in dataset, and design it as shown in the following figure.

Table Design
Design a simple table: Insert text widgets to cells C2 and C3, and a drop-down widget to cell C4, as shown in the following figure.

Data Dictionary Setting
Select cell C4 and bind a data dictionary to the drop-down box widget, as shown in the following figure.

JS Event Setting
Select cell C4 and add an After Editing event, as shown in the following figure.

The JavaScript (JS) code for the event is as follows:
if(this.getValue()!="")//Obtain the current widget value, and determine whether the value equals an empty string.
{this.setEnable(false)}//If not, the value cannot be modified.
else
{this.setEnable(true)}//If so, the value can be modified.
Effect Preview
(1) PC
Save the template and click Data Entry Preview. The following figure shows the effect.

Note:(2) Mobile terminal
