Reputation: 21
I am using angular v10 and angular forms of v10.
There is a form and submit button for the same. Added validations and using form.valid
to enable/ disable submit button.
What I want is: consider 10 fields in a form and submit1 and submit2 buttons. 5 fields are required for submit1 button and when user submits the form with values in 5 fields then submit2 button will be displayed. But submit2 button needs to have 2 additional required fields along with exisitng 5 fields. Is there any way to provide 2 additional validations to form for only submit2 button.
Upvotes: 0
Views: 232
Reputation: 21
As it is a long time and even I also did not find a solution, the approach I used is that
Upvotes: 1