View a field, but do not allow editing
I'd like some fields to be visible, but not editable by the user (these fields would have to be filled by code). Is this possible in the HTML Viewer?
And, related to this: Is there an event that is triggered after the "Create a feature" link is clicked, and before the attribute editor is shown?
-
We'd like to add the ability for adding new feature attachments (images), but not enable editing. The HTML5 doesn't seem to work the same as silverlight. The silverlight viewer is restricted by the Output Fields under Functional for the feature service map service, while the html5 one allows editing even if no fields are listed and the * is removed. How do you restrict editing to feature attachments and specific fields in the HTML5 viewer?
0 -
Hi Berend,
You can use REST Manager to control which fields on a layer are editable or not, and the editor should respect this.
Also, the "Create a feature" button is configured in the viewer configuration and it simply invokes the command it is configured to. If you don't mind getting your hands dirty with some JSON configuration, you can easily have this command call a custom command of your choice, which can then turn around and call the editing command.
-Jason
0
Please sign in to leave a comment.
Comments
2 comments