K2 Custom Control in Passes Validation event

  • 23 May 2023
  • 1 reply

Badge +2



i created a searchable dropdown as a custom control. how i can integrate that control on below event of passes validation. so that if i didnt select the value the control will trun into red.




1 reply

Userlevel 3
Badge +10


If you check the ‘Validate’ option in the “if the View passes validation” rule, then usually a validation pattern has to be defined on the control, such that if its true then it passes validation, if it is not, then flag it in red and throw the validation Message.


For custom control, this appears to be the ValidationPattern and ValidationMessage properties defined in your Definition.xml as per: