New to wix and not sure where else to check.
I have a ‘contact’ button. When user clicks on it, I want it to start an email. It works in the below code. However, I want the email address to be pulled from the email column in database collection. I can’t seem to find a way to do it. Thanks for any help!
import wixLocation from ‘wix-location’; $w.onReady( function () { $w(" #button3 ").onClick( function (){wixLocation.to(“mailto:ab@xyz.com?subject=stay at home!&body=hello”)})
})
Thanks for the reply. It’s very simple site for item swap and I don’t want users to have to sign up and login. It’s a simple page (in repeater). I have the ‘contact’ button that can be loaded from the email-address field within the database. When the site visitor clicks on the contact button, I want them to be then directly to the email-address. Thanks!