{"id":1809442,"date":"2023-05-02T07:37:35","date_gmt":"2023-05-02T14:37:35","guid":{"rendered":"https:\/\/www.esri.com\/arcgis-blog\/?post_type=blog&#038;p=1809442"},"modified":"2025-06-18T15:56:23","modified_gmt":"2025-06-18T22:56:23","slug":"go-beyond-the-smart-editor-using-smart-forms","status":"publish","type":"blog","link":"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-online\/mapping\/go-beyond-the-smart-editor-using-smart-forms","title":{"rendered":"Go Beyond the Smart Editor using Smart Forms"},"author":9772,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"_acf_changed":false,"_searchwp_excluded":""},"categories":[23341,23851,22941],"tags":[32551,766432,764152,760862,317872],"industry":[],"product":[400032,36551,36631],"class_list":["post-1809442","blog","type-blog","status-publish","format-standard","hentry","category-analytics","category-data-management","category-mapping","tag-arcade","tag-calculate-field","tag-form-calculations","tag-smart-editor","tag-smart-forms","product-experience-builder","product-arcgis-online","product-web-appbuilder"],"acf":{"authors":[{"ID":9772,"user_firstname":"Alix","user_lastname":"Vezina","nickname":"Alix Vezina","user_nicename":"avezina","display_name":"Alix V\u00e9zina","user_email":"avezina@esri.com","user_url":"","user_registered":"2019-07-19 18:00:55","user_description":"Alix is a product engineer in web development at Esri, where she delivers innovative web mapping tools for various industries. She\u2019s passionate about customer success and combines her knowledge with practical experience to help solve problems and empower others to develop impactful applications that provide essential functionality.","user_avatar":"<img data-del=\"avatar\" src='https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2019\/07\/Alix-Vezina-Prefered-213x200.jpg' class='avatar pp-user-avatar avatar-96 photo ' height='96' width='96'\/>"}],"short_description":"Some things you couldn't do with the Smart Editor widget, but you can now do with Forms.","flexible_content":[{"acf_fc_layout":"content","content":"<blockquote><p><strong>In this blog, we use Forms to explore new functionality. If you&#8217;re looking for ways to replicate the Web AppBuilder Smart Editor functionality in your new applications, check out <a href=\"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-online\/mapping\/from-the-smart-editor-to-smart-forms\/\" target=\"_blank\" rel=\"noopener\">From the Smart Editor to Smart Forms<\/a>.<\/strong><\/p><\/blockquote>\n<p>Over the years, we have received many enhancement requests for the <a href=\"https:\/\/doc.arcgis.com\/en\/web-appbuilder\/latest\/create-apps\/widget-smart-editor.htm\" target=\"_blank\" rel=\"noopener\">Smart Editor widget<\/a>, such as the ability to calculate statistics and geometries, and even to generate text values.<\/p>\n<p>While we were able to implement <a href=\"https:\/\/community.esri.com\/t5\/arcgis-web-appbuilder-blog\/the-smart-editor-widget-a-few-years-in-review\/ba-p\/1066169\" target=\"_blank\" rel=\"noopener\">several requests<\/a>, some functionality may now be available in <a href=\"https:\/\/doc.arcgis.com\/en\/arcgis-online\/create-maps\/create-form-mv.htm\" target=\"_blank\" rel=\"noopener\">Forms<\/a> using <a href=\"https:\/\/doc.arcgis.com\/en\/arcgis-online\/create-maps\/create-form-mv.htm#:~:text=Add%20expressions%20to%20calculate%20field%20values\" target=\"_blank\" rel=\"noopener\">Calculated expressions<\/a>\u00a0and the\u00a0<a href=\"https:\/\/developers.arcgis.com\/arcade\/\">Arcade<\/a> scripting language.<\/p>\n<p>Use the Editor widget with Forms to improve your editing experiences and automatically calculate attributes. This widget is available in\u00a0<a href=\"https:\/\/doc.arcgis.com\/en\/arcgis-online\/get-started\/get-started-with-mv.htm\" target=\"_blank\" rel=\"noopener\">Map Viewer<\/a>\u00a0and app builders such as <a href=\"https:\/\/www.esri.com\/en-us\/arcgis\/products\/arcgis-experience-builder\/overview\" target=\"_blank\" rel=\"noopener\">Experience Builder<\/a> and\u00a0<a href=\"https:\/\/www.esri.com\/en-us\/arcgis\/products\/arcgis-instant-apps\/overview\" target=\"_blank\" rel=\"noopener\">Instant Apps<\/a>.<\/p>\n<p>To build Forms in Map Viewer, all you need is an editable layer. If this is your first time, read\u00a0<strong><a href=\"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-online\/mapping\/smart-forms-arent-just-for-field-maps-anymore\" target=\"_blank\" rel=\"noopener\">this blog<\/a><\/strong>\u00a0to get started.<\/p>\n<p>Below are examples of the most popular requests, along with <a href=\"https:\/\/www.arcgis.com\/apps\/mapviewer\/index.html?webmap=1ef305d05c00437aa093732d9808f693\" target=\"_blank\" rel=\"noopener\">a sample web map<\/a> to help you get started:<\/p>\n<ul>\n<li><a href=\"#Calculate-statistics\">Calculate statistics<\/a><\/li>\n<li><a href=\"#Generate-text-values\">Generate text values<\/a><\/li>\n<li><a href=\"#Calculate-values-based-on-other-field-values\">Calculate values based on other field values<\/a><\/li>\n<li><a href=\"#Generate-sequential-values\">Generate sequential values<\/a><\/li>\n<li><a href=\"#Generate-random-values\">Generate random values<\/a><\/li>\n<\/ul>\n"},{"acf_fc_layout":"image","image":{"ID":1922692,"id":1922692,"title":"Sample web map example","filename":"Editor_calculationsPreview.gif","filesize":7850911,"url":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/04\/Editor_calculationsPreview.gif","link":"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-online\/mapping\/go-beyond-the-smart-editor-using-smart-forms\/editor_calculationspreview","alt":"Use Calculated expressions and the Arcade scripting language in Forms to calculate values automatically when editing features","author":"9772","description":"Use Calculated expressions and the Arcade scripting language in Smart Forms to calculate values automatically when editing features","caption":"Use Calculated expressions and the Arcade scripting language in Forms to calculate values automatically when editing features","name":"editor_calculationspreview","status":"inherit","uploaded_to":1809442,"date":"2023-05-02 00:01:19","modified":"2025-06-18 22:49:35","menu_order":0,"mime_type":"image\/gif","type":"image","subtype":"gif","icon":"https:\/\/www.esri.com\/arcgis-blog\/wp-includes\/images\/media\/default.png","width":1312,"height":772,"sizes":{"thumbnail":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/04\/Editor_calculationsPreview-213x200.gif","thumbnail-width":213,"thumbnail-height":200,"medium":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/04\/Editor_calculationsPreview.gif","medium-width":444,"medium-height":261,"medium_large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/04\/Editor_calculationsPreview.gif","medium_large-width":768,"medium_large-height":452,"large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/04\/Editor_calculationsPreview.gif","large-width":1312,"large-height":772,"1536x1536":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/04\/Editor_calculationsPreview.gif","1536x1536-width":1312,"1536x1536-height":772,"2048x2048":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/04\/Editor_calculationsPreview.gif","2048x2048-width":1312,"2048x2048-height":772,"card_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/04\/Editor_calculationsPreview-790x465.gif","card_image-width":790,"card_image-height":465,"wide_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/04\/Editor_calculationsPreview.gif","wide_image-width":1312,"wide_image-height":772}},"image_position":"center","orientation":"horizontal","hyperlink":""},{"acf_fc_layout":"content","content":"<p>&nbsp;<\/p>\n<h2 id=\"Calculate-statistics\"><strong>Calculate statistics<\/strong><\/h2>\n<p>Use Arcade functions to calculate statistical values such as the feature&#8217;s <a href=\"https:\/\/developers.arcgis.com\/arcade\/function-reference\/geometry_functions\/#areageodetic\" target=\"_blank\" rel=\"noopener\">area<\/a>, <a href=\"https:\/\/developers.arcgis.com\/arcade\/function-reference\/geometry_functions\/#lengthgeodetic\" target=\"_blank\" rel=\"noopener\">length<\/a>, and even the <a href=\"https:\/\/developers.arcgis.com\/arcade\/function-reference\/geometry_functions\/#distancegeodetic\" target=\"_blank\" rel=\"noopener\">distance<\/a> between two features. Perform <a href=\"https:\/\/developers.arcgis.com\/arcade\/function-reference\/math_functions\/\" target=\"_blank\" rel=\"noopener\">mathematical operations<\/a> such as count, sum, min, max, and mean using features and values from other fields or other layers.<\/p>\n<h3>Count features<\/h3>\n<p><strong>Example<\/strong>: Count the number of customer address points intersecting with an edited polygon feature. See the <a href=\"https:\/\/www.arcgis.com\/apps\/mapviewer\/index.html?webmap=1ef305d05c00437aa093732d9808f693\" target=\"_blank\" rel=\"noopener\">sample web map<\/a>.<\/p>\n"},{"acf_fc_layout":"image","image":{"ID":1919412,"id":1919412,"title":"Count features","filename":"Statistics_Count.gif","filesize":1310440,"url":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/04\/Statistics_Count.gif","link":"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-online\/mapping\/go-beyond-the-smart-editor-using-smart-forms\/statistics_count","alt":"Draw a polygon feature on the map to get the number of intersecting address points for the area","author":"9772","description":"Draw a polygon feature on the map to get the number of intersecting address points for the area","caption":"Draw a polygon feature on the map to get the number of intersecting address points for the area","name":"statistics_count","status":"inherit","uploaded_to":1809442,"date":"2023-04-27 21:22:15","modified":"2023-04-28 20:16:12","menu_order":0,"mime_type":"image\/gif","type":"image","subtype":"gif","icon":"https:\/\/www.esri.com\/arcgis-blog\/wp-includes\/images\/media\/default.png","width":816,"height":410,"sizes":{"thumbnail":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/04\/Statistics_Count-213x200.gif","thumbnail-width":213,"thumbnail-height":200,"medium":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/04\/Statistics_Count.gif","medium-width":464,"medium-height":233,"medium_large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/04\/Statistics_Count.gif","medium_large-width":768,"medium_large-height":386,"large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/04\/Statistics_Count.gif","large-width":816,"large-height":410,"1536x1536":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/04\/Statistics_Count.gif","1536x1536-width":816,"1536x1536-height":410,"2048x2048":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/04\/Statistics_Count.gif","2048x2048-width":816,"2048x2048-height":410,"card_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/04\/Statistics_Count.gif","card_image-width":816,"card_image-height":410,"wide_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/04\/Statistics_Count.gif","wide_image-width":816,"wide_image-height":410}},"image_position":"center","orientation":"horizontal","hyperlink":""},{"acf_fc_layout":"content","content":"<details>\n<summary style=\"color: #0079c5;text-decoration: underline;cursor: pointer\"><strong>Click here to show the sample code<\/strong><\/summary>\n<p>Copy the code below to create your own Arcade calculated expressions:<\/p>\n<pre><code style=\"padding: 0.5em;color: #333;background: #f8f8f8\"><span style=\"color: #998;font-style: italic\">\/\/ Define the source layer to intersect<\/span>\r\n<span style=\"color: #9d49b5\">var<\/span> <span style=\"color: #007ac2\">sourceLayer<\/span> = <span style=\"color: #007ac2\">FeatureSetByName<\/span>(<span style=\"color: #007ac2\">$map<\/span>, <span style=\"color: #d83020\">\"Addresses\"<\/span>)\r\n<span style=\"color: #998;font-style: italic\">\/\/ Count the number of intersecting features from the source layer<\/span>\r\n<span style=\"color: #9d49b5\">var<\/span> <span style=\"color: #007ac2\">countFeatures<\/span> = <span style=\"color: #007ac2\">Count<\/span>(<span style=\"color: #007ac2\">Intersects<\/span>(<span style=\"color: #007ac2\">sourceLayer<\/span>,<span style=\"color: #007ac2\">$feature<\/span>))\r\n<span style=\"color: #998;font-style: italic\">\/\/ Return the value (number)<\/span>\r\n<span style=\"color: #9d49b5\">return<\/span> <span style=\"color: #007ac2\">countFeatures<\/span>\r\n<\/code><\/pre>\n<h3><strong><span style=\"text-decoration: underline\">\u00a0 \u00a0 \u00a0 \u00a0 \u00a0<\/span><\/strong><\/h3>\n<\/details>\n<p>&nbsp;<\/p>\n"},{"acf_fc_layout":"content","content":"<h3>Calculate an area<\/h3>\n<p><strong>Example<\/strong>: Calculate the total area in square feet for an edited polygon feature. See the <a href=\"https:\/\/www.arcgis.com\/apps\/mapviewer\/index.html?webmap=1ef305d05c00437aa093732d9808f693\" target=\"_blank\" rel=\"noopener\">sample web map<\/a>.<\/p>\n"},{"acf_fc_layout":"image","image":{"ID":1919452,"id":1919452,"title":"Calculate an area","filename":"Statistics_Area.gif","filesize":1549160,"url":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/04\/Statistics_Area.gif","link":"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-online\/mapping\/go-beyond-the-smart-editor-using-smart-forms\/statistics_area","alt":"Draw a polygon feature on the map to get its total area in square feet","author":"9772","description":"Draw a polygon feature on the map to get its total area in square feet","caption":"Draw a polygon feature on the map to get its total area in square feet","name":"statistics_area","status":"inherit","uploaded_to":1809442,"date":"2023-04-27 21:30:11","modified":"2023-04-28 20:16:24","menu_order":0,"mime_type":"image\/gif","type":"image","subtype":"gif","icon":"https:\/\/www.esri.com\/arcgis-blog\/wp-includes\/images\/media\/default.png","width":820,"height":408,"sizes":{"thumbnail":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/04\/Statistics_Area-213x200.gif","thumbnail-width":213,"thumbnail-height":200,"medium":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/04\/Statistics_Area.gif","medium-width":464,"medium-height":231,"medium_large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/04\/Statistics_Area.gif","medium_large-width":768,"medium_large-height":382,"large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/04\/Statistics_Area.gif","large-width":820,"large-height":408,"1536x1536":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/04\/Statistics_Area.gif","1536x1536-width":820,"1536x1536-height":408,"2048x2048":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/04\/Statistics_Area.gif","2048x2048-width":820,"2048x2048-height":408,"card_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/04\/Statistics_Area.gif","card_image-width":820,"card_image-height":408,"wide_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/04\/Statistics_Area.gif","wide_image-width":820,"wide_image-height":408}},"image_position":"center","orientation":"horizontal","hyperlink":""},{"acf_fc_layout":"content","content":"<details>\n<summary style=\"color: #0079c5;text-decoration: underline;cursor: pointer\"><strong>Click here to show the sample code<\/strong><\/summary>\n<p>Copy the code below to create your own Arcade calculated expressions:<\/p>\n<pre><code style=\"padding: 0.5em;color: #333;background: #f8f8f8\"><span style=\"color: #998;font-style: italic\">\/\/ Return the geodetic area for a polygon feature in the given units,\r\n\/\/ and round to 0 decimals<\/span>\r\n<span style=\"color: #007ac2\">Round(AreaGeodetic<\/span>(<span style=\"color: #007ac2\">$feature<\/span>, <span style=\"color: #d83020\">'square-feet'<\/span>),<span style=\"color: #007ac2\">0)<\/span><\/code><\/pre>\n<h3><strong><span style=\"text-decoration: underline\">\u00a0 \u00a0 \u00a0 \u00a0 \u00a0<\/span><\/strong><\/h3>\n<\/details>\n<p>&nbsp;<\/p>\n"},{"acf_fc_layout":"image","image":{"ID":1892542,"id":1892542,"title":"divider","filename":"divider1.png","filesize":780125,"url":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/03\/divider1.png","link":"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-online\/mapping\/go-beyond-the-smart-editor-using-smart-forms\/divider1","alt":"","author":"9772","description":"","caption":"","name":"divider1","status":"inherit","uploaded_to":1809442,"date":"2023-03-31 16:51:39","modified":"2023-03-31 16:51:50","menu_order":0,"mime_type":"image\/png","type":"image","subtype":"png","icon":"https:\/\/www.esri.com\/arcgis-blog\/wp-includes\/images\/media\/default.png","width":3732,"height":459,"sizes":{"thumbnail":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/03\/divider1-213x200.png","thumbnail-width":213,"thumbnail-height":200,"medium":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/03\/divider1.png","medium-width":464,"medium-height":57,"medium_large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/03\/divider1.png","medium_large-width":768,"medium_large-height":94,"large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/03\/divider1.png","large-width":1920,"large-height":236,"1536x1536":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/03\/divider1-1536x189.png","1536x1536-width":1536,"1536x1536-height":189,"2048x2048":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/03\/divider1-2048x252.png","2048x2048-width":2048,"2048x2048-height":252,"card_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/03\/divider1-826x102.png","card_image-width":826,"card_image-height":102,"wide_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/03\/divider1-1920x236.png","wide_image-width":1920,"wide_image-height":236}},"image_position":"center","orientation":"horizontal","hyperlink":""},{"acf_fc_layout":"content","content":"<h2 id=\"Generate-text-values\"><strong>Generate text values<\/strong><\/h2>\n<p>Use Arcade functions to generate new text values. Fetch attribute values from features intersecting with the feature you are editing using <a href=\"https:\/\/developers.arcgis.com\/arcade\/function-reference\/featureset_functions\/#intersects\" target=\"_blank\" rel=\"noopener\">Intersects<\/a>. Then, use the <a href=\"https:\/\/developers.arcgis.com\/arcade\/function-reference\/text_functions\/#concatenate\" target=\"_blank\" rel=\"noopener\">Concatenate<\/a> function to populate a field with these values.<\/p>\n<p><strong>Example: <\/strong>Get the names of all the public schools found within an edited polygon feature. See the <a href=\"https:\/\/www.arcgis.com\/apps\/mapviewer\/index.html?webmap=1ef305d05c00437aa093732d9808f693\" target=\"_blank\" rel=\"noopener\">sample web map<\/a>.<\/p>\n"},{"acf_fc_layout":"image","image":{"ID":1919492,"id":1919492,"title":"Generate text values","filename":"Text_Concatenate.gif","filesize":1642257,"url":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/04\/Text_Concatenate.gif","link":"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-online\/mapping\/go-beyond-the-smart-editor-using-smart-forms\/text_concatenate","alt":"Draw a polygon feature on the map and determine which schools can be found within the area","author":"9772","description":"Draw a polygon feature on the map and determine which schools can be found within the area","caption":"Draw a polygon feature on the map and determine which schools can be found within the area","name":"text_concatenate","status":"inherit","uploaded_to":1809442,"date":"2023-04-27 21:39:17","modified":"2023-04-28 20:17:14","menu_order":0,"mime_type":"image\/gif","type":"image","subtype":"gif","icon":"https:\/\/www.esri.com\/arcgis-blog\/wp-includes\/images\/media\/default.png","width":902,"height":398,"sizes":{"thumbnail":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/04\/Text_Concatenate-213x200.gif","thumbnail-width":213,"thumbnail-height":200,"medium":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/04\/Text_Concatenate.gif","medium-width":464,"medium-height":205,"medium_large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/04\/Text_Concatenate.gif","medium_large-width":768,"medium_large-height":339,"large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/04\/Text_Concatenate.gif","large-width":902,"large-height":398,"1536x1536":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/04\/Text_Concatenate.gif","1536x1536-width":902,"1536x1536-height":398,"2048x2048":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/04\/Text_Concatenate.gif","2048x2048-width":902,"2048x2048-height":398,"card_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/04\/Text_Concatenate-826x364.gif","card_image-width":826,"card_image-height":364,"wide_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/04\/Text_Concatenate.gif","wide_image-width":902,"wide_image-height":398}},"image_position":"center","orientation":"horizontal","hyperlink":""},{"acf_fc_layout":"content","content":"<details>\n<summary style=\"color: #0079c5;text-decoration: underline;cursor: pointer\"><strong>Click here to show the sample code<\/strong><\/summary>\n<p>Copy the code below to create your own Arcade calculated expressions:<\/p>\n<pre><code style=\"padding: 0.5em;color: #333;background: #f8f8f8\"><span style=\"color: #998\">\/\/ Define the source layer to fetch attribute values<\/span>\r\n<span style=\"color: #9d49b5\">var<\/span> <span style=\"color: #007ac2\">sourceLayer<\/span> = <span style=\"color: #007ac2\">FeatureSetByName<\/span>(<span style=\"color: #007ac2\">$map<\/span>, <span style=\"color: #d83020\">\"Public School Locations\"<\/span>)\r\n<span style=\"color: #998\">\/\/ Get the features contained in the current feature's boundaries<\/span>\r\n<span style=\"color: #9d49b5\">var<\/span> <span style=\"color: #007ac2\">attributeValues<\/span> = <span style=\"color: #007ac2\">Contains<\/span>(<span style=\"color: #007ac2\">$feature<\/span>, <span style=\"color: #007ac2\">sourceLayer<\/span>)\r\n<span style=\"color: #998\">\/\/ Loop through the features and get values for the field \"NAME\"<\/span>\r\n<span style=\"color: #9d49b5\">var<\/span> <span style=\"color: #007ac2\">valuesList<\/span> = <span style=\"color: #005cc5\">[]<\/span>\r\n<span style=\"color: #9d49b5\">for<\/span> (<span style=\"color: #9d49b5\">var<\/span> <span style=\"color: #007ac2\">f<\/span> <span style=\"color: #9d49b5\">in<\/span> <span style=\"color: #007ac2\">attributeValues<\/span>){\r\n    <span style=\"color: #007ac2\">Push<\/span>(<span style=\"color: #007ac2\">valuesList<\/span>, <span style=\"color: #007ac2\">f<\/span>.<span style=\"color: #007ac2\">NAME<\/span>)\r\n}\r\n<span style=\"color: #998\">\/\/ Return the list of values, separated by a comma<\/span>\r\n<span style=\"color: #9d49b5\">return<\/span> <span style=\"color: #007ac2\">Concatenate<\/span>(<span style=\"color: #007ac2\">valuesList<\/span>, <span style=\"color: #d83020\">', '<\/span>)\r\n<\/code><\/pre>\n<h3><strong><span style=\"text-decoration: underline\">\u00a0 \u00a0 \u00a0 \u00a0 \u00a0<\/span><\/strong><\/h3>\n<\/details>\n<p>&nbsp;<\/p>\n"},{"acf_fc_layout":"image","image":{"ID":1892542,"id":1892542,"title":"divider","filename":"divider1.png","filesize":780125,"url":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/03\/divider1.png","link":"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-online\/mapping\/go-beyond-the-smart-editor-using-smart-forms\/divider1","alt":"","author":"9772","description":"","caption":"","name":"divider1","status":"inherit","uploaded_to":1809442,"date":"2023-03-31 16:51:39","modified":"2023-03-31 16:51:50","menu_order":0,"mime_type":"image\/png","type":"image","subtype":"png","icon":"https:\/\/www.esri.com\/arcgis-blog\/wp-includes\/images\/media\/default.png","width":3732,"height":459,"sizes":{"thumbnail":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/03\/divider1-213x200.png","thumbnail-width":213,"thumbnail-height":200,"medium":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/03\/divider1.png","medium-width":464,"medium-height":57,"medium_large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/03\/divider1.png","medium_large-width":768,"medium_large-height":94,"large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/03\/divider1.png","large-width":1920,"large-height":236,"1536x1536":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/03\/divider1-1536x189.png","1536x1536-width":1536,"1536x1536-height":189,"2048x2048":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/03\/divider1-2048x252.png","2048x2048-width":2048,"2048x2048-height":252,"card_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/03\/divider1-826x102.png","card_image-width":826,"card_image-height":102,"wide_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/03\/divider1-1920x236.png","wide_image-width":1920,"wide_image-height":236}},"image_position":"center","orientation":"horizontal","hyperlink":""},{"acf_fc_layout":"content","content":"<h2 id=\"Calculate-values-based-on-other-field-values\"><strong>Calculate values based on other field values<\/strong><\/h2>\n<p>Use Arcade expressions to look up values from other fields within the same or another feature, and calculate new values accordingly.<\/p>\n<p><strong>Example<\/strong>: Look up the names of the schools within an edited polygon feature and specify with &#8216;Yes&#8217; or &#8216;No&#8217; if there is a high school. See the <a href=\"https:\/\/www.arcgis.com\/apps\/mapviewer\/index.html?webmap=1ef305d05c00437aa093732d9808f693\" target=\"_blank\" rel=\"noopener\">sample web map<\/a>.<\/p>\n"},{"acf_fc_layout":"image","image":{"ID":1919522,"id":1919522,"title":"Calculate values based on other field values","filename":"Text_calc.gif","filesize":1666327,"url":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/04\/Text_calc.gif","link":"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-online\/mapping\/go-beyond-the-smart-editor-using-smart-forms\/text_calc","alt":"Draw a polygon feature on the map and determine if there is a High School in this area","author":"9772","description":"Draw a polygon feature on the map and determine if there is a High School in this area","caption":"Draw a polygon feature on the map and determine if there is a High School in this area","name":"text_calc","status":"inherit","uploaded_to":1809442,"date":"2023-04-27 21:45:12","modified":"2023-04-28 20:17:57","menu_order":0,"mime_type":"image\/gif","type":"image","subtype":"gif","icon":"https:\/\/www.esri.com\/arcgis-blog\/wp-includes\/images\/media\/default.png","width":922,"height":518,"sizes":{"thumbnail":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/04\/Text_calc-213x200.gif","thumbnail-width":213,"thumbnail-height":200,"medium":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/04\/Text_calc.gif","medium-width":464,"medium-height":261,"medium_large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/04\/Text_calc.gif","medium_large-width":768,"medium_large-height":431,"large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/04\/Text_calc.gif","large-width":922,"large-height":518,"1536x1536":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/04\/Text_calc.gif","1536x1536-width":922,"1536x1536-height":518,"2048x2048":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/04\/Text_calc.gif","2048x2048-width":922,"2048x2048-height":518,"card_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/04\/Text_calc-826x465.gif","card_image-width":826,"card_image-height":465,"wide_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/04\/Text_calc.gif","wide_image-width":922,"wide_image-height":518}},"image_position":"center","orientation":"horizontal","hyperlink":""},{"acf_fc_layout":"content","content":"<details>\n<summary style=\"color: #0079c5;text-decoration: underline;cursor: pointer\"><strong>Click here to show the sample code<\/strong><\/summary>\n<p>Copy the code below to create your own Arcade calculated expressions:<\/p>\n<pre><code style=\"padding: 0.5em;color: #333;background: #f8f8f8\"><span style=\"color: #998\">\/\/ Define the text field to look up<\/span>\r\n<span style=\"color: #9d49b5\">var<\/span> <span style=\"color: #007ac2\">text_field<\/span> = <span style=\"color: #007ac2\">$feature<\/span>.<span style=\"color: #007ac2\">ConcatenateValues<\/span>\r\n<span style=\"color: #998\">  \/\/ Find the text value \"High\" within the text field \r\n<\/span><span style=\"color: #9d49b5\">if<\/span> (<span style=\"color: #007ac2\">Find<\/span>(<span style=\"color: #d83020\">\"High\", <\/span><span style=\"color: #007ac2\">text_field<\/span>, <span style=\"color: #4f7942\">0<\/span>)&gt;-<span style=\"color: #4f7942\">1<\/span>) {\r\n<span style=\"color: #998\">  \/\/ If the string value \"High\" can be found, return 'Yes'<\/span>\r\n<span style=\"color: #9d49b5\">  return<\/span> <span style=\"color: #d83020\">\"Yes\";<span style=\"color: #998\">  \r\n  \/\/ If the value \"High\" cannot be found, return 'No'\r\n<\/span><\/span>} <span style=\"color: #9d49b5\">else<\/span> {\r\n<span style=\"color: #9d49b5\">  return<\/span> <span style=\"color: #d83020\">\"No\";  <\/span>\r\n}\r\n<\/code><\/pre>\n<h3><strong><span style=\"text-decoration: underline\">\u00a0 \u00a0 \u00a0 \u00a0 \u00a0<\/span><\/strong><\/h3>\n<\/details>\n<p>&nbsp;<\/p>\n"},{"acf_fc_layout":"image","image":{"ID":1892542,"id":1892542,"title":"divider","filename":"divider1.png","filesize":780125,"url":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/03\/divider1.png","link":"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-online\/mapping\/go-beyond-the-smart-editor-using-smart-forms\/divider1","alt":"","author":"9772","description":"","caption":"","name":"divider1","status":"inherit","uploaded_to":1809442,"date":"2023-03-31 16:51:39","modified":"2023-03-31 16:51:50","menu_order":0,"mime_type":"image\/png","type":"image","subtype":"png","icon":"https:\/\/www.esri.com\/arcgis-blog\/wp-includes\/images\/media\/default.png","width":3732,"height":459,"sizes":{"thumbnail":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/03\/divider1-213x200.png","thumbnail-width":213,"thumbnail-height":200,"medium":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/03\/divider1.png","medium-width":464,"medium-height":57,"medium_large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/03\/divider1.png","medium_large-width":768,"medium_large-height":94,"large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/03\/divider1.png","large-width":1920,"large-height":236,"1536x1536":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/03\/divider1-1536x189.png","1536x1536-width":1536,"1536x1536-height":189,"2048x2048":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/03\/divider1-2048x252.png","2048x2048-width":2048,"2048x2048-height":252,"card_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/03\/divider1-826x102.png","card_image-width":826,"card_image-height":102,"wide_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/03\/divider1-1920x236.png","wide_image-width":1920,"wide_image-height":236}},"image_position":"center","orientation":"horizontal","hyperlink":""},{"acf_fc_layout":"content","content":"<h2 id=\"Generate-sequential-values\"><strong>Generate sequential values<\/strong><\/h2>\n<p>The <a href=\"https:\/\/developers.arcgis.com\/arcade\/function-reference\/enterprise_functions\/#nextsequencevalue\" target=\"_blank\" rel=\"noopener\">NextSequenceValue<\/a> function is only available for database attribute rule calculations with ArcGIS Enterprise. However, you can use Arcade functions in Forms to calculate the next number in a sequence based on the value for the latest created feature.<\/p>\n<p><strong>Example<\/strong>: Generate an identifier value by adding <strong>+1<\/strong> to the identifier value from the last created feature. In this case, the value is generated for a numerical field when the feature is created, but won&#8217;t be recalculated when the feature is updated. See the <a href=\"https:\/\/www.arcgis.com\/apps\/mapviewer\/index.html?webmap=1ef305d05c00437aa093732d9808f693\" target=\"_blank\" rel=\"noopener\">sample web map<\/a>.<\/p>\n"},{"acf_fc_layout":"image","image":{"ID":1922642,"id":1922642,"title":"Generate sequential values","filename":"Sequential_Num.gif","filesize":4614035,"url":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/04\/Sequential_Num.gif","link":"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-online\/mapping\/go-beyond-the-smart-editor-using-smart-forms\/sequential_num","alt":"Create a new polygon feature and get a sequential identifier value","author":"9772","description":"Create a new polygon feature and get a sequential identifier value","caption":"Create a new polygon feature and get a sequential identifier value","name":"sequential_num","status":"inherit","uploaded_to":1809442,"date":"2023-05-01 23:45:55","modified":"2023-05-01 23:46:41","menu_order":0,"mime_type":"image\/gif","type":"image","subtype":"gif","icon":"https:\/\/www.esri.com\/arcgis-blog\/wp-includes\/images\/media\/default.png","width":1458,"height":696,"sizes":{"thumbnail":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/04\/Sequential_Num-213x200.gif","thumbnail-width":213,"thumbnail-height":200,"medium":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/04\/Sequential_Num.gif","medium-width":464,"medium-height":221,"medium_large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/04\/Sequential_Num.gif","medium_large-width":768,"medium_large-height":367,"large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/04\/Sequential_Num.gif","large-width":1458,"large-height":696,"1536x1536":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/04\/Sequential_Num.gif","1536x1536-width":1458,"1536x1536-height":696,"2048x2048":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/04\/Sequential_Num.gif","2048x2048-width":1458,"2048x2048-height":696,"card_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/04\/Sequential_Num-826x394.gif","card_image-width":826,"card_image-height":394,"wide_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/04\/Sequential_Num.gif","wide_image-width":1458,"wide_image-height":696}},"image_position":"center","orientation":"horizontal","hyperlink":""},{"acf_fc_layout":"content","content":"<details>\n<summary style=\"color: #0079c5;text-decoration: underline;cursor: pointer\"><strong>Click here to show the sample code<\/strong><\/summary>\n<p>Copy the code below to create your own Arcade calculated expressions:<\/p>\n<blockquote><p><em>Note: This example only works when applied to a numerical field.<\/em><\/p><\/blockquote>\n<pre><code style=\"padding: 0.5em;color: #333;background: #f8f8f8\"><span style=\"color: #998\">\/\/ Define the edit context so the value is only calculated when the feature is created<\/span>\r\n<span style=\"color: #9d49b5\">if<\/span> (<span style=\"color: #007ac2\">$editContext<\/span>.<span style=\"color: #007ac2\">editType<\/span> == <span style=\"color: #d83020\">\"INSERT\"<\/span>) {\r\n<span style=\"color: #998\">  \/\/ Lookup the value for the last created feature\r\n<\/span><span style=\"color: #9d49b5\">  var<\/span> <span style=\"color: #007ac2\">last_feature<\/span> = <span style=\"color: #007ac2\">First<\/span>(<span style=\"color: #007ac2\">OrderBy<\/span>(<span style=\"color: #007ac2\">$layer<\/span>, <span style=\"color: #d83020\">'SequentialValue DESC'<\/span>));\r\n<span style=\"color: #998\">  \/\/ If the last value was empty write 1, otherwise add 1 to the value<\/span>\r\n<span style=\"color: #9d49b5\">  return<\/span> <span style=\"color: #007ac2\">IIf<\/span>(<span style=\"color: #007ac2\">IsEmpty<\/span>(<span style=\"color: #007ac2\">last_feature<\/span>), <span style=\"color: #007ac2\">1<\/span>, <span style=\"color: #007ac2\">last_feature<\/span>.<span style=\"color: #007ac2\">SequentialValue<\/span> + <span style=\"color: #4f7942\">1)<\/span>\r\n} <span style=\"color: #9d49b5\">else<\/span> {\r\n<span style=\"color: #998\">  \/\/ When the feature is updated, return the existing value in this field\r\n  \/\/ and do not calculate a new value<\/span>\r\n<span style=\"color: #007ac2\">  $feature<\/span>.<span style=\"color: #007ac2\">SequentialValue<\/span>\r\n}\r\n<\/code><\/pre>\n<h3><strong><span style=\"text-decoration: underline\">\u00a0 \u00a0 \u00a0 \u00a0 \u00a0<\/span><\/strong><\/h3>\n<\/details>\n<p>&nbsp;<\/p>\n"},{"acf_fc_layout":"content","content":"<blockquote><p><em>Use the <a href=\"https:\/\/developers.arcgis.com\/arcade\/profiles\/form-calculation\/#:~:text=$editcontext.editType\" target=\"_blank\" rel=\"noopener\">$editcontext.editType<\/a> variable to indicate whether the calculated expressions should be executed when the feature is created, updated, or deleted.<\/em><\/p><\/blockquote>\n"},{"acf_fc_layout":"image","image":{"ID":1892542,"id":1892542,"title":"divider","filename":"divider1.png","filesize":780125,"url":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/03\/divider1.png","link":"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-online\/mapping\/go-beyond-the-smart-editor-using-smart-forms\/divider1","alt":"","author":"9772","description":"","caption":"","name":"divider1","status":"inherit","uploaded_to":1809442,"date":"2023-03-31 16:51:39","modified":"2023-03-31 16:51:50","menu_order":0,"mime_type":"image\/png","type":"image","subtype":"png","icon":"https:\/\/www.esri.com\/arcgis-blog\/wp-includes\/images\/media\/default.png","width":3732,"height":459,"sizes":{"thumbnail":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/03\/divider1-213x200.png","thumbnail-width":213,"thumbnail-height":200,"medium":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/03\/divider1.png","medium-width":464,"medium-height":57,"medium_large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/03\/divider1.png","medium_large-width":768,"medium_large-height":94,"large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/03\/divider1.png","large-width":1920,"large-height":236,"1536x1536":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/03\/divider1-1536x189.png","1536x1536-width":1536,"1536x1536-height":189,"2048x2048":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/03\/divider1-2048x252.png","2048x2048-width":2048,"2048x2048-height":252,"card_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/03\/divider1-826x102.png","card_image-width":826,"card_image-height":102,"wide_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/03\/divider1-1920x236.png","wide_image-width":1920,"wide_image-height":236}},"image_position":"center","orientation":"horizontal","hyperlink":""},{"acf_fc_layout":"content","content":"<h2 id=\"Generate-random-values\"><strong>Generate random values<\/strong><\/h2>\n<p>Values between 0 and 1 can be generated <a href=\"https:\/\/developers.arcgis.com\/arcade\/function-reference\/math_functions\/#random\" target=\"_blank\" rel=\"noopener\">randomly<\/a> for a numerical or text field when a new feature is created.<\/p>\n<h3>Numerical value<\/h3>\n<p><strong>Example<\/strong>: Generate a random identifier value with 5 digits. In this case, the value is generated when the feature is created but will not be changed when the feature is updated. See the <a href=\"https:\/\/www.arcgis.com\/apps\/mapviewer\/index.html?webmap=1ef305d05c00437aa093732d9808f693\" target=\"_blank\" rel=\"noopener\">sample web map<\/a>.<\/p>\n"},{"acf_fc_layout":"image","image":{"ID":1922592,"id":1922592,"title":"Generate random numerical values","filename":"RandomValue_Num.gif","filesize":5602363,"url":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/04\/RandomValue_Num.gif","link":"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-online\/mapping\/go-beyond-the-smart-editor-using-smart-forms\/randomvalue_num","alt":"Create a new polygon feature and get a random numerical identifier value","author":"9772","description":"Create a new polygon feature and get a random numerical identifier value","caption":"Create a new polygon feature and get a random numerical identifier value","name":"randomvalue_num","status":"inherit","uploaded_to":1809442,"date":"2023-05-01 23:24:17","modified":"2023-05-01 23:25:05","menu_order":0,"mime_type":"image\/gif","type":"image","subtype":"gif","icon":"https:\/\/www.esri.com\/arcgis-blog\/wp-includes\/images\/media\/default.png","width":1482,"height":714,"sizes":{"thumbnail":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/04\/RandomValue_Num-213x200.gif","thumbnail-width":213,"thumbnail-height":200,"medium":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/04\/RandomValue_Num.gif","medium-width":464,"medium-height":224,"medium_large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/04\/RandomValue_Num.gif","medium_large-width":768,"medium_large-height":370,"large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/04\/RandomValue_Num.gif","large-width":1482,"large-height":714,"1536x1536":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/04\/RandomValue_Num.gif","1536x1536-width":1482,"1536x1536-height":714,"2048x2048":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/04\/RandomValue_Num.gif","2048x2048-width":1482,"2048x2048-height":714,"card_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/04\/RandomValue_Num-826x398.gif","card_image-width":826,"card_image-height":398,"wide_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/04\/RandomValue_Num.gif","wide_image-width":1482,"wide_image-height":714}},"image_position":"center","orientation":"horizontal","hyperlink":""},{"acf_fc_layout":"content","content":"<details>\n<summary style=\"color: #0079c5;text-decoration: underline;cursor: pointer\"><strong>Click here to show the sample code<\/strong><\/summary>\n<p>Copy the code below to create your own Arcade calculated expressions:<\/p>\n<pre><code style=\"padding: 0.5em;color: #333;background: #f8f8f8\"><span style=\"color: #6a737d\">\/\/ New function to generate a random number that must be above the value \"val\"<\/span>\r\n<span style=\"color: #9d49b5\">function<\/span> <span style=\"color: #007ac2\">random_above(val) {<\/span> \r\n  <span style=\"color: #6a737d\">\/\/ Generate a random number between 0 and 1<\/span>\r\n  <span style=\"color: #9d49b5\">var<\/span> <span style=\"color: #007ac2\">random_number<\/span> = <span style=\"color: #007ac2\">Random()<\/span>\r\n  <span style=\"color: #6a737d\">\/\/ If the number is below \"val\", generate a new random number<\/span>\r\n  <span style=\"color: #9d49b5\">if<\/span> (<span style=\"color: #007ac2\">random_number<\/span> &lt;= <span style=\"color: #007ac2\">val<\/span>) { \r\n    <span style=\"color: #9d49b5\">return<\/span> <span style=\"color: #007ac2\">random_above<\/span>(<span style=\"color: #007ac2\">val<\/span>) \r\n  }\r\n  <span style=\"color: #6a737d\">\/\/ If the number is above \"val\". multiply by 100,000 and remove decimals<\/span>\r\n  <span style=\"color: #9d49b5\">return<\/span> <span style=\"color: #007ac2\">Round(random_number<\/span> *<span style=\"color: #4f7942\">100000<\/span>, <span style=\"color: #4f7942\">0<\/span>)\r\n} \r\n<span style=\"color: #6a737d\">\/\/ Define the edit context so the value is only calculated when the feature is created<\/span>\r\n<span style=\"color: #6a737d\">\/\/ and return the result from the function \"random_above\" when \"val\"= 0.1<\/span>\r\n<span style=\"color: #9d49b5\">if<\/span> (<span style=\"color: #007ac2\">$editContext<\/span>.<span style=\"color: #007ac2\">editType<\/span> == <span style=\"color: #d83020\">\"INSERT\"<\/span> &amp;&amp; <span style=\"color: #007ac2\">$feature<\/span>.<span style=\"color: #007ac2\">RandomValue<\/span> == <span style=\"color: #007ac2\">null)<\/span> {\r\n  <span style=\"color: #9d49b5\">return<\/span> <span style=\"color: #007ac2\">random_above<\/span>(<span style=\"color: #4f7942\">0.1<\/span>) \r\n} <span style=\"color: #9d49b5\">else<\/span> { \r\n  <span style=\"color: #6a737d\">\/\/ When the feature is updated, return the existing value in this field<\/span>\r\n  <span style=\"color: #6a737d\">\/\/ and do not calculate a new random value<\/span>\r\n  <span style=\"color: #9d49b5\">return<\/span> <span style=\"color: #007ac2\">$feature<\/span>.<span style=\"color: #007ac2\">RandomValue<\/span>\r\n}\r\n<\/code><\/pre>\n<h3><strong><span style=\"text-decoration: underline\">\u00a0 \u00a0 \u00a0 \u00a0 \u00a0<\/span><\/strong><\/h3>\n<\/details>\n<p>&nbsp;<\/p>\n"},{"acf_fc_layout":"content","content":"<h3>Text value<\/h3>\n<p><strong>Example<\/strong>: Generate a text identifier value with a random 5-digit number and a prefix. In this case, the value is generated when the feature is created but will not be changed when the feature is updated. See <a href=\"https:\/\/www.arcgis.com\/apps\/mapviewer\/index.html?webmap=1ef305d05c00437aa093732d9808f693\" target=\"_blank\" rel=\"noopener\">sample web map<\/a>.<\/p>\n"},{"acf_fc_layout":"image","image":{"ID":1922622,"id":1922622,"title":"Generate a text value with a random number","filename":"RandomValue_Text.gif","filesize":4644884,"url":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/04\/RandomValue_Text.gif","link":"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-online\/mapping\/go-beyond-the-smart-editor-using-smart-forms\/randomvalue_text","alt":"Create a new polygon feature and get an identifier value with a prefix and a random number","author":"9772","description":"Create a new polygon feature and get an identifier value with a prefix and a random number","caption":"Create a new polygon feature and get an identifier value with a prefix and a random number","name":"randomvalue_text","status":"inherit","uploaded_to":1809442,"date":"2023-05-01 23:32:28","modified":"2023-05-01 23:34:12","menu_order":0,"mime_type":"image\/gif","type":"image","subtype":"gif","icon":"https:\/\/www.esri.com\/arcgis-blog\/wp-includes\/images\/media\/default.png","width":1472,"height":712,"sizes":{"thumbnail":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/04\/RandomValue_Text-213x200.gif","thumbnail-width":213,"thumbnail-height":200,"medium":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/04\/RandomValue_Text.gif","medium-width":464,"medium-height":224,"medium_large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/04\/RandomValue_Text.gif","medium_large-width":768,"medium_large-height":371,"large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/04\/RandomValue_Text.gif","large-width":1472,"large-height":712,"1536x1536":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/04\/RandomValue_Text.gif","1536x1536-width":1472,"1536x1536-height":712,"2048x2048":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/04\/RandomValue_Text.gif","2048x2048-width":1472,"2048x2048-height":712,"card_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/04\/RandomValue_Text-826x400.gif","card_image-width":826,"card_image-height":400,"wide_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/04\/RandomValue_Text.gif","wide_image-width":1472,"wide_image-height":712}},"image_position":"center","orientation":"horizontal","hyperlink":""},{"acf_fc_layout":"content","content":"<details>\n<summary style=\"color: #0079c5;text-decoration: underline;cursor: pointer\"><strong>Click here to show the sample code<\/strong><\/summary>\n<p>Copy the code below to create your own Arcade calculated expressions:<\/p>\n<pre><code style=\"padding: 0.5em;color: #333;background: #f8f8f8\"><span style=\"color: #998\">\/\/ Define the edit context so the value is only calculated when the feature is created<\/span>\r\n<span style=\"color: #9d49b5\">if<\/span> (<span style=\"color: #007ac2\">$editContext<\/span>.<span style=\"color: #007ac2\">editType<\/span> == <span style=\"color: #d83020\">\"INSERT\"<\/span> &amp;&amp; <span style=\"color: #007ac2\">$feature<\/span>.<span style=\"color: #007ac2\">RandomValueText <\/span>== <span style=\"color: #007ac2\">null) <\/span>{\r\n<span style=\"color: #998\">  \/\/ Generate a random number between 0 and 1, \r\n  \/\/ multiply it by 100,000 and preserve 5 digits<\/span>\r\n<span style=\"color: #9d49b5\">  var<\/span> <span style=\"color: #007ac2\">random_text<\/span> = <span style=\"color: #007ac2\">Text<span style=\"color: #4f7942\">(<\/span><\/span><span style=\"color: #007ac2\">Random<\/span>()*<span style=\"color: #4f7942\">100000<\/span>, <span style=\"color: #d83020\">'00000'<span style=\"color: #4f7942\">)<\/span><\/span>\r\n<span style=\"color: #998\">  \/\/ Return the random number and add a prefix text to it<\/span>\r\n<span style=\"color: #9d49b5\">  return<\/span> <span style=\"color: #d83020\">\"Prefix-\"<\/span> + <span style=\"color: #007ac2\">random_text<\/span>\r\n} <span style=\"color: #9d49b5\">else<\/span> {\r\n<span style=\"color: #998\">  \/\/ When the feature is updated, return the existing value in this field\r\n  \/\/ and do not calculate a new random value<\/span>\r\n<span style=\"color: #007ac2\">  $feature<\/span>.<span style=\"color: #007ac2\">RandomValueText<\/span>\r\n}\r\n<\/code><\/pre>\n<h3><strong><span style=\"text-decoration: underline\">\u00a0 \u00a0 \u00a0 \u00a0 \u00a0<\/span><\/strong><\/h3>\n<\/details>\n<p>&nbsp;<\/p>\n"},{"acf_fc_layout":"image","image":{"ID":1892542,"id":1892542,"title":"divider","filename":"divider1.png","filesize":780125,"url":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/03\/divider1.png","link":"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-online\/mapping\/go-beyond-the-smart-editor-using-smart-forms\/divider1","alt":"","author":"9772","description":"","caption":"","name":"divider1","status":"inherit","uploaded_to":1809442,"date":"2023-03-31 16:51:39","modified":"2023-03-31 16:51:50","menu_order":0,"mime_type":"image\/png","type":"image","subtype":"png","icon":"https:\/\/www.esri.com\/arcgis-blog\/wp-includes\/images\/media\/default.png","width":3732,"height":459,"sizes":{"thumbnail":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/03\/divider1-213x200.png","thumbnail-width":213,"thumbnail-height":200,"medium":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/03\/divider1.png","medium-width":464,"medium-height":57,"medium_large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/03\/divider1.png","medium_large-width":768,"medium_large-height":94,"large":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/03\/divider1.png","large-width":1920,"large-height":236,"1536x1536":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/03\/divider1-1536x189.png","1536x1536-width":1536,"1536x1536-height":189,"2048x2048":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/03\/divider1-2048x252.png","2048x2048-width":2048,"2048x2048-height":252,"card_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/03\/divider1-826x102.png","card_image-width":826,"card_image-height":102,"wide_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/03\/divider1-1920x236.png","wide_image-width":1920,"wide_image-height":236}},"image_position":"center","orientation":"horizontal","hyperlink":""},{"acf_fc_layout":"content","content":"<h2><strong>Other requests<\/strong><\/h2>\n<p>Of course, these calculation examples barely scratch the surface of what&#8217;s possible with the Arcade scripting language. Sometimes, small things can make a big difference!<\/p>\n<p>Other common requests we&#8217;ve had over the years for the Smart Editor widget which are now included in the Editor widget and the Forms:<\/p>\n<ul>\n<li>Support for <a href=\"https:\/\/www.esri.com\/arcgis-blog\/products\/js-api-arcgis\/developers\/contingent-attribute-values-in-the-arcgis-api-for-javascript\/#:~:text=The%20Editor%20widget%20also%20supports%20contingent%20values\" target=\"_blank\" rel=\"noopener\">Contingent Attribute Values<\/a><\/li>\n<li>Support for Subtype Group Layers<\/li>\n<li>Better <a href=\"https:\/\/doc.arcgis.com\/en\/arcgis-online\/manage-data\/edit-features-mv.htm#ESRI_STEP_9DBB92F9866A4F5AA6D28D180E882440\" target=\"_blank\" rel=\"noopener\">Snapping options<\/a><\/li>\n<li>Customization of the <a href=\"https:\/\/doc.arcgis.com\/en\/arcgis-online\/create-maps\/create-form-mv.htm\" target=\"_blank\" rel=\"noopener\">attribute form<\/a><\/li>\n<\/ul>\n<p>Keep an eye out; there&#8217;s still a lot of new exciting functionality coming soon!<\/p>\n"}],"related_articles":[{"ID":1565782,"post_author":"6981","post_date":"2022-05-05 13:03:05","post_date_gmt":"2022-05-05 20:03:05","post_content":"","post_title":"Getting the most out of editing in Map Viewer and ArcGIS API for JavaScript","post_excerpt":"","post_status":"publish","comment_status":"closed","ping_status":"closed","post_password":"","post_name":"getting-the-most-out-of-editing-in-map-viewer-and-the-arcgis-api-for-javascript","to_ping":"","pinged":"","post_modified":"2022-05-06 06:23:14","post_modified_gmt":"2022-05-06 13:23:14","post_content_filtered":"","post_parent":0,"guid":"https:\/\/www.esri.com\/arcgis-blog\/?post_type=blog&#038;p=1565782","menu_order":0,"post_type":"blog","post_mime_type":"","comment_count":"0","filter":"raw"},{"ID":1800682,"post_author":"9772","post_date":"2023-03-15 02:10:21","post_date_gmt":"2023-03-15 09:10:21","post_content":"","post_title":"From the Smart Editor to Smart Forms","post_excerpt":"","post_status":"publish","comment_status":"open","ping_status":"closed","post_password":"","post_name":"from-the-smart-editor-to-smart-forms","to_ping":"","pinged":"","post_modified":"2025-03-28 12:37:17","post_modified_gmt":"2025-03-28 19:37:17","post_content_filtered":"","post_parent":0,"guid":"https:\/\/www.esri.com\/arcgis-blog\/?post_type=blog&#038;p=1800682","menu_order":0,"post_type":"blog","post_mime_type":"","comment_count":"14","filter":"raw"},{"ID":1455132,"post_author":"6981","post_date":"2022-01-13 06:18:59","post_date_gmt":"2022-01-13 14:18:59","post_content":"","post_title":"Upgrade your editing experience in the Map Viewer by using forms","post_excerpt":"","post_status":"publish","comment_status":"closed","ping_status":"closed","post_password":"","post_name":"upgrade-your-editing-experience-in-the-map-viewer-by-using-forms","to_ping":"","pinged":"","post_modified":"2022-01-14 06:19:55","post_modified_gmt":"2022-01-14 14:19:55","post_content_filtered":"","post_parent":0,"guid":"https:\/\/www.esri.com\/arcgis-blog\/?post_type=blog&#038;p=1455132","menu_order":0,"post_type":"blog","post_mime_type":"","comment_count":"0","filter":"raw"},{"ID":1573422,"post_author":"8272","post_date":"2023-08-01 03:00:55","post_date_gmt":"2023-08-01 10:00:55","post_content":"","post_title":"Common calculated expressions for ArcGIS Field Maps","post_excerpt":"","post_status":"publish","comment_status":"open","ping_status":"closed","post_password":"","post_name":"common-calculated-expressions-for-arcgis-field-maps","to_ping":"","pinged":"","post_modified":"2023-08-02 08:15:55","post_modified_gmt":"2023-08-02 15:15:55","post_content_filtered":"","post_parent":0,"guid":"https:\/\/www.esri.com\/arcgis-blog\/?post_type=blog&#038;p=1573422","menu_order":0,"post_type":"blog","post_mime_type":"","comment_count":"18","filter":"raw"},{"ID":1855042,"post_author":"10102","post_date":"2023-03-08 11:30:03","post_date_gmt":"2023-03-08 19:30:03","post_content":"","post_title":"Reuse forms in ArcGIS Field Maps","post_excerpt":"","post_status":"publish","comment_status":"closed","ping_status":"closed","post_password":"","post_name":"reuse-forms-in-arcgis-field-maps","to_ping":"","pinged":"","post_modified":"2023-03-08 11:40:52","post_modified_gmt":"2023-03-08 19:40:52","post_content_filtered":"","post_parent":0,"guid":"https:\/\/www.esri.com\/arcgis-blog\/?post_type=blog&#038;p=1855042","menu_order":0,"post_type":"blog","post_mime_type":"","comment_count":"0","filter":"raw"}],"card_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/03\/card1.png","wide_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/03\/Banner_Beyond.jpg","show_article_image":false},"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v25.9 (Yoast SEO v25.9) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Go Beyond the Smart Editor using Smart Forms<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-online\/mapping\/go-beyond-the-smart-editor-using-smart-forms\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Go Beyond the Smart Editor using Smart Forms\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-online\/mapping\/go-beyond-the-smart-editor-using-smart-forms\" \/>\n<meta property=\"og:site_name\" content=\"ArcGIS Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/esrigis\/\" \/>\n<meta property=\"article:modified_time\" content=\"2025-06-18T22:56:23+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@ESRI\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":[\"Article\",\"BlogPosting\"],\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-online\/mapping\/go-beyond-the-smart-editor-using-smart-forms#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-online\/mapping\/go-beyond-the-smart-editor-using-smart-forms\"},\"author\":{\"name\":\"Alix V\u00e9zina\",\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/#\/schema\/person\/e76ed2381f91fe0d28767bd0b2969fb5\"},\"headline\":\"Go Beyond the Smart Editor using Smart Forms\",\"datePublished\":\"2023-05-02T14:37:35+00:00\",\"dateModified\":\"2025-06-18T22:56:23+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-online\/mapping\/go-beyond-the-smart-editor-using-smart-forms\"},\"wordCount\":8,\"commentCount\":5,\"publisher\":{\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/#organization\"},\"keywords\":[\"arcade\",\"calculate field\",\"Form Calculations\",\"smart editor\",\"Smart Forms\"],\"articleSection\":[\"Analytics\",\"Data Management\",\"Mapping\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-online\/mapping\/go-beyond-the-smart-editor-using-smart-forms#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-online\/mapping\/go-beyond-the-smart-editor-using-smart-forms\",\"url\":\"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-online\/mapping\/go-beyond-the-smart-editor-using-smart-forms\",\"name\":\"Go Beyond the Smart Editor using Smart Forms\",\"isPartOf\":{\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/#website\"},\"datePublished\":\"2023-05-02T14:37:35+00:00\",\"dateModified\":\"2025-06-18T22:56:23+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-online\/mapping\/go-beyond-the-smart-editor-using-smart-forms#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-online\/mapping\/go-beyond-the-smart-editor-using-smart-forms\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-online\/mapping\/go-beyond-the-smart-editor-using-smart-forms#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.esri.com\/arcgis-blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Go Beyond the Smart Editor using Smart Forms\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/#website\",\"url\":\"https:\/\/www.esri.com\/arcgis-blog\/\",\"name\":\"ArcGIS Blog\",\"description\":\"Get insider info from Esri product teams\",\"publisher\":{\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.esri.com\/arcgis-blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/#organization\",\"name\":\"Esri\",\"url\":\"https:\/\/www.esri.com\/arcgis-blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2018\/04\/Esri.png\",\"contentUrl\":\"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2018\/04\/Esri.png\",\"width\":400,\"height\":400,\"caption\":\"Esri\"},\"image\":{\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/esrigis\/\",\"https:\/\/x.com\/ESRI\",\"https:\/\/www.linkedin.com\/company\/5311\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/#\/schema\/person\/e76ed2381f91fe0d28767bd0b2969fb5\",\"name\":\"Alix V\u00e9zina\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.esri.com\/arcgis-blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2019\/07\/Alix-Vezina-Prefered-213x200.jpg\",\"contentUrl\":\"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2019\/07\/Alix-Vezina-Prefered-213x200.jpg\",\"caption\":\"Alix V\u00e9zina\"},\"description\":\"Alix is a product engineer in web development at Esri, where she delivers innovative web mapping tools for various industries. She\u2019s passionate about customer success and combines her knowledge with practical experience to help solve problems and empower others to develop impactful applications that provide essential functionality.\",\"sameAs\":[\"https:\/\/www.linkedin.com\/in\/alixbv\/\"],\"jobTitle\":\"Product Engineer\",\"url\":\"https:\/\/www.esri.com\/arcgis-blog\/author\/avezina\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Go Beyond the Smart Editor using Smart Forms","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-online\/mapping\/go-beyond-the-smart-editor-using-smart-forms","og_locale":"en_US","og_type":"article","og_title":"Go Beyond the Smart Editor using Smart Forms","og_url":"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-online\/mapping\/go-beyond-the-smart-editor-using-smart-forms","og_site_name":"ArcGIS Blog","article_publisher":"https:\/\/www.facebook.com\/esrigis\/","article_modified_time":"2025-06-18T22:56:23+00:00","twitter_card":"summary_large_image","twitter_site":"@ESRI","twitter_misc":{"Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":["Article","BlogPosting"],"@id":"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-online\/mapping\/go-beyond-the-smart-editor-using-smart-forms#article","isPartOf":{"@id":"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-online\/mapping\/go-beyond-the-smart-editor-using-smart-forms"},"author":{"name":"Alix V\u00e9zina","@id":"https:\/\/www.esri.com\/arcgis-blog\/#\/schema\/person\/e76ed2381f91fe0d28767bd0b2969fb5"},"headline":"Go Beyond the Smart Editor using Smart Forms","datePublished":"2023-05-02T14:37:35+00:00","dateModified":"2025-06-18T22:56:23+00:00","mainEntityOfPage":{"@id":"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-online\/mapping\/go-beyond-the-smart-editor-using-smart-forms"},"wordCount":8,"commentCount":5,"publisher":{"@id":"https:\/\/www.esri.com\/arcgis-blog\/#organization"},"keywords":["arcade","calculate field","Form Calculations","smart editor","Smart Forms"],"articleSection":["Analytics","Data Management","Mapping"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-online\/mapping\/go-beyond-the-smart-editor-using-smart-forms#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-online\/mapping\/go-beyond-the-smart-editor-using-smart-forms","url":"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-online\/mapping\/go-beyond-the-smart-editor-using-smart-forms","name":"Go Beyond the Smart Editor using Smart Forms","isPartOf":{"@id":"https:\/\/www.esri.com\/arcgis-blog\/#website"},"datePublished":"2023-05-02T14:37:35+00:00","dateModified":"2025-06-18T22:56:23+00:00","breadcrumb":{"@id":"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-online\/mapping\/go-beyond-the-smart-editor-using-smart-forms#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-online\/mapping\/go-beyond-the-smart-editor-using-smart-forms"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.esri.com\/arcgis-blog\/products\/arcgis-online\/mapping\/go-beyond-the-smart-editor-using-smart-forms#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.esri.com\/arcgis-blog\/"},{"@type":"ListItem","position":2,"name":"Go Beyond the Smart Editor using Smart Forms"}]},{"@type":"WebSite","@id":"https:\/\/www.esri.com\/arcgis-blog\/#website","url":"https:\/\/www.esri.com\/arcgis-blog\/","name":"ArcGIS Blog","description":"Get insider info from Esri product teams","publisher":{"@id":"https:\/\/www.esri.com\/arcgis-blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.esri.com\/arcgis-blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.esri.com\/arcgis-blog\/#organization","name":"Esri","url":"https:\/\/www.esri.com\/arcgis-blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.esri.com\/arcgis-blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2018\/04\/Esri.png","contentUrl":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2018\/04\/Esri.png","width":400,"height":400,"caption":"Esri"},"image":{"@id":"https:\/\/www.esri.com\/arcgis-blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/esrigis\/","https:\/\/x.com\/ESRI","https:\/\/www.linkedin.com\/company\/5311\/"]},{"@type":"Person","@id":"https:\/\/www.esri.com\/arcgis-blog\/#\/schema\/person\/e76ed2381f91fe0d28767bd0b2969fb5","name":"Alix V\u00e9zina","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.esri.com\/arcgis-blog\/#\/schema\/person\/image\/","url":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2019\/07\/Alix-Vezina-Prefered-213x200.jpg","contentUrl":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2019\/07\/Alix-Vezina-Prefered-213x200.jpg","caption":"Alix V\u00e9zina"},"description":"Alix is a product engineer in web development at Esri, where she delivers innovative web mapping tools for various industries. She\u2019s passionate about customer success and combines her knowledge with practical experience to help solve problems and empower others to develop impactful applications that provide essential functionality.","sameAs":["https:\/\/www.linkedin.com\/in\/alixbv\/"],"jobTitle":"Product Engineer","url":"https:\/\/www.esri.com\/arcgis-blog\/author\/avezina"}]}},"text_date":"May 2, 2023","author_name":"Alix V\u00e9zina","author_page":"https:\/\/www.esri.com\/arcgis-blog\/author\/avezina","custom_image":"https:\/\/www.esri.com\/arcgis-blog\/app\/uploads\/2023\/03\/Banner_Beyond.jpg","primary_product":"ArcGIS Online","tag_data":[{"term_id":32551,"name":"arcade","slug":"arcade","term_group":0,"term_taxonomy_id":32551,"taxonomy":"post_tag","description":"","parent":0,"count":113,"filter":"raw"},{"term_id":766432,"name":"calculate field","slug":"calculate-field","term_group":0,"term_taxonomy_id":766432,"taxonomy":"post_tag","description":"","parent":0,"count":8,"filter":"raw"},{"term_id":764152,"name":"Form Calculations","slug":"form-calculations","term_group":0,"term_taxonomy_id":764152,"taxonomy":"post_tag","description":"","parent":0,"count":3,"filter":"raw"},{"term_id":760862,"name":"smart editor","slug":"smart-editor","term_group":0,"term_taxonomy_id":760862,"taxonomy":"post_tag","description":"","parent":0,"count":3,"filter":"raw"},{"term_id":317872,"name":"Smart Forms","slug":"smart-forms","term_group":0,"term_taxonomy_id":317872,"taxonomy":"post_tag","description":"","parent":0,"count":35,"filter":"raw"}],"category_data":[{"term_id":23341,"name":"Analytics","slug":"analytics","term_group":0,"term_taxonomy_id":23341,"taxonomy":"category","description":"","parent":0,"count":1328,"filter":"raw"},{"term_id":23851,"name":"Data Management","slug":"data-management","term_group":0,"term_taxonomy_id":23851,"taxonomy":"category","description":"","parent":0,"count":920,"filter":"raw"},{"term_id":22941,"name":"Mapping","slug":"mapping","term_group":0,"term_taxonomy_id":22941,"taxonomy":"category","description":"","parent":0,"count":2690,"filter":"raw"}],"product_data":[{"term_id":400032,"name":"ArcGIS Experience Builder","slug":"experience-builder","term_group":0,"term_taxonomy_id":400032,"taxonomy":"product","description":"","parent":36591,"count":161,"filter":"raw"},{"term_id":36551,"name":"ArcGIS Online","slug":"arcgis-online","term_group":0,"term_taxonomy_id":36551,"taxonomy":"product","description":"","parent":0,"count":2425,"filter":"raw"},{"term_id":36631,"name":"ArcGIS Web AppBuilder","slug":"web-appbuilder","term_group":0,"term_taxonomy_id":36631,"taxonomy":"product","description":"","parent":36591,"count":103,"filter":"raw"}],"primary_product_link":"https:\/\/www.esri.com\/arcgis-blog\/?s=#&products=arcgis-online","_links":{"self":[{"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/blog\/1809442","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/blog"}],"about":[{"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/types\/blog"}],"author":[{"embeddable":true,"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/users\/9772"}],"replies":[{"embeddable":true,"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/comments?post=1809442"}],"version-history":[{"count":0,"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/blog\/1809442\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/media?parent=1809442"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/categories?post=1809442"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/tags?post=1809442"},{"taxonomy":"industry","embeddable":true,"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/industry?post=1809442"},{"taxonomy":"product","embeddable":true,"href":"https:\/\/www.esri.com\/arcgis-blog\/wp-json\/wp\/v2\/product?post=1809442"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}