Form validation on FrontEnd with WYSIVYG textarea
Posted: Sun Aug 06, 2017 11:40 am
I need to use the WYSIVYG editor on FrontEnd. As written in the documentation, I added {cms_init_editor} to Page Metadata.
Then, in the form template, I call the editor with the command:
But not working if the parameter "required=true", the form can not be submited even when the content is filled in.
When I change to "required=false", it goes, but it does not check if the user has inserted some text.
It looks like validation does not work when using WYSIVYG editor ... Is there any way to know if the user has written something before Submit?
Then, in the form template, I call the editor with the command:
Code: Select all
{cms_textarea enablewysiwyg=true id=id_content name=$tmp value=$content required=true}
When I change to "required=false", it goes, but it does not check if the user has inserted some text.
It looks like validation does not work when using WYSIVYG editor ... Is there any way to know if the user has written something before Submit?