Want to be able to auto populate item # on the form so we know the inquiry is for which item#

Hi there,

The code snippet provided above is just an example, directly copy-pasting it into the code panel of your website is not enough to make it work.

You will have to modify the IDs of the fields and elements to what you have on your site.

Here’s a no-code solution that I had provided to one of the users earlier who was looking for something similar, have a read:

Note that this solution is for custom dynamic pages, where the form is right there on the page itself, no lightbox needed. Also this solution is based on a custom form built using input fields and datasets. No custom emails configured for this.

If you need your form on a product item page in your site’s store, then you can find a bunch of tutorials online if you search for how to add a Request a Quote feature on your Wix Studio site’s store. This basically changes the Add To Cart button to a Request a Quote button which opens up a lightbox. The form in the lightbox is automatically prefilled with the required product info based on the code you add.

If that’s what you’re looking for, here’s how to do it:

1 Like