Form Validation/Dependencies from Code Studio Widget


I’m developing a widget in the code studio and I would like to be a able to use it to validate a form or to be used as a condition in a dependency.

I’ve had a look through the documentation within the code studio but I couldn’t find anything. Is there anyway to achieve this?

Thanks, Ewan

Hi Ewan

Just so I fully understand your issue, are you wanting to use the widget as part of the form submission or are you creating a form within the widget and saving via AJAX?

If you are wanting to build custom validation for a field within a form, you can use “Fragment Validators” to achieve this.