Hi,
We have created the custom datalist in alfresco by using model properties. I don't want to insert any '<script >' tag in datalist while inserting a item. I want to prevent the script related tags or any script to be shown in datalist. This is considered as security violation. So how can i resolve this issue. Please find below screen shot for better understanding.
You could use the REGEX constraint for the property field of the datalist.
Have a look at the below link, it has the example of REGEX implemented in the content model. The same can be implemented for the datalist as well. You just need to find a valid expression for your constraint.
https://docs.alfresco.com/6.1/references/dev-extension-points-content-model-define-and-deploy.html
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.