Sitefinity dynamic module field custom validation

321 Views Asked by At

I have dynamic module with a textbox field "Priority" in the backend edit page that I want to validate. However, I want to validate it against all other db entries of the same field to ensure that only one of them has this textbox value, If one of them already has this value, I want the backend to refuse the submission and display validation error message.

enter image description here

i can check value using following events and validate against database when user is editing backend form https://www.progress.com/documentation/sitefinity-cms/for-developers-dynamic-modules-events

Is it possible to add a custom validator to a dynamic module content type field? how do we show error message on backend screen after validation is done throgh code behind.

Im using Sitefinity 10.2

0

There are 0 best solutions below