Share Widget

751
3
Jump to solution
12-28-2018 07:02 AM
Labels (1)
GarethYoung1
New Contributor III

Robert Scheitlin, GISP

Robert, Is there a way to remove all the link options from the share widget apart from the  following:

  • Current map extent
  • Add a marker on the map

Under the marker options is there a way to remove the WKID option?

Thanks

Gareth

0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus

Gareth,

  Add these rules to your apps theme common.css:

.share-container .shareLink .optionsRow:nth-child(2),
.share-container .shareLink .optionsRow:nth-child(3),
.share-container .shareLink .optionsRow:nth-child(4),
.share-container .shareLink .optionsRow:nth-child(5){
  display: none;
}

.share-container .shareLink .optionsRow.shareClearFix:nth-child(1){
  display: none;
}

.share-container .shareLink .moreOptionsRow:nth-child(1){
  display: none;
}

For changing the email text you have to edit the shareEmailTxt1, shareEmailTxt2, shareEmailTxt3 properties in the apps jimu.js\nls\main.js

View solution in original post

3 Replies
GarethYoung1
New Contributor III

I'd also like to customise the subject and content of the email generated from the email button:

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Gareth,

  Add these rules to your apps theme common.css:

.share-container .shareLink .optionsRow:nth-child(2),
.share-container .shareLink .optionsRow:nth-child(3),
.share-container .shareLink .optionsRow:nth-child(4),
.share-container .shareLink .optionsRow:nth-child(5){
  display: none;
}

.share-container .shareLink .optionsRow.shareClearFix:nth-child(1){
  display: none;
}

.share-container .shareLink .moreOptionsRow:nth-child(1){
  display: none;
}

For changing the email text you have to edit the shareEmailTxt1, shareEmailTxt2, shareEmailTxt3 properties in the apps jimu.js\nls\main.js

GarethYoung1
New Contributor III

Thanks Robert.  This resolved my issue

0 Kudos