Email link actions

Hi there,

I am looking to add some functionality whereby when my text component is clicked, it will open the email given.

I have played around with hyperlinking the text but the “Link actions” do not suffice. I imagine I would need to call a JS function but do not have the expertise to do so.

Do you have any advice on how I could achieve this?

Thanks,
David

Hi, David! Thank you for your question.
To make the link clickable in the text component so it opens a new email message and the user can write the email you need to follow the next steps:

  1. Add a link to your text component

  2. Select “Call a JavaScript Function” as a link’s action
    image

  3. Provide any string as a “Javascript Function” value

  4. Add the next code snipped to this screen JavaScript:
    Fliplet.Navigate.registerFunction('email', function() { window.open('mailto:<user@email.com>'); });

  1. Replace ‘user@email.com’ to the recipient’s email