ArcGIS Online Map Viewer Editor Doesn't Prompt for Form

408
3
06-06-2022 01:18 PM
Labels (2)
10KYIGIS
New Contributor II

Hi there,

I'm trying to make use of the editing tools available in the new Map Viewer, especially with the Form that allows for Contingent Values and Calculated Expressions - as shown in this post: Getting the most out of editing in Map Viewer and ArcGIS API for JavaScript (esri.com)

I have a map with a couple of feature classes (one with points, one with polygons) and am unable to get the Editor tool to Create features and prompt user for the form - It just freezes up for me, whenever I try to click create for a new feature from my existing feature templates.

Are there some configuration settings I am missing to allow this? My feature layers have editing enabled, but when trying to create features I am unable to. Or is this functionality only for use via coding in the API in a custom application, and not the Out-of-the-Box Map Viewer?

Thanks! 

0 Kudos
3 Replies
RussRoberts
Esri Notable Contributor

Can you share the layers and map with the form you authored?

10KYIGIS
New Contributor II

Unfortunately, not the current version - I'll see if I can create something suitable for public sharing.

I must have missed this, but there is an alert by the Calculated Expressions section stating: "Calculated expressions that use Feature Sets are not supported in Map Viewer." So I assume that at some level my Feature Layer is using, or part of a Feature Set? Unsure if that is an issue preventing editing.

However, I tried putting the same Feature Layer on a blank map to test, and was able to configure the form and it would do Conditional Visibilities, and a simple Calculated Expression for area from use Length and Width populated correctly. It may have been an issue with the original Web Map? We've been transitioning some older maps from Map Viewer Classic to the Map Viewer, and this map may have been copied from Classic and saved as a new map viewer - and may have carried with it some bugs potentially. Not sure. I will configure some more of the form and see if the issue is resolved.

0 Kudos
10KYIGIS
New Contributor II

Through further exploration, I've found that the issue is coming from trying to write something in Arcade that will auto-populate a date field with the current date and time of editing.

I've tried using both return(now()) and now() and any time that calculation is enabled for a field, I only get a prompt for the 'Create' button, which upon pressing fails to create the feature or the Create prompt fails to appear at all.

Anytime I remove the now() calculation, the Form works as intended, with all subsequent conditional visibility and area calculation expressions performing as desired.

0 Kudos