The client wants to be able to add custom form to a rich text element in their news and arrangement CMS pages on their site. I thought I would try Powerful Rich Text to solve this.
I have implemented Powerful Rich Text to their site at it seems to work fine, the form is inserted were I have added the {{component}} but the form functionality does not work. (The form is not sent when clicking the submit button.)
Is it possible to add a form with Powerful Rich Text? If not, do you have any suggestion to alternative methods?
Its probably worth to mention that the form will be sent with Zapier, so it needs to have a unique and be shown as a form when selecting it as a trigger in Zapier.
Hello @oyvind, elements added to rich text using {{component}} strip off any Javascript functionality added to them as part of a security measure. Since form submission relies on Javascript, it won’t if added programmatically to the rich text element
I have a similar use case: include custom form in Rich text of a CMS. I’ve achieved this through a HTMX solution(Thanks to Alex from Finsweet stream).
The concept is, you create a form component in a static page, and include the component with HTMX embed code in rich text. The HXMX will render the component when the page is loaded. And you can control weather load JS or not with some custom code. Ask ChatGPT that you are using HTMX in webflow with CMS rich text. It will generate the code for you.