Esri / geoform-template-js

GeoForm is a configurable template for form based data editing of a Feature Service.
http://esri.github.io/geoform-template-js/
Apache License 2.0
67 stars 83 forks source link

Feature Serilization #523

Open rfeuerstein opened 7 years ago

rfeuerstein commented 7 years ago

GeoForm is great for replacing legacy paper and/or email reporting. Is there a way to implement a field that assigns sequential and custom unique identification numbers? For example, a six digit report code 100001, 100002, 100003, etc...

driskull commented 7 years ago

Hi @rfeuerstein . The layer's objectId field is a unique field that is apart of every feature service. Could that be used?

randomblink commented 6 years ago

I feel like you could edit the geoform/config/default.js and add minor javascript that creates that serialization ID and then add it in the 'defaultValue' attribute and maybe use the new 'locked' attribute to stop users from changing the new ID.