Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Friday, April 19, 2024
About Us
Magazine
Open Source
CVS
Services
Index  »  Projects  »  phpMyEdit  »  Forum  »  textarea required does not work

phpMyEdit Configuration     textarea required does not work
Post new topic   Reply to topic    
 
houghi     Joined: 18 Apr 2008   Posts: 11  
Post Posted: 2009-01-21 16:39
Back to top  Reply with quote     

When I add the reqired to a textarea, I get the request to enter something regardless if there is something filled out or not. With all the other fields I use it works. Am I doing something wrong?

The code I have is
Code:
$opts['fdd']['Reason'] = array(
  'name'     => 'Reason',
  'options'  => 'ACVX',
  'select'   => 'T',
  'maxlen'   => 65535,
  'textarea' => array(
    'rows' => 5,
    'cols' => 50),
  'required' => true,
  'sort'     => true
);


 
doug     Joined: 10 Feb 2003   Posts: 1013   Location: Denver, Colorado (USA)
Post Posted: 2009-01-22 22:40
Back to top  Reply with quote     

Set 'required' to false.

 
houghi     Joined: 18 Apr 2008   Posts: 11  
Post Posted: 2009-01-29 17:22
Back to top  Reply with quote     

Unfortunatly the same result

 
kiai     Joined: 10 Jun 2015   Posts: 5  
Post Posted: 2015-06-10 23:38
Back to top  Reply with quote     

Though this post is old... remove the entire line. If you want the field to be able to be empty, why include it at all?

 
kiai     Joined: 10 Jun 2015   Posts: 5  
Post Posted: 2015-06-11 00:19
Back to top  Reply with quote     

Oh, and add this:


'sqlw' => 'IF($val_qas = "", NULL, $val_qas)'

 
Post new topic   Reply to topic    

Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top · Feedback form · Application form
Report bug on PLATON.SK website · Terms of use · Privacy policy