I would like to track the form submission using DTM. If we use event based tracking how can I check if all the form fields are validated before tracking submission button? How these types of logic are added in DTM?
That is correct. Have the script added into a 3rd party tag and configure it to fire off before your submit button tracking.