Help with GTM trigger firing on the meeting form submit

Yes I made it work by editing the hubspot form embed code. Here’s how one of mine looks now:

<!--[if lte IE 8]>
<script charset="utf-8" type="text/javascript" src="//js.hsforms.net/forms/v2-legacy.js"></script>
<![endif]-->
<script charset="utf-8" type="text/javascript" src="//js.hsforms.net/forms/v2.js"></script>
<script>
 hbspt.forms.create({ 
 css: '',
 portalId: 'XXXXXX',
 formId: '012aaa7e-03df-4c38-83fb-63474af1c182',
 onFormSubmit: function($form) {
		window.dataLayer = window.dataLayer || [];

		window.dataLayer.push({
 'event' : 'step 2',			
 'eventCategory' : 'lead',
			 'eventAction' : 'trial step 2'
		});
	}
 });
</script>

In GTM I then created a trigger “custom event” with event name “step 2”. This is used as a firing trigger for a tag that does whatever the goal is (GA event, FB pixel conversion tag, etc)