Index
» Projects
» phpMyEdit
» Forum
» textarea required does not work |
|
houghi
Joined: 18 Apr 2008
Posts: 11
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)
Posted: 2009-01-22 22:40
Back to top
Reply with quote
|
Set 'required' to false.
|
houghi
Joined: 18 Apr 2008
Posts: 11
Posted: 2009-01-29 17:22
Back to top
Reply with quote
|
Unfortunatly the same result
|
kiai
Joined: 10 Jun 2015
Posts: 5
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
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
|
|
|
|