Hi Rachana,
you can add validation on the page,microflow and in domain model
Refer the below documentation
https://docs.mendix.com/refguide/setting-up-data-validation/
Also, check the below forum link
https://forum.mendix.com/link/space/security/questions/116129
Hi Rachana,
I’d suggest validating user input using a Regex. You can either whitelist allowed symbols or blacklist disallowed symbols. The most failsafe method is probably to whitelist all characters that you allow in your input field.
Hi Rachana,
You will need to make a microflow for this validation.
For example, you press save and the microflow checks via a Regex if there isn't an emoji in the string. If not, then you commit the object and show the next screen. If there is, you can show a validation message and end the flow. You can use this Regex:
/^(?:(?![\p{Emoji}]).)*$/
Explanation:
Or this:
/^[\p{L}\p{N}\p{P}\s]+$/
Explanation:
I have not tested these XPath's so make sure to do so yourself.