Ccflow How to use script validation to automatically fill in the $ (uppercase) Amount field in a form

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.