HOW TO USE DATA TO AUTO POPULATE EMAIL TEMPLATE

I need some help and I’m not sure where to start. I am working with a client to create a website for a membership service. The member will have access to discounts from vendors. Each vendor will post their deals on their vendor page of the site. I want to create a button for each deal that the user will push and that will send the users information and the information for the deal they are interested in to the vendor either though an email or a form. Any help would be appreciated.

Example: User signs up and enters; Name, Email & Phone #
User finds a deal; $500 off Product 3 from Vendor B

I’d like to have a link for them to press that would either take them to a form that would have above information pre populated and they will only need to hit submit

or

I’d like to have a link for them to press that auto populates the above information to an email from and they only have to press send

or

Ideally what would be great is if there was a link they would press and it automatically sent an email or form submission to the Vendor with said information.

Have a read about triggered emails:
https://support.wix.com/en/article/about-triggered-emails
https://support.wix.com/en/article/corvid-tutorial-sending-a-triggered-email-to-contacts
https://support.wix.com/en/article/corvid-tutorial-sending-a-triggered-email-to-members
https://support.wix.com/en/article/sending-automated-response-emails-to-contacts

If you want to pass data between pages or lightboxes, then use the following:
https://www.wix.com/corvid/reference/wix-storage.html
https://www.wix.com/corvid/reference/wix-window.html#openLightbox
https://www.wix.com/corvid/reference/wix-window.lightbox.html#close

Or you can simply pull the info from a dataset on the actual page, instead of passing it from page to page
https://www.wix.com/corvid/reference/wix-dataset.Dataset.html#getCurrentItem

// Auto-Fill Form //
$w.onReady(function () {
       $w("#input1").value = "First" // From database use: $w('#dynamicDataset').getCurrentItem().item //
       $w("#input2").value = "Last"
       $w("#input3").value = "firstlast@gmail.com"
       $w("#input4").value = "+1 123 123 1234"
});
​
// Submit Auto-Filled Items //
​
export function Submit_click(event, $w) {
        $w('#dataset1').setFieldValue('fname', $w('#input1').value);
        $w('#dataset1').setFieldValue('lname', $w('#input2').value);
        $w('#dataset1').setFieldValue('email', $w('#input3').value);
        $w('#dataset1').setFieldValue('phone', $w('#input4').value);

In this example, we hard coded the first, last, email and phone number.
You can either

  1. Change the auto-populated values (if your values are static) or
  2. Retrieve the values from a dataset. For example, $w(“#dataset1”).getCurrentItem().fieldName;