<?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 Editor Widget Text Area Inputs in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/editor-widget-text-area-inputs/m-p/1118964#M75362</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I’m working in API V 4.20. I’m trying to make a &lt;STRONG&gt;text-area&lt;/STRONG&gt; input in the Editor Widget. I currently have this implemented using the (editorType : “text-area”) property, but I’m experiencing some behavior I don’t understand. I get a text area field, but it will only expand horizontally when grabbing the handle shown below.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dcarson1661_0-1637367052872.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/27973iCEAC459102801DBF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dcarson1661_0-1637367052872.png" alt="dcarson1661_0-1637367052872.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I noticed that the editorType property has been deprecated, but I have not been able to achieve the same effect using the suggested workflow below. Does anyone know how to allow the text area to expand vertically as well? Or how to implement TextAreaInput?&lt;/P&gt;&lt;P&gt;Thank You!&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm-FieldConfig.html" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm-FieldConfig.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;“editorType&amp;nbsp;&lt;A href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String" target="_blank"&gt;String&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Since:&amp;nbsp;ArcGIS API for JavaScript 4.10&lt;/P&gt;&lt;P&gt;Deprecated&amp;nbsp;since version 4.16&lt;/P&gt;&lt;P&gt;The type of editor to use for&amp;nbsp;string&amp;nbsp;field types. Possible values are in the table below. The preferred way to set the editor type is via&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-form-elements-inputs-TextAreaInput.html" target="_blank"&gt;TextAreaInput&lt;/A&gt;&amp;nbsp;or&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-form-elements-inputs-TextBoxInput.html" target="_blank"&gt;TextBoxInput&lt;/A&gt;&amp;nbsp;classes set within the&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-form-elements-FieldElement.html" target="_blank"&gt;field element&lt;/A&gt;&amp;nbsp;of a FeatureForm's&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm.html#formTemplate" target="_blank"&gt;template&lt;/A&gt;.”&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my current Editor Widget&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;          // Edit widget
          const editor = new Editor({
          view: view,
          container: "sidePanel",
          allowedWorkflows: ['create','update'],
          layerInfos: [{
            layer: 'layer,
            fieldConfig: [
              {
            name: "LOCATION",
            label: "Location",
            editorType: "text-area"
            }
      ],
      deleteEnabled: false 
          }]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 20 Nov 2021 00:16:25 GMT</pubDate>
    <dc:creator>dcarson1661</dc:creator>
    <dc:date>2021-11-20T00:16:25Z</dc:date>
    <item>
      <title>Editor Widget Text Area Inputs</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/editor-widget-text-area-inputs/m-p/1118964#M75362</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I’m working in API V 4.20. I’m trying to make a &lt;STRONG&gt;text-area&lt;/STRONG&gt; input in the Editor Widget. I currently have this implemented using the (editorType : “text-area”) property, but I’m experiencing some behavior I don’t understand. I get a text area field, but it will only expand horizontally when grabbing the handle shown below.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dcarson1661_0-1637367052872.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/27973iCEAC459102801DBF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dcarson1661_0-1637367052872.png" alt="dcarson1661_0-1637367052872.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I noticed that the editorType property has been deprecated, but I have not been able to achieve the same effect using the suggested workflow below. Does anyone know how to allow the text area to expand vertically as well? Or how to implement TextAreaInput?&lt;/P&gt;&lt;P&gt;Thank You!&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm-FieldConfig.html" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm-FieldConfig.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;“editorType&amp;nbsp;&lt;A href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String" target="_blank"&gt;String&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Since:&amp;nbsp;ArcGIS API for JavaScript 4.10&lt;/P&gt;&lt;P&gt;Deprecated&amp;nbsp;since version 4.16&lt;/P&gt;&lt;P&gt;The type of editor to use for&amp;nbsp;string&amp;nbsp;field types. Possible values are in the table below. The preferred way to set the editor type is via&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-form-elements-inputs-TextAreaInput.html" target="_blank"&gt;TextAreaInput&lt;/A&gt;&amp;nbsp;or&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-form-elements-inputs-TextBoxInput.html" target="_blank"&gt;TextBoxInput&lt;/A&gt;&amp;nbsp;classes set within the&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-form-elements-FieldElement.html" target="_blank"&gt;field element&lt;/A&gt;&amp;nbsp;of a FeatureForm's&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm.html#formTemplate" target="_blank"&gt;template&lt;/A&gt;.”&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my current Editor Widget&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;          // Edit widget
          const editor = new Editor({
          view: view,
          container: "sidePanel",
          allowedWorkflows: ['create','update'],
          layerInfos: [{
            layer: 'layer,
            fieldConfig: [
              {
            name: "LOCATION",
            label: "Location",
            editorType: "text-area"
            }
      ],
      deleteEnabled: false 
          }]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 20 Nov 2021 00:16:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/editor-widget-text-area-inputs/m-p/1118964#M75362</guid>
      <dc:creator>dcarson1661</dc:creator>
      <dc:date>2021-11-20T00:16:25Z</dc:date>
    </item>
    <item>
      <title>Re: Editor Widget Text Area Inputs</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/editor-widget-text-area-inputs/m-p/1119257#M75373</link>
      <description>&lt;P&gt;When I setup my Editor at 4.20, I'm using the 'stringFieldOption' attribute to set the field type to "text-area", which I think predetermines the editor to adjust to it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;editor = new Editor({
    view: view,
    allowedWorkflows: ["update"], // allows only updates and no adds
    layerInfos: [{
        layer: busStopLayer,
        fieldConfig: [
        {
            label: "Location",
            initialState: "collapsed",
            description: "General location information",
            fieldConfig: [
                { name: "Location", label: "Location" },
                { name: "Owner", label: "Owner" }
            ]
        },
        {
            label: "Structure",
            initialState: "collapsed",
            description: "Information about the bus stop",
            fieldConfig: [
                { name: "StopType", label: "Type of Stop" },
                { name: "Condition", label: "Condition Assesment" },
                { name: "ConditionDate", label: "Date of Condition Assessment", formatter: formatTimestamp },
                { name: "Comments", label: "Add any general comments", stringFieldOption: "text-area" }
             ]
        },
        enabled: true
    }],
    container: "editDiv",
});
view.ui.add("editDiv", { position: "top-right", index: 2 });&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Nov 2021 18:00:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/editor-widget-text-area-inputs/m-p/1119257#M75373</guid>
      <dc:creator>JeffreyWilkerson</dc:creator>
      <dc:date>2021-11-22T18:00:22Z</dc:date>
    </item>
    <item>
      <title>Re: Editor Widget Text Area Inputs</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/editor-widget-text-area-inputs/m-p/1119567#M75377</link>
      <description>&lt;P&gt;I got this figured out. Adding the below to my CSS allowed for resizing in both directions.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="css"&gt;        .esri-feature-form__input {
        resize: both !important;
        }&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 23 Nov 2021 16:08:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/editor-widget-text-area-inputs/m-p/1119567#M75377</guid>
      <dc:creator>dcarson1661</dc:creator>
      <dc:date>2021-11-23T16:08:06Z</dc:date>
    </item>
  </channel>
</rss>

