Select to view content in your preferred language

Story Map Tour caption description fails to save with web links

8771
14
Jump to solution
07-15-2015 10:40 AM
MadeleineMorgan
Deactivated User

I'm adding web links to my caption descriptions in my Story Map Tour.  The error message I receive is "save failed due to an invalid html tag in a name or description".  My syntax is as follows:

In the summer, you’ll probably need a reservation to ensure a site.<br><a href="https://www.google.com/maps/dir/Asheville,+NC/Standing+Indian+Campground,+National+Forest+Road,+Fran..." title="Directions to Asheville" target="_blank" style="outline: none;">Directions to Asheville </a><br>

When I click enter to add the caption, the text and link work perfectly.  It just won't save it.  Very frustrating.

0 Kudos
1 Solution

Accepted Solutions
GregoryL_Azou
Deactivated User

Some of your quotes were not correct. You have to make sure you use regular quotes " and not ”

If you copy/paste the text below it should work

Seventy miles of hiking trails run through the area, including 20 miles of
the Appalachian Trail.  The hike to the summit is a tough 5 miles.


Standing Indian Campground contains 84 campsites and is open
April-November.  In the summer, you’ll probably need a reservation to
ensure a site.


<a href="https://www.google.com/maps/dir/Asheville,+NC/Standing+Indian+Campground,+National+Forest+Road,+Fran..." target="_blank" style="outline: none;">Directions from Asheville </a>


<a href="http://www.fs.usda.gov/recarea/nfsnc/null/recarea/?recid=48634&actid=30" target="_blank" style="outline: none;">Forest Service Website</a>


Photo: Bill Lea

View solution in original post

0 Kudos
14 Replies
GregoryL_Azou
Deactivated User

Hi, sorry about this.

The issue is the title attribute. If you modify your link to the following it should work.

<a href="https://www.google.com/maps/dir/Asheville,+NC/Standing+Indian+Campground,+National+Forest+Road,+Fran..." target="_blank" style="outline: none;">Directions to Asheville </a><br>

You can look at the following link to see the tab and attributes that are valid Feature services and client applications—Documentation (10.3 and 10.3.1) | ArcGIS for Server ; section "Entering HTML into text fieldsEntering HTML into text fields"

Note that for the html tag that are authorized in the header title/subtitle are slightly different, they are documented in the following page http://doc.arcgis.com/en/arcgis-online/reference/supported-html.htm

0 Kudos
GregoryL_Azou
Deactivated User

Some of your quotes were not correct. You have to make sure you use regular quotes " and not ”

If you copy/paste the text below it should work

Seventy miles of hiking trails run through the area, including 20 miles of
the Appalachian Trail.  The hike to the summit is a tough 5 miles.


Standing Indian Campground contains 84 campsites and is open
April-November.  In the summer, you’ll probably need a reservation to
ensure a site.


<a href="https://www.google.com/maps/dir/Asheville,+NC/Standing+Indian+Campground,+National+Forest+Road,+Fran..." target="_blank" style="outline: none;">Directions from Asheville </a>


<a href="http://www.fs.usda.gov/recarea/nfsnc/null/recarea/?recid=48634&actid=30" target="_blank" style="outline: none;">Forest Service Website</a>


Photo: Bill Lea
0 Kudos
MadeleineMorgan
Deactivated User

Great, thank you so much! Do you have a tip on how to create the regular

quotes? My keyboard is doing the rounded ones automatically...

0 Kudos
GregoryL_Azou
Deactivated User

You are welcome, it's probably because of your text editor. If you use a simple one like notepad you should not have that issue.

0 Kudos
LilyWydra
Emerging Contributor

I'm having similar problem. I have added some HTML code to make my description look a little more interesting. Today I had to move my points as the location of my Poetry Trial has changed. Once I did it I got the error saying:

The syntax I used (written in notepad) is:

The first poem you will be looking for is:<br> <font size="3" font="" face="georgia" color="grey"><b>Voices of Water</b></font><br>by <i><font color="grey">Tony Mitton from Poems to Perform chosen by Julia Donaldson</font></i><br> (Macmillan, 2013)<br><br><i>When you find the poem:</i><br>  <font size="2" font="" face="arial" color="white" span="" style="background-color:#666666"><i>Playing games with language helps the shapes, sounds and rhythms of the words to be enjoyed as well as their meaning. Think about other sounds that you can hear around you and come up with your own lines for a “Voices of King`s Cross” poem. </i></font>

Poetry Trial.jpg

Any help will be appreciated!

0 Kudos
StephenSylvia
Esri Regular Contributor

For security reasons, ArcGIS.com only allows a limited set of HTML tags to be saved. All others will be stripped out when you save. Here’s an article which shows the supported HTML tags and associated attributes: http://doc.arcgis.com/en/arcgis-online/reference/supported-html.htm. You should still be able to get your desired results by using the span tag with style attribute instead of using the font tag.

0 Kudos
GregoryL_Azou
Deactivated User

Hi,

Find below your html fixed, there was couple of attributes that were not supported or useful. In addition to the link given by Stephen, in fact more restriction also apply as you are using a Feature Service to store your image which has slightly different support, see ArcGIS Help (10.2, 10.2.1, and 10.2.2)

<br> <font size="3" face="georgia" color="grey"><b>Voices of Water</b></font><br>by <i><font color="grey">Tony Mitton from Poems to Perform chosen by Julia Donaldson</font></i><br> (Macmillan, 2013)<br><br><i>When you find the poem:</i><br>  <font size="2" face="arial" color="white" style="background-color:#666666"><i style="outline: none;">Playing games with language helps the shapes, sounds and rhythms of the words to be enjoyed as well as their meaning. Think about other sounds that you can hear around you and come up with your own lines for a “Voices of King`s Cross” poem. </i></font>

0 Kudos
LilyWydra
Emerging Contributor

Hi,

Many thanks for your help Gregory and Stephen. I was able to update my caption and save the app!

I had to modify your example further by removing code highlighted in yellow.


Voices of Water
by <font color="grey">Tony Mitton from Poems to Perform chosen by Julia Donaldson</font>
(Macmillan, 2013)

When you find the poem:
Playing games with language helps the shapes, sounds and rhythms of the words to be enjoyed as well as their meaning. Think about other sounds that you can hear around you and come up with your own lines for a “Voices of King`s Cross” poem.

Great work and quick turnaround!

LW

0 Kudos
LilyWydra
Emerging Contributor

Ohhh…my highlight didn’t work earlier..

0 Kudos