<?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: Radio Button inside Pup Window in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/radio-button-inside-pup-window/m-p/1176229#M77423</link>
    <description>&lt;P&gt;i have solved this issue.&lt;/P&gt;&lt;P&gt;if you return div not string the readio button will be display.&lt;/P&gt;&lt;P&gt;like fallowing script&lt;/P&gt;&lt;P&gt;var div=&amp;nbsp;&lt;SPAN class=""&gt;document&lt;/SPAN&gt;.&lt;SPAN class=""&gt;createElement&lt;/SPAN&gt;(&lt;SPAN class=""&gt;"div"&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;div.innerHTML=HTML String;&lt;/P&gt;&lt;PRE&gt;&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 22 May 2022 11:43:26 GMT</pubDate>
    <dc:creator>NadirHussain</dc:creator>
    <dc:date>2022-05-22T11:43:26Z</dc:date>
    <item>
      <title>Radio Button inside Pup Window</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/radio-button-inside-pup-window/m-p/1176216#M77422</link>
      <description>&lt;P&gt;&amp;lt;html&amp;gt;&lt;BR /&gt;&amp;lt;head&amp;gt;&lt;BR /&gt;&amp;lt;meta charset="utf-8" /&amp;gt;&lt;BR /&gt;&amp;lt;meta&lt;BR /&gt;name="viewport"&lt;BR /&gt;content="initial-scale=1,maximum-scale=1,user-scalable=no"&lt;BR /&gt;/&amp;gt;&lt;BR /&gt;&amp;lt;title&amp;gt;Identify | Sample | ArcGIS API for JavaScript 4.23&amp;lt;/title&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;style&amp;gt;&lt;BR /&gt;html,&lt;BR /&gt;body,&lt;BR /&gt;#viewDiv {&lt;BR /&gt;padding: 0;&lt;BR /&gt;margin: 0;&lt;BR /&gt;height: 100%;&lt;BR /&gt;width: 100%;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;.esri-popup .esri-popup-header .esri-title {&lt;BR /&gt;font-size: 18px;&lt;BR /&gt;font-weight: bolder;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;.esri-popup .esri-popup-body .esri-popup-content {&lt;BR /&gt;font-size: 14px;&lt;BR /&gt;}&lt;BR /&gt;&amp;lt;/style&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;link&lt;BR /&gt;rel="stylesheet"&lt;BR /&gt;href="&lt;A href="https://js.arcgis.com/4.23/esri/themes/light/main.css" target="_blank" rel="noopener"&gt;https://js.arcgis.com/4.23/esri/themes/light/main.css&lt;/A&gt;"&lt;BR /&gt;/&amp;gt;&lt;BR /&gt;&amp;lt;script src="&lt;A href="https://js.arcgis.com/4.23/" target="_blank" rel="noopener"&gt;https://js.arcgis.com/4.23/&lt;/A&gt;"&amp;gt;&amp;lt;/script&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;script&amp;gt;&lt;BR /&gt;require([&lt;BR /&gt;"esri/Map",&lt;BR /&gt;"esri/views/MapView",&lt;BR /&gt;"esri/layers/MapImageLayer",&lt;BR /&gt;"esri/rest/identify",&lt;BR /&gt;"esri/rest/support/IdentifyParameters"&lt;BR /&gt;], function (Map, MapView, MapImageLayer, identify, IdentifyParameters) {&lt;BR /&gt;var params;&lt;/P&gt;&lt;P&gt;// URL to the map service where the identify will be performed&lt;BR /&gt;var identifyURL =&lt;BR /&gt;"&lt;A href="https://sampleserver6.arcgisonline.com/arcgis/rest/services/MtBaldy_BaseMap/MapServer" target="_blank" rel="noopener"&gt;https://sampleserver6.arcgisonline.com/arcgis/rest/services/MtBaldy_BaseMap/MapServer&lt;/A&gt;";&lt;/P&gt;&lt;P&gt;// Add the map service as a MapImageLayer&lt;BR /&gt;// use identify to query the service to add interactivity to the app&lt;BR /&gt;var identifyLayer = new MapImageLayer({&lt;BR /&gt;url: identifyURL,&lt;BR /&gt;opacity: 0.5&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;var map = new Map({&lt;BR /&gt;basemap: "osm"&lt;BR /&gt;});&lt;BR /&gt;map.add(identifyLayer);&lt;/P&gt;&lt;P&gt;var view = new MapView({&lt;BR /&gt;map: map,&lt;BR /&gt;container: "viewDiv",&lt;BR /&gt;center: [-117.23502, 34.23911],&lt;BR /&gt;zoom: 13&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;view.when(function () {&lt;BR /&gt;// executeIdentify() is called each time the view is clicked&lt;BR /&gt;view.on("click", executeIdentify);&lt;/P&gt;&lt;P&gt;// Set the parameters for the identify&lt;BR /&gt;params = new IdentifyParameters();&lt;BR /&gt;params.tolerance = 3;&lt;BR /&gt;params.layerIds = [0, 1, 2, 3, 4];&lt;BR /&gt;params.layerOption = "All";&lt;BR /&gt;params.width = view.width;&lt;BR /&gt;params.height = view.height;&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;// Executes each time the view is clicked&lt;BR /&gt;function executeIdentify(event) {&lt;BR /&gt;// Set the geometry to the location of the view click&lt;BR /&gt;params.geometry = event.mapPoint;&lt;BR /&gt;params.mapExtent = view.extent;&lt;BR /&gt;document.getElementById("viewDiv").style.cursor = "wait";&lt;/P&gt;&lt;P&gt;// This function returns a promise that resolves to an array of features&lt;BR /&gt;// A custom popupTemplate is set for each feature based on the layer it&lt;BR /&gt;// originates from&lt;BR /&gt;identify&lt;BR /&gt;.identify(identifyURL, params)&lt;BR /&gt;.then(function (response) {&lt;BR /&gt;var results = response.results;&lt;/P&gt;&lt;P&gt;return results.map(function (result) {&lt;BR /&gt;var feature = result.feature;&lt;BR /&gt;var layerName = result.layerName;&lt;/P&gt;&lt;P&gt;feature.attributes.layerName = layerName;&lt;BR /&gt;&amp;nbsp;if (layerName === "Landuse") {&lt;BR /&gt;feature.popupTemplate = {&lt;BR /&gt;// autocasts as new PopupTemplate()&lt;BR /&gt;title: layerName,&lt;BR /&gt;content:&lt;BR /&gt;"&amp;lt;b&amp;gt;Block ID:&amp;lt;/b&amp;gt; {BLOCK_ID} " +&lt;BR /&gt;"&amp;lt;br&amp;gt;&amp;lt;b&amp;gt;Geometry Type:&amp;lt;/b&amp;gt; {Shape}" +&lt;BR /&gt;"&amp;lt;br&amp;gt;&amp;lt;b&amp;gt;Landuse Area:&amp;lt;/b&amp;gt; {Shape_Area}"+&lt;BR /&gt;"&amp;lt;br&amp;gt;&lt;FONT size="6" color="#FF9900"&gt;&lt;STRONG&gt;&amp;lt;label for=rdComp &amp;gt;اسم الشركة&amp;lt;/label&amp;gt;&amp;lt;input type=radio id= rdComp name=rdGroup value=Comp checked=checked&amp;gt;&amp;lt;/&amp;gt;&amp;lt;br&amp;gt;"&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;};&lt;BR /&gt;}&amp;nbsp;&lt;BR /&gt;}&lt;BR /&gt;return feature;&lt;BR /&gt;});&lt;BR /&gt;})&lt;BR /&gt;.then(showPopup); // Send the array of features to showPopup()&lt;/P&gt;&lt;P&gt;// Shows the results of the identify in a popup once the promise is resolved&lt;BR /&gt;function showPopup(response) {&lt;BR /&gt;if (response.length &amp;gt; 0) {&lt;BR /&gt;view.popup.open({&lt;BR /&gt;features: response,&lt;BR /&gt;location: event.mapPoint&lt;BR /&gt;});&lt;BR /&gt;}&lt;BR /&gt;document.getElementById("viewDiv").style.cursor = "auto";&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;});&lt;BR /&gt;&amp;lt;/script&amp;gt;&lt;BR /&gt;&amp;lt;/head&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;body&amp;gt;&lt;BR /&gt;&amp;lt;div id="viewDiv"&amp;gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;lt;/body&amp;gt;&lt;BR /&gt;&amp;lt;/html&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dear All i want to add radio button inside a popup.i have successfully add this button in 3.4.But i cant add this in 4.23.Please help me to solve this issue.When i run the identify tool i just see label but no radio button.please help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Sun, 22 May 2022 08:57:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/radio-button-inside-pup-window/m-p/1176216#M77422</guid>
      <dc:creator>NadirHussain</dc:creator>
      <dc:date>2022-05-22T08:57:55Z</dc:date>
    </item>
    <item>
      <title>Re: Radio Button inside Pup Window</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/radio-button-inside-pup-window/m-p/1176229#M77423</link>
      <description>&lt;P&gt;i have solved this issue.&lt;/P&gt;&lt;P&gt;if you return div not string the readio button will be display.&lt;/P&gt;&lt;P&gt;like fallowing script&lt;/P&gt;&lt;P&gt;var div=&amp;nbsp;&lt;SPAN class=""&gt;document&lt;/SPAN&gt;.&lt;SPAN class=""&gt;createElement&lt;/SPAN&gt;(&lt;SPAN class=""&gt;"div"&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;div.innerHTML=HTML String;&lt;/P&gt;&lt;PRE&gt;&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 22 May 2022 11:43:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/radio-button-inside-pup-window/m-p/1176229#M77423</guid>
      <dc:creator>NadirHussain</dc:creator>
      <dc:date>2022-05-22T11:43:26Z</dc:date>
    </item>
  </channel>
</rss>

