from arcgis.gis import GIS
from arcgis.features import FeatureLayerCollection
import json
from arcgis.mapping import WebMap
gis = GIS("home")
I am trying to retrieve the forms on an existing webmap (that has layers with forms configured) using the following script:
wm_item = gis.content.get("itemid")
wm = WebMap(wm_item)
wm.forms
However, I get a long error message ending with:
ValueError: A layer url which can be used to generate a feature layer is required to use this module
Anyone else having this issue? This web map does containt layers and e.g. wm.layers does return the operational layers as an output. The script I run is pretty similar to the one given in de api documentation.