I have a custom form created using the drupal Formbase class now I want to add ajax validation and submission to that form how would I do that can you please guide me.

 

I have added use-ajax-submit to the submit button but nothign happens.

Please guide me.