Skip Navigation

[Resolved] Allow specific HTML tags in CRED forms

This thread is resolved. Here is a description of the problem and solution.

Problem

How can we control what HTML tags are allowed to be submitted with CRED Forms?

Solution

All HTML tags that you check in Toolset > Settings > Forms > Content Filter, will be allowed, all that are unchecked will be stripped, when the form is submitted.

There will be no error message to the user.
The content will simply be stripped by the unwanted tags.

This support ticket is created 6 years, 9 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- - 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00
- - - - - - -

Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)

This topic contains 3 replies, has 2 voices.

Last updated by simranjeetS-2 6 years, 9 months ago.

Assisted by: Beda.

Author
Posts
#621600

I am trying to:
remove wysiwyg editor editor from cred form on frontend. I tried to change settings-> forms -> html tags. But wysiwyg editor is still visible. I want user to be able to submit only text and paragraphs. nothing else. I want form to remove all coding and all links what so ever.
Link to a page where the issue can be seen:
hidden link
I expected to see:
the above post without visual editor
Instead, I got:
the above form with editor

#621614

Hi. What I changed is I added a text area - multiple lines and that did the work. Now each post does not show wordpress post description, but text area field that I added. I tested and it strips all html. I now only want to ensure from that all html tags are stripped in text multiple lines and no code or html is executed.

#621691

This is the correct approach when you use Toolset CRED.

The WYSIWYG as you see it will still strip all tags, but the GUI is provided by WordPress and still visible, therefore.

All HTML tags that you check in Toolset > Settings > Forms > Content Filter will be allowed, all that are unchecked will be stripped.
https://toolset.com/documentation/user-guides/content-filter-settings/

#622233

Thanks a lot