Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Utorok, 24. november 2026
O nás
Magazín
Otvorený softvér
CVS
Služby
Index  »  Projekty  »  phpMyEdit  »  Fórum  »  textarea required does not work

phpMyEdit Configuration     textarea required does not work
Odoslať novú tému   Odpovedať na tému    
 
houghi     Založený: 18.04.2008   Príspevky: 11  
Príspevok Zaslal: 2009-01-21 16:39
Návrat hore  Odpovedať s citátom     

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
Kód:
$opts['fdd']['Reason'] = array(
  'name'     => 'Reason',
  'options'  => 'ACVX',
  'select'   => 'T',
  'maxlen'   => 65535,
  'textarea' => array(
    'rows' => 5,
    'cols' => 50),
  'required' => true,
  'sort'     => true
);


 
doug     Založený: 10.02.2003   Príspevky: 1013   Bydlisko: Denver, Colorado (USA)
Príspevok Zaslal: 2009-01-22 22:40
Návrat hore  Odpovedať s citátom     

Set 'required' to false.

 
houghi     Založený: 18.04.2008   Príspevky: 11  
Príspevok Zaslal: 2009-01-29 17:22
Návrat hore  Odpovedať s citátom     

Unfortunatly the same result

 
kiai     Založený: 10.06.2015   Príspevky: 5  
Príspevok Zaslal: 2015-06-10 23:38
Návrat hore  Odpovedať s citátom     

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     Založený: 10.06.2015   Príspevky: 5  
Príspevok Zaslal: 2015-06-11 00:19
Návrat hore  Odpovedať s citátom     

Oh, and add this:


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

 
Odoslať novú tému   Odpovedať na tému    

Copyright © 2002-2006 Platon Group
Stránka používa redakčný systém Metafox
Na začiatok · Odkazový formulár · Prihláška
Upozorniť na chybu na PLATON.SK webstránke · Podmienky použitia · Ochrana osobných údajov