Hi all,
I am seeking clarification and examples re: workflows to copy forms (and/or other layer properties, e.g. popup configs) from one layer to another.
I have found various resources indicating that it is possible to script workflows to copy various properties from one layer and apply them to another, typically by interacting with the item JSON, for example the notebook shared in this thread and the workflows and scripts described here.
In all the examples or threads I have found, the workflow is copying properties between layers that are in the same map, or from the same feature service. I would like to be able to configure a form, popup, etc., on a given layer, and be able to copy that configured property to entirely separate layers from different services assuming the source and target layer have the same fields.
Does anyone know if it is possible to copy things like forms and popup configurations between completely separate layers - not in the same map, not from the same feature service - as long as the fields are the same between the two layers? If so, how does this workflow need to differ from the examples using layers from the same map or service? Can I use the same approach and simply specify the URLs for the respective source and target layers' feature services or is there more to it? Am I missing something fundamental about the structure of hosted layers or feature services that would make this impossible?
Thanks in advance for any insights!