ned@kelly.org.au
Založený: 08.04.2004
Príspevky: 22
Bydlisko: Mosquito Flat, Australia
Zaslal: 2004-10-06 05:47
Návrat hore
Odpovedať s citátom
|
Hi All
Ive been having a few problems with the [js][regexp] option.
It works fine for plain data entry fields but just doesnt want to work for dropdown lists
basically what im after is to have a dropdown list that as default is blank but is required and doesnt accept blank as an answer
below is by code
| Kód: |
$opts['fdd']['client_on_tax'] = array(
'name' => 'Client on tax *',
'select' => 'D',
'maxlen' => 1,
'values' => array('','Y','N'),
'js' => array(
'required' => true,
'regexp' => '/^[0-9]*$/',
'hint' => 'Please enter a option for Client on Tax'
),
'required' => true,
'options' => 'ACV',
'sort' => true
);
|
refer
http://opensource.platon.sk/forum/projects/viewtopic.php?t=483
for more information
thanks michal for your help
Cheers
Ned
|
|
Odoslať novú tému
Odpovedať na tému
|
|
|