<?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 validate a field in web app builder in ArcGIS Web AppBuilder Questions</title>
    <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/validate-a-field-in-web-app-builder/m-p/134825#M3835</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i'm using smart editor widget in web app builder and when user entering a field called SIC_ID and we don't want to allow him to enter wrong number, which was not in database&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we published SIC&amp;nbsp; table along with other tables in feature service.&amp;nbsp; how to validate when user entered SIC_ID,,,,,,how to verify do we have that ID in SIC table,............ if it's true then no error, otherwise throw an alert or ! symbol ...indicating SIC_ID is invalid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can this be done in web app builder?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/235058"&gt;Andres Castillo&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Sep 2018 16:04:50 GMT</pubDate>
    <dc:creator>Pa_Lotus</dc:creator>
    <dc:date>2018-09-17T16:04:50Z</dc:date>
    <item>
      <title>validate a field in web app builder</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/validate-a-field-in-web-app-builder/m-p/134825#M3835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i'm using smart editor widget in web app builder and when user entering a field called SIC_ID and we don't want to allow him to enter wrong number, which was not in database&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we published SIC&amp;nbsp; table along with other tables in feature service.&amp;nbsp; how to validate when user entered SIC_ID,,,,,,how to verify do we have that ID in SIC table,............ if it's true then no error, otherwise throw an alert or ! symbol ...indicating SIC_ID is invalid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can this be done in web app builder?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/235058"&gt;Andres Castillo&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2018 16:04:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/validate-a-field-in-web-app-builder/m-p/134825#M3835</guid>
      <dc:creator>Pa_Lotus</dc:creator>
      <dc:date>2018-09-17T16:04:50Z</dc:date>
    </item>
    <item>
      <title>Re: validate a field in web app builder</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/validate-a-field-in-web-app-builder/m-p/134826#M3836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;method 1:&lt;/P&gt;&lt;P&gt;Try adding a domain to the 'SIC_ID' field at the geodatabase level, and assign coded values to the domain for each ID that exists in your table.&lt;/P&gt;&lt;P&gt;If you have a lot of ID's, this task might get done faster by using the batch mode of the 'add coded value to domain' tool.&lt;/P&gt;&lt;P&gt;In WAB, this should force the user to pick the ID from the drop-down of coded values.&lt;/P&gt;&lt;P&gt;Let me know if this works to see if we use a different strategy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;method 2:&lt;/P&gt;&lt;P&gt;Is the table that contains the 'SIC_ID' field a feature class, or non-spatial table?&lt;/P&gt;&lt;P&gt;If you can make it a feature class, you can use the attribute actions (command of the smart editor widget)&amp;nbsp;on the fc the user is inputting an ID field to copy over the 'SIC_ID' field into the user's ID field, based on an intersect between the two feature classes&amp;nbsp;within approximately 10ft.&lt;/P&gt;&lt;P&gt;For this to work, you will add the specific index of the map service (for example, &lt;A href="http://...../mapserver/2"&gt;http://...../mapserver/2&lt;/A&gt;, rather than &lt;A href="http://.../mapserver"&gt;http://.../mapserver&lt;/A&gt;) &amp;nbsp;to the web map, so that the widget can read the layer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;method 3:&lt;/P&gt;&lt;P&gt;See the Reviewer dashboard widget.&lt;/P&gt;&lt;P&gt;&lt;A href="https://doc.arcgis.com/en/web-appbuilder/create-apps/widget-reviewer-dashboard.htm"&gt;https://doc.arcgis.com/en/web-appbuilder/create-apps/widget-reviewer-dashboard.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I personally have not used this, but might be helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Sep 2018 15:47:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/validate-a-field-in-web-app-builder/m-p/134826#M3836</guid>
      <dc:creator>AndresCastillo</dc:creator>
      <dc:date>2018-09-18T15:47:58Z</dc:date>
    </item>
  </channel>
</rss>

