Greetings, I really need to use a boolean field type but it looks like one is not listed in the documentation.
https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Field.html#type
How do I type a field to hold a true false value?
Thanks, Tyler
Solved! Go to Solution.
Tyler,
A boolean value is 1 or 0 so a integer field is best for this.
Tyler,
A boolean value is 1 or 0 so a integer field is best for this.
Thanks for the info Robert.
I have the same question, but neither "string" or "integer" are working. I'm creating a feature layer from client side graphics. The data is json.
I'm getting and error: "Value true is not a valid value for the field type - field: IsTriggerGauge, type: esriFieldTypeString, nullable: true"
Is there anything else I can try?
Chuck,
I would have to see your code.