How to attach current slider image to contact form in WordPress

What I’m trying to achieve is this:

There is an image slider on a page which has a contact (get quote) form.

There are 8 images in the slider.

When someone will fill out the quote form and send it through, I would like to also attach the currently visible image ID (image name, link or any other attribute would work) to the email body.

So when the email comes through to me, it should hopefully say something like:

Name: name
Image: image-1.png OR

The aim of this is because the images I have on display are vastly different in terms of labour and cost.

My main struggle is getting the current visible image in the slider.

Any help would me much appreciated.

Leave a Comment