Esri / geoform-template-js

GeoForm is a configurable template for form based data editing of a Feature Service.

Home Page:http://esri.github.io/geoform-template-js/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feature Serilization

rfeuerstein opened this issue · comments

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...

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

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.