Hello
I was trying to validate email format and phone number format in activity section in mobile application but could not find anything.
Please provide me a way to validate these fields in mobile application.
Regards,
Malay
Like
Hello Bogdan,
Hello I want to apply validation for mobile number and email in activity section. For example, the phone number should be of 10 digits and only contain numbers and email format should be of the form abc@xyz.com.
I have used JavaScript for lead section to do it for the web version but how to do it for the mobile application?
Below is the screenshot of the mobile activity page where I want to apply this validation.
Regards,
Malay
Hello Malay,
You can use a custom business rule for this task. See here for an example: https://academy.creatio.com/docs/developer/mobile_development/mobile_ap…
For using the custom rule for validation, you can pass a third parameter to the callback function with a message (the validation message) and value (true or false indicating if validation passed or not).
For example:
var result = {}; if (passedTheTestAndIsValid) { result = { value: true }; } else { result = { value: false, message: "The entered value is invalid" } } // now include the result in the callback Ext.callback(callbackConfig.success, callbackConfig.scope, [result]);
Ryan
Ryan Farley,
Thanks for share it. You have any example using esq query in custom business rules for validations?
Christian Kern,
1. File will be stored in configurations.
2. The main rule - the first word of business rule name should be the section name. Like "Contact", "Case", "Account".
Best regards,
Bogdan L.