Example, if there’s an input and it is connected to a CMS collection without code, is there a way to get the dataset id the input is connected to?
If you mean collection id, you can go to the code section, in the databases, you can find the ID of the collections and their fields. If you mean the current dataset on page, you can find it in the CMS section of instector panel.
Hi,
I mean - Let’s suppose a text input is connected to a CMS collection without code.
Is there a way (using code) to get which collection the input is connected to?
Suppose on the live website I want to see it, so need to add the code in the editor to log it.
Is there a way?
in that case I dont think so. Velo doesn’t expose a built‑in API that lets you directly ask an element “which dataset/collection are you bound to” on a published site.
There may be some weird hacky ways to go about it.
I dont really understand the reasoning behind why you would need to find this on the live site.