Mobile share functionality
- 1.Install the Toolbox plugin
- 2.Create an 'on-click' workflow on whatever element you want to trigger the share function.
- 3.Add a single action, 'Run javascript' (Found under plugin actions)
- 4.Paste into the action the following code:
- 1.
navigator.share({
title: document.title,
text: '<THIS TEXT WILL BE SHARED WITH THE URL>',
url: '<WWW.EXAMPLEURL.COM>',
});
- 5.Replace the contents of <> (including the <>) with your own text. In the above example, the shared text would be: "THIS TEXT WILL BE SHARED WITH THE URL WWW.EXAMPLEURL.COM"
- 6.You will also probably also want to install the IsMobile plugin and only show the share functionality if the user is on a mobile device
Last modified 3yr ago