<?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 Re: Extending the Print Widget in Web AppBuilder Custom Widgets Questions</title>
    <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/extending-the-print-widget/m-p/786156#M3619</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Answered my own question pretty shortly after posting:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Passing data to the PrintTemplate object is handled on lines 262-273 of the Print.js file of the Print widget. I was having trouble as I was trying to update the description text of the print template, which does not seem to be supported. I instead need to use the customTextElements object of the layoutOptions attribute of PrintTemplate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;API reference: &lt;A href="https://developers.arcgis.com/javascript/jsapi/printtemplate.html" title="https://developers.arcgis.com/javascript/jsapi/printtemplate.html"&gt;PrintTemplate | API Reference | ArcGIS API for JavaScript&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Damon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 May 2015 21:39:26 GMT</pubDate>
    <dc:creator>DamonMyers</dc:creator>
    <dc:date>2015-05-20T21:39:26Z</dc:date>
    <item>
      <title>Extending the Print Widget</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/extending-the-print-widget/m-p/786155#M3618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A user has requested the ability to type notes into the print widget before the call is made to the Print service that generates the map documents for printing. I understand the majority of how to implement this, except for how to pass form data to the Print service.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone tell me where, in the Esri Print Widget, passing form data (such as Map Title, Format, Layout, and Author) to the Print service is handled?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Damon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2015 21:04:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/extending-the-print-widget/m-p/786155#M3618</guid>
      <dc:creator>DamonMyers</dc:creator>
      <dc:date>2015-05-20T21:04:39Z</dc:date>
    </item>
    <item>
      <title>Re: Extending the Print Widget</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/extending-the-print-widget/m-p/786156#M3619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Answered my own question pretty shortly after posting:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Passing data to the PrintTemplate object is handled on lines 262-273 of the Print.js file of the Print widget. I was having trouble as I was trying to update the description text of the print template, which does not seem to be supported. I instead need to use the customTextElements object of the layoutOptions attribute of PrintTemplate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;API reference: &lt;A href="https://developers.arcgis.com/javascript/jsapi/printtemplate.html" title="https://developers.arcgis.com/javascript/jsapi/printtemplate.html"&gt;PrintTemplate | API Reference | ArcGIS API for JavaScript&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Damon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2015 21:39:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/extending-the-print-widget/m-p/786156#M3619</guid>
      <dc:creator>DamonMyers</dc:creator>
      <dc:date>2015-05-20T21:39:26Z</dc:date>
    </item>
    <item>
      <title>Re: Extending the Print Widget</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/extending-the-print-widget/m-p/786157#M3620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Damon,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How did you actually implement this? I tried adding a subtitle to the map title but I am unable to modify the text size, etc. I added it as a new line in the current Map Title when printed, but then it bleeds into the map frame. Are you able to use the customTextElements to place text anywhere you want within the printed map?&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/102194_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2015 19:20:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/extending-the-print-widget/m-p/786157#M3620</guid>
      <dc:creator>DrewSwayne</dc:creator>
      <dc:date>2015-05-21T19:20:40Z</dc:date>
    </item>
    <item>
      <title>Re: Extending the Print Widget</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/extending-the-print-widget/m-p/786158#M3621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Drew,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Add a new text element to your print template in ArcMap using the menu Insert &amp;gt; Text, place and format it as desired.&lt;/LI&gt;&lt;LI&gt;switch to the Size and Position Tab and in the Element Name enter "SubTitle".&lt;/LI&gt;&lt;LI&gt;Save your print template.&lt;/LI&gt;&lt;LI&gt;In the WAB print widgets' Print.js file find line 267 "template.layoutOptions = {"&lt;/LI&gt;&lt;LI&gt;Add a new line under 267 and paste this&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;customTextElements: [{SubTitle: form.subtitle}], (assuming your Dam Id field on the from is called "subtitle").&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2015 19:57:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/extending-the-print-widget/m-p/786158#M3621</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2015-05-21T19:57:04Z</dc:date>
    </item>
    <item>
      <title>Re: Extending the Print Widget</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/extending-the-print-widget/m-p/786159#M3622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can anyone provide more detailed information on how to modify the form, to add the input, to pass the custom text element into the layout.&amp;nbsp; I have modified the template "Element" and added the new line under Line 267, but I cant seem to get past this point.&amp;nbsp; I just want the option to input a few new lines of text to pass to my custom text elements in the layout.&amp;nbsp; Any help would be appreciated.&amp;nbsp; Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jun 2015 18:50:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/extending-the-print-widget/m-p/786159#M3622</guid>
      <dc:creator>JayHalligan</dc:creator>
      <dc:date>2015-06-16T18:50:35Z</dc:date>
    </item>
    <item>
      <title>Re: Extending the Print Widget</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/extending-the-print-widget/m-p/786160#M3623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to add code to your form in the \widgets\Print\templates\Print.html file&lt;/P&gt;&lt;P&gt;It depends on where you want the user to enter the information. Visible from the top of accessible through the advanced button. For example I wanted mine to show up in the advanced section so I just added this between the Author and copyright table rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;lt;tr&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;td&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Additional Text:
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/td&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;td&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;input type="text" data-dojo-attach-point="BOXTEXTNode" data-dojo-type="dijit/form/ValidationTextBox" data-dojo-props="name:'BOXTEXT',trim:true,required:false,style:'width:100%;'" data-dojo-attach-point="BOXTEXTTB"/&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/td&amp;gt;
&amp;lt;/tr&amp;gt;&lt;/PRE&gt;&lt;P&gt;In line 6 above replace the 3 instances of BOXTEXT with the value you made in the Print.js file as mentioned previously.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Stan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 08:57:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/extending-the-print-widget/m-p/786160#M3623</guid>
      <dc:creator>StanMcShinsky</dc:creator>
      <dc:date>2021-12-12T08:57:49Z</dc:date>
    </item>
    <item>
      <title>Re: Extending the Print Widget</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/extending-the-print-widget/m-p/786161#M3624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I managed to use your above code to use customTextElements to add in a free text box, as Drew has above, into the print widget in WAB.&amp;nbsp; However, following further customisations (which also were working), I am now no longer getting any free text boxes within the widget, despite (&lt;A href="mailto:I@m"&gt;I&lt;/A&gt;'m sure) not changing anything.&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/206361_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;Do you have any suggestions as to what might have changed / what I am doing wrong?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Helen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 May 2016 15:56:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/extending-the-print-widget/m-p/786161#M3624</guid>
      <dc:creator>HelenWhiteley</dc:creator>
      <dc:date>2016-05-31T15:56:56Z</dc:date>
    </item>
  </channel>
</rss>

