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
Tyler,
A boolean value is 1 or 0 so a integer field is best for this.
Chuck,
I would have to see your code.
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?
Thanks for the info Robert.
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.