Forums

Form validation problem with IE when using plugin

jj135 30 Jul, 2012
Hi! When I use the CF plugin to display a form on an article the validation does not work in IE. This only occurs when the plugin code in the article is surrounded by <p></p> tags. When you change these tags to <div></div> it works fine.

This problem only occurs (as far as I can check) in IE. Not in Chrome.

If you use JCE for editing an article there is a default setting for forcing to place content in a <p> tag. This is usefull, but in this case it causes this problem. When you remove the <p> tags in the source code and swicht back to the HTML view, JCE places the code right back in <p> tags. So you have to add a <div> tag in the source code to prevent this. This work around seems to work OK, but maybe this can be solver in the plugin code somewhere? Would be nice.

Maybe this post will also help others who run in to this problem.
GreyHead 31 Jul, 2012
Hi jj135,

It's a known feature of IE. Technically HTML does not allow <form> tags inside <p> tags but IE is the only browser that I know of that enforces the rule.

I don't think that it's possible to do anything from inside the plug-in to fix this.

Bob

PS It is noted in this FAQ.
This topic is locked and no more replies can be posted.