| Index
» Projekty
» phpMyEdit
» Fórum
» textarea required does not work |
 |
houghi
Založený: 18.04.2008
Príspevky: 11
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)
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
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
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
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
|
|
|
|