HashanChamara / php-form-builder-class

Automatically exported from code.google.com/p/php-form-builder-class
0 stars 0 forks source link

TinyMCE prevents form submission when required attribute is set #177

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Adding the required attribute causes the form not to be submitted by 
Firefox, whether field is populated or not, in a non-Ajax form.

eg Changing the example.php file line to:

$form->addElement(new Element_TinyMCE("TinyMCE:", "TinyMCE", array('required' 
=> true)));

Causes the error.

What is the expected output? What do you see instead?

Form to be submitted when populated.  Firefox shows part of browser error 
"pop-up", but not all.

What version of the product are you using? On what operating system?
Firefox v15.0.1 PFBC 3.0-php5

Please provide any additional information below.

Original issue reported on code.google.com by fraser.m...@gmail.com on 7 Oct 2012 at 3:21

GoogleCodeExporter commented 8 years ago
Thanks for the bug report.  The same behavior was happening for the CKEditor 
element.  I've corrected in r571 (php >= 5.3) and r572 (php5).  You can grab 
this revision with...

svn export http://php-form-builder-class.googlecode.com/svn/trunk/ 
pfbc3.x-php5.3

-- OR --

svn export http://php-form-builder-class.googlecode.com/svn/branches/3.x-php5 
pfbc3.x-php5

Original comment by maria.po...@gmail.com on 8 Oct 2012 at 3:30