I want to implement a custom validation in a "Form Element plugin" but not able to find out in which function i should write the code for validation.

I tried to call my validation function in formatData() function but before validation data gets stored in the database table.

As I want to implement my custom validation rather than the validations provided kindly help me with the location of where to call my validation function.

Thanks & Regards,


  • No labels

1 Comment

  1. Hi Aniket,

    I think you should be writing a Form Validator Plugin plugin instead. formatData() in Form Element Plugin will only be called after validatation is done in the former plugin.

    If you insist of doing that way and have good reason for it, you may try to see how it is done in a similar way in the Email Tester App whereby validation error is injected back onto the screen on failure of execution in the bean shell store binder.