How to use script validation to automatically fill out the RMB in a form (uppercase) Amount field
Demand:
There are two fields in the form, one field is a manual entry of RMB amount (lowercase), and the other field needs to fill in the uppercase form of the amount.
Goal:
When entering the RMB amount (lowercase), the $ amount (uppercase) text box automatically generates an uppercase form of the amount.
Setup steps:
1. Update the "\DATAUSER\JSLIB\ONKEYUP\01.RMB to uppercase form. js" file;
2. Open the Node Free Form designer and click the Extended Settings button on the toolbar to open the form Extension Settings screen. Click Script Validation in the list of features on the left to open the list of script validation fields. Locate the $ amount (lowercase) field, click the Edit link for the field, and go to New: script validation.
Library Source: Select "My Custom library of functions";
Function List: Pull the scroll bar to the bottom and select the "ONKEYUP\01.RMB to uppercase" item;
Click "Save" to close the settings screen.
3. Open the \datauser\jslibdata directory, find the JS file named after this node number, open, modify the "daxie_ctrl_id" variable, modify the name of the $ amount (uppercase) field in the node form, save Close (note: In the form, The field must be set to a text entry box and can be set to non-editable mode.
4. Setup is complete, you can see the effect in the "preview" screen of the form. The amount is entered in the $ amount (lowercase) text box, and uppercase is automatically displayed in the $ amount (uppercase) text box.
Ccflow How to use script validation to automatically fill in the $ (uppercase) Amount field in a form