Hi,
In order to assign unique IDs to our custom forms, we have implemented a SlingPostProcessor, similar to the one used by the OOTB forms.
However, recently we have noticed that some of our forms have the ID of the form they are copy/pasted from.
It turns out, when we copy and paste a page in Touch UI, it sends a POST request to http://localhost:4502/bin/wcmcommand and our SlingPostProcessor is not invoked at all.
How can handle cases like this as well?
PS: Why the default built-in forms use IDs, rather than paths, for unique identification of forms? Why not just use paths?
Update: I just noticed that even the OOTB forms have the same problem. If you drop the OOTB form on a page, and copy/paste the page, the form on the new page will have the same ID as the form on the old page.
Thanks.