We using HubSpot forms on our external site. We’d like to be able to show a long form on our external page for desktop and tablet devices, and a shorter version of the form on mobile devices. I already created a mobile version of the form in HubSpot, eliminating any unnecessary fields. My question is, what’s the best way to create the form based on a media query?
I added the following js to the end of the html page and neither form loaded. My knowledge in js is very limited and I put this snippet of code together based on google search results.
Is this the best way to go about this? If not, any other suggestions?