Server side validation on structure fieldServer side validation on structure fieldhttps://liferay.dev/en/c/message_boards/find_thread?p_l_id=119785333&threadId=968515092024-03-28T12:37:05Z2024-03-28T12:37:05ZRE: Server side validation on structure fieldChristoph Rabelhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=978155482017-11-01T08:17:07Z2017-11-01T08:17:07ZYou could try to create a service hook like this one for the user:<br />https://dev.liferay.com/develop/tutorials/-/knowledge_base/7-0/customizing-liferay-services-service-wrappers<br />https://docs.liferay.com/ce/apps/web-experience/latest/javadocs/com/liferay/journal/service/JournalArticleLocalServiceWrapper.html<br /><br />It would require you to parse the content and throw some kind of error. You probably would have to do something on the frontend to display the error in a nice way so that your editors won't know what they did wrong.Christoph Rabel2017-11-01T08:17:07ZRE: Server side validation on structure fieldmohit mehralhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=978154822017-11-01T08:02:21Z2017-11-01T08:02:21ZThanks for reply.<br /><br />Approach which you have given is client side /javascript validation.<br />Is there any way to do it using server side validation, as normal VAPT(Security testing) validations should be present on server side rather than at client side.<br /><br /><br />Regards,<br />Mohitmohit mehral2017-11-01T08:02:21ZRE: Server side validation on structure fieldAndrew Jardinehttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=971954812017-10-19T00:58:27Z2017-10-19T00:58:27ZHi Mohit, <br /><br />I have not done this before but I an tell you that you are certainly not the first person to ask for it. I know that in 7 you can define your own custom field types, but I think that functionality might be limited to the new Forms application (not the same as WCM). If that is the case, then I would consider trying something a little trickier. <br /><br />You could create a Theme Contributor that could carry with it some JS. That JS could be used to attach itself to an element on the page with a specific ID (that part you would need to figure out -- what does Liferay call the form field for employeeId -- I would be that it is consistent in pattern). Once you have found the element, you could attach a onBlur event to it which you could then use to perform the check, and then based on the results, do something to manipulate the DOM, or show an alert modal or something. <br /><br />That's what I would try at least.Andrew Jardine2017-10-19T00:58:27ZRE: Server side validation on structure fieldmohit mehralhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=971499112017-10-18T12:51:26Z2017-10-18T12:51:26ZDid anyone faced with similar requirement?<br />If yes, requesting to please revert.<br />We are using liferay dxp version.<br /><br />Regards,<br />Mohitmohit mehral2017-10-18T12:51:26ZServer side validation on structure fieldmohit mehralhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=968515082017-10-13T10:57:02Z2017-10-13T10:57:02ZDear All,<br /><br />Our requirement is to put server side validation on one of the field on structure.<br /><br /&g