Categories:
Cloud (204)
Entertainment (11)
Facebook (43)
General (50)
Life (31)
Programming (64)
Technology (430)
Testing (4)
Tools (488)
Twitter (5)
Wearable (26)
Web Design (44)
Collections:
Other Resources:
Use Custom Field with Custom Validation
How to Use Custom Field with Custom Validation?
✍: FYIcenter.com
Here is what you can do to validate the new field type "My Int" and the new validation rule
"Two-digit numbers".
1. CLick "Forms > Add form" on the left menu and name it as "Field Test".
2. Continue to the "Field" tab and click "Add Field". You see the the field definition page.
3. Enter the following:
Display name: My Int (Used as the field label on UI page) Form field: int (Used as field name in the UI page source code) Field type: My Int (Assicated to the custom field type) Data Type: Number DB Colunn: col_1 (Used as the column in database)
4. Click "Validations" tab and turn on "Two-digit numbers" rule.
5. Click "Save Changes".
6. Open the "Field Test" form and add a new submission.
7. Enter "123" in the "My Int" field and click "Update". You should get the error "Your number is out of range". This error is generated from the Web broser running the JavaScript validation defined as "cf_int.two_digits" in the previous tutorial.
Â
⇒ Unknown requirement flag in validate_fields(): function
⇠Add JavaScript Validation Function
2019-12-02, 1355🔥, 0💬
Popular Posts:
How to add slide numbers and copyright in the footer area? You can add slide numbers, copyright text...
How to use MomoCast with Safari on iPhone and iPad to cast Website and video to Chromecast on TV? If...
How to start to troubleshoot my Actiontec GT784WNV Modem? I am not able to access Internet. If you a...
How to install IPython in a Conda environment? If you want to install IPython in a specific Conda en...
Collections: Best World Music BitTorrent FAQ Chrome FAQ Facebook FAQ Firefox FAQ Fitbit FAQ Flash Pl...