laptop and a wrench

Bug

The FeatureTemplates widget does not exclude the specific template item when the value for the filterFunction property is returned as false in ArcGIS Maps SDK for JavaScript.

ArcGIS Maps SDK for JavaScript
Bug ID Number BUG-000157369
SubmittedApril 10, 2023
Last ModifiedAugust 23, 2024
Applies toArcGIS Maps SDK for JavaScript
Version found4.26
Operating SystemWindows OS
Operating System Version11.0
StatusUnder Consideration

Workaround

There is a workaround for this issue to exclude only the specific item from the feature template:

Include logic in the custom filter function that if the filter label includes Incident Report (Incident Report is a field name, and all the other items are included under Incident Report), If the incident report is returned false, the filter function works as expected when item 'Dead Animal' is returned true and false for all the other items. To test this workaround, uncomment lines 121 and 122 in the sample application.

Steps to Reproduce

Bug ID: BUG-000157369

Software:

  • ArcGIS Maps SDK for JavaScript

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options