| Index
» Projekty
» phpMyEdit
» Fórum
» Validating fields |
 |
tsrwebmanager
Založený: 26.04.2008
Príspevky: 2
Zaslal: 2009-10-24 20:16
Návrat hore
Odpovedať s citátom
|
Forgive if this is basic, my predecessor set up the system, and I have been asked to fix a 'bug' in his implementation. I have
| Kód: |
$opts['fdd']['Places'] = array(
'name' => 'Places',
'select' => 'T',
'maxlen' => 6,
'default' => '4',
'sort' => true
);
$opts['fdd']['Places']['values']=range(-1,4);
|
Which permits any vaue from -1 to 4 to be entered - thats Ok but
there is another field
| Kód: |
$opts['fdd']['Course'] = array(
......
|
I would like the range to vary depending on what the user enters in ['Course'], which is picked from a long list of specified ['values']
(pseudo code)
| Kód: |
if ['Course']='Diary' then
['Places']['Values']=range[-1,0]
else
['Places']['Values']=range[0,4]
end if
|
Is there any way of doing that - I couldnt spot it in the documentation
Any advice appreciated
|
doug
Založený: 10.02.2003
Príspevky: 1013
Bydlisko: Denver, Colorado (USA)
Zaslal: 2009-10-25 18:29
Návrat hore
Odpovedať s citátom
|
Lookups can be created if they are not dependent on values entered in another column in the same form.
http://opensource.platon.sk/projects/doc.php/phpMyEdit/html/configuration.input-restrictions.html#AEN958
Is the lookup field in the same table, or in a different table?
|
|
Odoslať novú tému
Odpovedať na tému
|
|
|
|