does it work without the Smart Grid plugin activated? the Smart-grid plugin does not render forms, this is done by the CF7 plugin itself. smart-grid only formats html.
It is possible that the reset input type is stripped by the CF7 plugin itself. Have you enquired in the CF7 forum?
Yes, it worked when I did not used Smart Grid, when I save the form the code disappear
dang, then that looks like a bug. I will look at this as priority and get back to yo.
wc, you can read FAQ #16 for more info on using custom html in forms.
Do leave a review when you have time.
OK, I only needed the reset button. I do not understand the FAQ.
Add the review
no issues. The reset button will work as is, you don’t need the faq code to get it work.
Briefly, CF7 plugin does not sanitise the forms being saved. Sanitising submitted data to your WP site is part of WP security. The CF7 plugin was created at a time when such checks were not being enforced by the WP plugin team.
This plugin implements the sanitisation functionality, as a result it is not possible to add any/all html elements. For example, adding a <script> element in your form would be stripped when saved.
The FAQ code gives you the possibility to add extra ‘rules’ to the sanitisation filter to allow other html elements to your forms… if required.
I get it, so why they do not fix CF7?
good question. It ought to be the author’s responsibility, but without the WP plugin team asking him to do so, he is unlikely to change his code. There are so many plugins in the repo that only news ones are scrutinised and validated.
OK, I think I will ask him about it