I have an Html 5 form with input elements contains required constraint. A user can view this form in edit or view mode. Means, I am hiding the input controls if form is in view mode and showing span instead. There is a submit button. Whenever user click the submit button and form is in view mode then I will get,
An invalid form control with name='' is not focusable.
I tried to show the form in edit mode during form submit event but I am getting this error prior to submit event invocation. How to fix this error? Is there any event just before validation happens?