Submit a form when adding to cart

Unfortunately when using Webflow you are only allowed to have 3 option sets but my product requires more. To get around this I tried creating a form on the page then some custom code hacking to get the form to submit when user presses the add to cart button.

$('.cart-button').on('click', function(){

This was the code I tried to use but it just doesn’t seem to work. Is there any work around for this issue and could someone paste custom code that actually works and solves this issue so that when users add to cart it submits a form so that I can view the form later in the site settings to work out what options my customers want. If you are able to fix this issue then you are smarter than chatgpt so good luck. Also webflow could you please add more option sets if I’m paying this much for an ecommerce site.