How can I create this statement with dynamic data binding?


#1

So I want to add a mailto link in a href for example
<a dmx-bind:href=“mailto:{{select.data.query1[0].email}}?subject={{title}}”></a>

How can this be done? The mailto add’s the email but I can not get the subject to add the {{title}}

Thanks in advance to our great community here on Wappler :slight_smile:


#2

Hi @gunnery
Looking at your email expression, are you sure the title should not be:
{{select.data.query1[0].title}} ?


#3

You my also want to read http://michoninternational.com/michon-news/never-use-a-href-mailto-or-html-mailto-on-a-website/


#4

as per normal @Teodor you are right sir. :slight_smile:


#5

cheers @ben that’s all working now :slight_smile: