<?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: Using graphic with featureForm in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-graphic-with-featureform/m-p/1668726#M87914</link>
    <description>&lt;P&gt;Thank you Joel (and sorry for the long response time, distracted with other things).&amp;nbsp;&lt;/P&gt;&lt;P&gt;Setting graphic.sourceLayer has done what I need (whilst setting graphic.layer seems to have no affect).&lt;/P&gt;&lt;P&gt;This has saved me trying to transfer subtype/contingent value information to my temporary edits layer, which now thankfully can be dispensed with!&lt;/P&gt;</description>
    <pubDate>Wed, 26 Nov 2025 09:35:26 GMT</pubDate>
    <dc:creator>AndyFairbairn</dc:creator>
    <dc:date>2025-11-26T09:35:26Z</dc:date>
    <item>
      <title>Using graphic with featureForm</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-graphic-with-featureform/m-p/1651549#M87630</link>
      <description>&lt;P&gt;Hello, I'm looking for some advice for using a graphic with a featureForm in a widget I'm developing please.&lt;/P&gt;&lt;P&gt;The &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm.html#properties-summary" target="_blank" rel="noopener"&gt;featureForm documentation&lt;/A&gt; says that you can use a graphic as the featureForm.feature property, but I have not been able to get the form to display if I use a graphic. What are the requirements for a graphic for the form to display?&lt;/P&gt;&lt;P&gt;The background is that I'm trying to replicate behaviour in the Edit widget, where a graphic? is created and then you can set the attributes in a form, so the user gets the option to save or discard before a feature is actually saved to the layer.&amp;nbsp; All the featureForm samples I've looked at use features that have already been saved in a layer.&lt;/P&gt;&lt;P&gt;In my case I'm creating a geometry by copy/union features in other layers, putting that geometry in graphic to display on the map (using the default graphics layer). I would like to use the graphic with the feature form, but I haven't been able to get it to display - I've tried adding attributes, falsely associating the graphic with the target layer via its layer property, wrapping in a feature, etc.&lt;/P&gt;&lt;P&gt;As a work around I'm creating a temporary featureLayer for editing (copying fields etc. from my target layer), saving the graphic to the temporary featureLayer, and then querying the temporary layer to get a feature for featureForm.feature (which can then be discarded or saved to the target layer). Whilst this works ok, doesn't seem like the best solution!&lt;/P&gt;&lt;P&gt;Thanks for any help.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Sep 2025 17:07:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-graphic-with-featureform/m-p/1651549#M87630</guid>
      <dc:creator>AndyFairbairn</dc:creator>
      <dc:date>2025-09-18T17:07:49Z</dc:date>
    </item>
    <item>
      <title>Re: Using graphic with featureForm</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-graphic-with-featureform/m-p/1654994#M87689</link>
      <description>&lt;P&gt;You said "&lt;SPAN&gt;I've tried [...] falsely associating the graphic with the target layer via its layer property", so I assume you have something like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;graphic.layer = layer;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Perhaps try with this additional line:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;graphic.layer = layer;
graphic.sourceLayer = layer;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note that sourceLayer is an undocumented property, and could be changed or removed in a future release without notice, so use at your own risk.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Oct 2025 20:14:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-graphic-with-featureform/m-p/1654994#M87689</guid>
      <dc:creator>JoelBennett</dc:creator>
      <dc:date>2025-10-02T20:14:03Z</dc:date>
    </item>
    <item>
      <title>Re: Using graphic with featureForm</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-graphic-with-featureform/m-p/1668726#M87914</link>
      <description>&lt;P&gt;Thank you Joel (and sorry for the long response time, distracted with other things).&amp;nbsp;&lt;/P&gt;&lt;P&gt;Setting graphic.sourceLayer has done what I need (whilst setting graphic.layer seems to have no affect).&lt;/P&gt;&lt;P&gt;This has saved me trying to transfer subtype/contingent value information to my temporary edits layer, which now thankfully can be dispensed with!&lt;/P&gt;</description>
      <pubDate>Wed, 26 Nov 2025 09:35:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-graphic-with-featureform/m-p/1668726#M87914</guid>
      <dc:creator>AndyFairbairn</dc:creator>
      <dc:date>2025-11-26T09:35:26Z</dc:date>
    </item>
  </channel>
</rss>

