<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Executing a javascript function from a link/button in a callout in Web AppBuilder Custom Widgets Questions</title>
    <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/executing-a-javascript-function-from-a-link-button/m-p/793847#M4385</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am embedding a WAB Dev Ed application into a customers content management system web page and the customer has a requirement to send an attribute of a clicked feature back to the content management system.&lt;/P&gt;&lt;P&gt;The obvious solution would be to configure a link/button in the callout configuration within the web map to execute some logic, but this is not allowed and any javascript calls are filtered out of the web map.&lt;/P&gt;&lt;P&gt;The next approach could be to use feature actions at the WAB level, which would provide a means to execute a javascript function but by default these are not obvious or easily accessible from the callout (click ellipsis to show context menu, select appropriate feature action).&lt;/P&gt;&lt;P&gt;Is it possible to include a call to a feature action from a button/link created in the callout? If so, how?&lt;/P&gt;&lt;P&gt;Alternatively, can a feature action be added as a link to the callout footer, like the "zoom to" link? If so, how?&lt;/P&gt;&lt;P&gt;Can the callout footer be customised to include a javascript function call with an attribute of the selected feature as a parameter?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Jul 2019 06:22:26 GMT</pubDate>
    <dc:creator>MarkTurnbull</dc:creator>
    <dc:date>2019-07-10T06:22:26Z</dc:date>
    <item>
      <title>Executing a javascript function from a link/button in a callout</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/executing-a-javascript-function-from-a-link-button/m-p/793847#M4385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am embedding a WAB Dev Ed application into a customers content management system web page and the customer has a requirement to send an attribute of a clicked feature back to the content management system.&lt;/P&gt;&lt;P&gt;The obvious solution would be to configure a link/button in the callout configuration within the web map to execute some logic, but this is not allowed and any javascript calls are filtered out of the web map.&lt;/P&gt;&lt;P&gt;The next approach could be to use feature actions at the WAB level, which would provide a means to execute a javascript function but by default these are not obvious or easily accessible from the callout (click ellipsis to show context menu, select appropriate feature action).&lt;/P&gt;&lt;P&gt;Is it possible to include a call to a feature action from a button/link created in the callout? If so, how?&lt;/P&gt;&lt;P&gt;Alternatively, can a feature action be added as a link to the callout footer, like the "zoom to" link? If so, how?&lt;/P&gt;&lt;P&gt;Can the callout footer be customised to include a javascript function call with an attribute of the selected feature as a parameter?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jul 2019 06:22:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/executing-a-javascript-function-from-a-link-button/m-p/793847#M4385</guid>
      <dc:creator>MarkTurnbull</dc:creator>
      <dc:date>2019-07-10T06:22:26Z</dc:date>
    </item>
    <item>
      <title>Re: Executing a javascript function from a link/button in a callout</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/executing-a-javascript-function-from-a-link-button/m-p/793848#M4386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mark,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Look at this thread:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.esri.com/thread/204319-adding-a-link-to-a-popup-and-getting-a-value-from-the-selected-feature"&gt;https://community.esri.com/thread/204319-adding-a-link-to-a-popup-and-getting-a-value-from-the-selected-feature&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jul 2019 12:50:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/executing-a-javascript-function-from-a-link-button/m-p/793848#M4386</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2019-07-10T12:50:15Z</dc:date>
    </item>
  </channel>
</rss>

