Set only certain number of fields while working with templatePicker?

232
0
08-22-2019 06:27 AM
AlifShaikh
New Contributor

Hi,

I am working with templatePicker. I wanted to know how do I restrict the number of fields while editing the attributes of feature?

Currently I am getting 32 number of fields. Which I need to restrict to 10-12. 

I think I need to make changes in layerinfos section of settings variable (line 4). Don't know how to proceed. any help would be really appreciated.

 var settings = {
            map: map,
            templatePicker: templatePicker,
            layerInfos: layers,
            toolbarVisible: true,
            createOptions: {
              polylineDrawTools:[ Editor.CREATE_TOOL_FREEHAND_POLYLINE ],
              polygonDrawTools: [ Editor.CREATE_TOOL_FREEHAND_POLYGON,
                Editor.CREATE_TOOL_CIRCLE,
                Editor.CREATE_TOOL_TRIANGLE,
                Editor.CREATE_TOOL_RECTANGLE
              ]
            },
            toolbarOptions: {
              reshapeVisible: true
            }
          };

          var params = { settings: settings };
          var myEditor = new Editor(params, 'editorDiv');‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍

Regards,

Alif

0 Kudos
0 Replies