Closed tannerjt closed 7 years ago
It would be preferable to be able to specify the field as type: 'number' in the crowdsource layer config.
Yep, that should be pretty easy to do.
number
: https://github.com/Esri/storymap-crowdsource/blob/master/src/app/builderOptions.babel.js#L30. If you have already created the story, you'll need to change this through the AGO assistant.field.type === 'number'
to this listmin/max
validations if you only want to allow ranges. You can add a rule to the validations setting: https://github.com/Esri/storymap-crowdsource/blob/master/src/app/utils/validations/rules/BasicRules.babel.js. {rule: 'max', 'max': 100}
or {rule: 'min', 'min': 0}
Thank you! I'll try this out tonight.
Works great, thanks again.
In regards to validations, what is the best way to validate an input field to be of type: number? I have several fields that are of type 'esriFieldTypeDouble' that I need to validate upon form submit, or onBlur.