Adding to form input - Kentico 11

Chet Tom asked on August 5, 2021 23:33

I have a custom Web Control "CustomFormField" that takes in many custom form controls.

I need to add aria-required="true" to the input if it is required, but I don't know how to add to the attributes as I am registering the page with (FormField)CustomFormField.LoadFormControl((Control)this).

Does anybody know how to manipulate this LoadFormControl method to load the attributes I need?

   Please, sign in to be able to submit a new answer.