<?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: Customize InfoWindow generated by Editor Widget when loading map from ArcGIS online in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/customize-infowindow-generated-by-editor-widget/m-p/468120#M43402</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;BR /&gt;You can hide delete button of Attribute Inspector and also you can have control on the fields of Attribute Inspector.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You just need to add the below following code in your editing function:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var layerInfos = [];&lt;BR /&gt; layerInfos = [&lt;BR /&gt; {&lt;BR /&gt; 'featureLayer': xyz, //your featureserver layer&lt;BR /&gt; 'isEditable': false,&lt;BR /&gt; 'showDeleteButton':true,&amp;nbsp; // in your case, it will be false&lt;BR /&gt; 'fieldInfos': [&lt;BR /&gt; {'fieldName':'OBJECTID', 'isEditable':true ,'label':'Object ID'},&lt;BR /&gt; {'fieldName':'', 'isEditable':true ,'label':''}&lt;BR /&gt; ]&lt;BR /&gt; },&lt;BR /&gt; {&lt;BR /&gt; 'featureLayer': ,&lt;BR /&gt; 'isEditable': false,&lt;BR /&gt; 'showDeleteButton':true,&lt;BR /&gt; 'fieldInfos': [&lt;BR /&gt;&lt;SPAN&gt;{'fieldName':'OBJECTID', 'isEditable':true ,'label':'Object ID'},&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{'fieldName':'', 'isEditable':true ,'label':''}&lt;/SPAN&gt;&lt;BR /&gt; ]&lt;BR /&gt; }&lt;BR /&gt; ];&lt;/P&gt;&lt;P&gt;var settings = {&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;layerInfos : layerInfos&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Mayur Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 31 Jan 2018 11:17:43 GMT</pubDate>
    <dc:creator>MayurPatel</dc:creator>
    <dc:date>2018-01-31T11:17:43Z</dc:date>
    <item>
      <title>Customize InfoWindow generated by Editor Widget when loading map from ArcGIS online</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/customize-infowindow-generated-by-editor-widget/m-p/468115#M43397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is it possible to remove the DELETE button on InfoWindow when using Editor Widget?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Further, can I customize the InfoWindow and add a new button there?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am createMap using webmap from ArcGIS online. From my understanding, the InfoWindow for the feature is generated automatically by Editor Widget. I looked into Editor Widget API but haven't found out a way to customize the InfoWindow yet.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any suggestion?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Tony&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Apr 2013 17:02:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/customize-infowindow-generated-by-editor-widget/m-p/468115#M43397</guid>
      <dc:creator>tonylife</dc:creator>
      <dc:date>2013-04-25T17:02:22Z</dc:date>
    </item>
    <item>
      <title>Re: Customize InfoWindow generated by Editor Widget when loading map from ArcGIS onli</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/customize-infowindow-generated-by-editor-widget/m-p/468116#M43398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can hide the delete button easily with CSS: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;.esriAttributeInspector .atiButtons .atiDeleteButton {&amp;nbsp;&amp;nbsp;&amp;nbsp; display: none;
}
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As for creating a button, you will need to do that in javascript:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;var saveButton = new dijit.form.Button({ label: 'Save', 'class': 'atiSaveButton' });
dojo.dom-construct.place(saveButton.domNode, attributeInspector.deleteBtn.domNode, "after");&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 20:45:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/customize-infowindow-generated-by-editor-widget/m-p/468116#M43398</guid>
      <dc:creator>DanielWalton</dc:creator>
      <dc:date>2021-12-11T20:45:02Z</dc:date>
    </item>
    <item>
      <title>Re: Customize InfoWindow generated by Editor Widget when loading map from ArcGIS onli</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/customize-infowindow-generated-by-editor-widget/m-p/468117#M43399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi danwallie&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for your reply!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For your solution to hide delete button using CSS, it would always hide the button application wide.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a solution to hide the button based on feature layers?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For your solution to manipulate dom to add new button node, I tried following code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var saveButton = new dijit.form.Button({ label: 'Save' });
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dojo.place(saveButton.domNode, dojo.query(".atiDeleteButton"), "after");&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;dojo.query(".atiDeleteButton") does return the right domNode, and the code does executed without error. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;However, the new save button is not either show up on UI or put into DOM.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any comment would be appreciated!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Tony&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;You can hide the delete button easily with CSS: &lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;.esriAttributeInspector .atiButtons .atiDeleteButton {&amp;nbsp;&amp;nbsp;&amp;nbsp; display: none;
}
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;As for creating a button, you will need to do that in javascript:&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;var saveButton = new dijit.form.Button({ label: 'Save', 'class': 'atiSaveButton' });
dojo.dom-construct.place(saveButton.domNode, attributeInspector.deleteBtn.domNode, "after");&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 20:45:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/customize-infowindow-generated-by-editor-widget/m-p/468117#M43399</guid>
      <dc:creator>tonylife</dc:creator>
      <dc:date>2021-12-11T20:45:05Z</dc:date>
    </item>
    <item>
      <title>Re: Customize InfoWindow generated by Editor Widget when loading map from ArcGIS onli</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/customize-infowindow-generated-by-editor-widget/m-p/468118#M43400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I also am having trouble adding buttons to the editor widget infowindow. The best I could do was add a button by following this sample:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/jssamples/ed_attribute_inspector.html"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/jssamples/ed_attribute_inspector.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However this sample uses the attribute inspector without the editor widget. If you figure out how to add the button while using the editor widget, please post your code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 May 2013 17:18:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/customize-infowindow-generated-by-editor-widget/m-p/468118#M43400</guid>
      <dc:creator>CharmaleeSandanayake</dc:creator>
      <dc:date>2013-05-06T17:18:52Z</dc:date>
    </item>
    <item>
      <title>Re: Customize InfoWindow generated by Editor Widget when loading map from ArcGIS onli</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/customize-infowindow-generated-by-editor-widget/m-p/468119#M43401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I also am having trouble adding buttons to the editor widget infowindow. The best I could do was add a button by following this sample:&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/jssamples/ed_attribute_inspector.html" rel="nofollow noopener noreferrer" target="_blank"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/jssamples/ed_attribute_inspector.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;However this sample uses the attribute inspector without the editor widget. If you figure out how to add the button while using the editor widget, please post your code.&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Actually, from my understanding, editor widget does call attribute inspector internally.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The way I figured out, to change the infoWindow, is manipulate dom using javascript directly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I haven't tried input button yet, but following code to create a link on infowindow does work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (dojo.byId("MyLink") == undefined) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dojo.create("a", {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "id": "MyLink",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "class": "action",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "innerHTML": "MyLink",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "onclick": "MyLinkAction();return false;"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }, dojo.query(".actionList", map.infoWindow.domNode)[0]);
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The key is, since only one infowindow is allowed on map at a time, we can use map.infoWindow.domNode to access the DOM.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Then the content of infowindow is under our control.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Tony&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 20:45:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/customize-infowindow-generated-by-editor-widget/m-p/468119#M43401</guid>
      <dc:creator>tonylife</dc:creator>
      <dc:date>2021-12-11T20:45:08Z</dc:date>
    </item>
    <item>
      <title>Re: Customize InfoWindow generated by Editor Widget when loading map from ArcGIS online</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/customize-infowindow-generated-by-editor-widget/m-p/468120#M43402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;BR /&gt;You can hide delete button of Attribute Inspector and also you can have control on the fields of Attribute Inspector.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You just need to add the below following code in your editing function:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var layerInfos = [];&lt;BR /&gt; layerInfos = [&lt;BR /&gt; {&lt;BR /&gt; 'featureLayer': xyz, //your featureserver layer&lt;BR /&gt; 'isEditable': false,&lt;BR /&gt; 'showDeleteButton':true,&amp;nbsp; // in your case, it will be false&lt;BR /&gt; 'fieldInfos': [&lt;BR /&gt; {'fieldName':'OBJECTID', 'isEditable':true ,'label':'Object ID'},&lt;BR /&gt; {'fieldName':'', 'isEditable':true ,'label':''}&lt;BR /&gt; ]&lt;BR /&gt; },&lt;BR /&gt; {&lt;BR /&gt; 'featureLayer': ,&lt;BR /&gt; 'isEditable': false,&lt;BR /&gt; 'showDeleteButton':true,&lt;BR /&gt; 'fieldInfos': [&lt;BR /&gt;&lt;SPAN&gt;{'fieldName':'OBJECTID', 'isEditable':true ,'label':'Object ID'},&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{'fieldName':'', 'isEditable':true ,'label':''}&lt;/SPAN&gt;&lt;BR /&gt; ]&lt;BR /&gt; }&lt;BR /&gt; ];&lt;/P&gt;&lt;P&gt;var settings = {&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;layerInfos : layerInfos&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Mayur Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Jan 2018 11:17:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/customize-infowindow-generated-by-editor-widget/m-p/468120#M43402</guid>
      <dc:creator>MayurPatel</dc:creator>
      <dc:date>2018-01-31T11:17:43Z</dc:date>
    </item>
    <item>
      <title>Re: Customize InfoWindow generated by Editor Widget when loading map from ArcGIS online</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/customize-infowindow-generated-by-editor-widget/m-p/468121#M43403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And you can also create a new Button in your Attribute Inspector&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var myEditor = new Editor(srcNode);&lt;/P&gt;&lt;P&gt;var attInspector = myEditor.attributeInspector;&lt;/P&gt;&lt;P&gt;var saveButton = new Button({label:"Save","class":"atiSaveButton"},domConstruct.create("div"));&lt;BR /&gt; domConstruct.place(saveButton.domNode, attInspector.deleteBtn.domNode, "before");&lt;BR /&gt;&lt;BR /&gt;The reason why I have created attInspector variable using myEditor.attributeInspector is we want "Save" button in our attributeInspector of Editor Widget.&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;BR /&gt;Mayur Patel&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Jan 2018 12:59:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/customize-infowindow-generated-by-editor-widget/m-p/468121#M43403</guid>
      <dc:creator>MayurPatel</dc:creator>
      <dc:date>2018-01-31T12:59:09Z</dc:date>
    </item>
  </channel>
</rss>

