Select to view content in your preferred language

In the Add New Links section how do I create a mailto: URL?

4580
3
03-11-2015 09:52 AM
BrianO_keefe
Honored Contributor

I was able to do this in the BETA... is there something I'm missing? Am I going to have to manually change the HTML to get a MAILTO link?!

0 Kudos
3 Replies
StanMcShinsky
Frequent Contributor

Brian O'keefe​,

You need to add the mailto link to the link section. Something like this:

mailto:person@organization.com?Subject=Hello%20again

Replace with your email

Then go to \arcgis-web-appbuilder-1.0\server\apps\##\config.json and at about line 20 you will find a parameter to set the URL to the link. Remove the http://

Now it should look like:

    {
      "label": "mail",
      "url": "mailto:person@organization.com?Subject=Hello%20again"
    }

To help with the set up of that URL go to Mailto URL Encoder - About Email and it will generate the code needed with the appropriate syntax.

Stan

0 Kudos
asinha_ppc
Emerging Contributor

If anyone can help, I am having a similar issue:

Instead of linking to a website, or an email address - I'd like to link to a document, such as a PDF or DOC, on our corporate network.  I've tried a few things in config.json, but I can't seem to get it to work.

Grateful for any suggestions  ... Thank you !

0 Kudos
ColeAndrews
Frequent Contributor

Just noticed Portal 10.3 WAB doesn't require an "http://", while Portal 10.3.1 WAB does require and will place it there by default. So, if you're not using WAB Dev Edition, you're pretty much screwed with 10.3.1. Seems unnecessary for esri to have added in this "http://" requirement.

0 Kudos