Adding onsubmit custom attribute

Hi there! This is my first post on this forum. I am working on a form that I need to design on Web Flow and then make it work somewhere else. In order to do this I have to add a custom attribute named “onsubmit”, but the system doesn’t allow me to do that.

Can you help me?

Thanks in advance!
Diego

2 Likes

Hi @diegona :smile:

All elements can be given a custom “data-*” attribute. Check out this screenshot for more info:

hope this helps

Wow! That was quick.

Thank you @PixelGeek PixelGeek, I have tried with it, but the thing is that WebFlow does not allow me to add it. I am attaching a screenshot with the message I receive:

It says “This is a reserved name”.

Is there any work around for it?

Thank you for your help!
Diego

ah. for attributes that don’t start with “data-” we do not allow in the designer tool. BUT! You can add it via jQuery in the custom code area.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.