Remove id attribute from input elements generated by activeField

I have multiple forms on the same page and each form has a field like this:

				<?= $form->field($model, 'form_name')
					->hiddenInput(['value'=> $formName])->label(false);
				?>

This generates the following input field with id attribute:

 <input type="hidden" id="events-form_name" class="form-control" name="Events[form_name]" value="message">

But since I have this field in each form my page has invalid markup due to repeated id with the same value. Is there a way to tell active from not to put an id on input field?

Hi,
you can do something like this:

<?= $form->field($model, 'form_name')
					->hiddenInput(['value'=> $formName,'id'=>"NEW_ID_HERE"])->label(false);
				?>