Categories:
Cloud (204)
Entertainment (11)
Facebook (43)
General (50)
Life (31)
Programming (64)
Technology (398)
Testing (4)
Tools (488)
Twitter (5)
Wearable (26)
Web Design (44)
Collections:
Other Resources:
Unknown requirement flag in validate_fields(): function
Why am I getting this "Unknown requirement flag in validate_fields(): function" error?
✍: FYIcenter.com
If you are adding a new custom validation rule on a field type using a JavaScript function, users may get the "Unknown requirement flag in validate_fields(): function" error, even their entered value passed the JavaScript validation function.
This is because the "Is this a required field?" flag is set to "No" on the validation rule. This flag is very misleading as of version Form Tools 3.0.20. Its description says: "If this is set to yes, any time this validation rule is applied to a field, an asterix will appear next to it, to indicate the field must be entered."
This flag has nothing to do with "Field value is required". It actually should automatically turned on with all validations that use custom JavaScript validation functions.
If this flag is turned off to "No", the Form Tools server-side validation engine will the word "function" from validation rule type and try to call its associated validation logic in the PHP function validate_fields() on the server side. Of course, there is no PHP code defined on the server-side to perform your custom validate rule, which results the above error.
So go back the validation rule definition page and turn the "Is this a required field?" flag on the "Yes" to avoid the error.
By the way, the "Is this a required field?" is mapped to the custom_function_required column on the ft_field_type_validation_rules table, which suggests that the flag should labeld as "Custom Function Required".
Â
⇒ Clone Phone Number Field Type
⇠Use Custom Field with Custom Validation
2019-11-21, 1057🔥, 0💬
Popular Posts:
Why am I getting the "Spawn Failed: Server at http://127.0.0.1:47353/u ser/fyicenter/didn't respond ...
How to install IPython in a Conda environment? If you want to install IPython in a specific Conda en...
What are "AutoCorrect Actions" in Microsoft Word? Should I disable it? "AutoCorrect Actions" are add...
What is "Microsoft SharePoint Server Colleague Import Add-in" COM Add-in in Outlook 2013? Should I d...
What is "Microsoft Access Outlook Add-in for Data Collection and Publishing" COM Add-in in Outlook 2...