Hey all, I have very little developer knowledge but am trying to figure this out myself and could use some help.
I am trying to code a mailto into a dynamic page that will pull the relevant email address from the linked collection. I’ve pieced this code together from other posts in the community, but I dont really know what I’m doing and would appreciate some advice.
Collection ID: daynamicDataset
field key: email
button ID: emailButton
Code:
export function emailButton_click ( event ) {
import wixLocation from ‘wix-location’ ;
hello, yes my domain is connected. I’m changing the ID’s but there are several that I’m unsure what to replace with:
mailto: ${ emailAddress } - should the be the field key?
‘email-details’ - I’m not sure what this refers to?