Anyone here with experience with the designer ext API? I've fetched all the form elements on the current page with getAllElements() but no I want to print all the names of the form in the designer extension. But as far as I can see there is no method or property whatsoever to get attributes of the html element. (like https://developer-mozilla-org.translate.goog/en-US/docs/Web/API/Element/getAttribute )
You only have .getCustomAttribute() but that fetches only the custom attributes set in the designer, not the ones Webflow has set.
Anyone got an idea?
can you provide a bit more context of what it is you are trying to accomplish? I have a couple theories but would rather not make assumptions. ;D
I would like to print all the names of the forms on the current page in the designer extension. So i can let users select a form and do some actions with it. I am just giving forms here as an example, but lets say i would like the get the name attribute of a input field or something, there is no method or property to do so?
and by user, you mean somebody logged into the Webflow designer? So you are building a webflow app then yeah? I'll stop wasting your time though - this is likely way out of the scope of this slack community but you never know - but its definitely way outside of my zone so I'm not sure I would be of much help. I was just trying to ask some questions that I think others might have - but if somebody knows, I hope they will pipe up a bit here because this sounds interesting.
Yes, indeed, i'm making a Webflow app. I thought I try asking here π maybe some of the relume builders know an answer!, thanks anyways
For what it's worth, i've added the screenshot to make it more clear what i'm trying to do. As you can see there is no property or method to extract the 'default' attributes set on the form/selected element.
The method getAllCustomAttributes() or getCustomAttribute() are only the attributes you've setup yourself in the Webflow Designer, not the ones added by Webflow automatically. for e.g. data-name="Email Form test" on forms.