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

phpMyEdit General     Required option not working
Odoslať novú tému   Odpovedať na tému    
 
guardian46     Založený: 31.05.2005   Príspevky: 34  
Príspevok Zaslal: 2005-09-23 22:57
Návrat hore  Odpovedať s citátom     

Greetings,

I am trying to use the 'require' option along with ['values'], like this:
Kód:
$opts['fdd']['IDLoginName'] = array(
  'name'     => 'UserID',
  'select'   => 'D',
  'required' => true,
  'maxlen'   => 8,
  'sort'     => true
);
$opts['fdd']['IDLoginName']['values']['table'] = 'lnofficert';
$opts['fdd']['IDLoginName']['values']['column'] = 'IDLoginName';

But the required part is not working, users can skip this column. I found Bug#0000001, as closed, and it states this is resolved in the CVS. I wonder if it has crept back in? Or if this might be due to the MCE-CAL extension?

My Class file:
/* $Platon: phpMyEdit/phpMyEdit.class.php,v 1.167 2005/04/03 09:55:38 nepto Exp $ */
And using the mce-cal extension:
* extensions/phpMyEdit-mce-cal.class.php - phpMyEdit
* Updated 28th Jul 2005

Any help would be appreciated. Thanks

 
ajh     Založený: 17.12.2003   Príspevky: 236  
Príspevok Zaslal: 2005-09-25 11:13
Návrat hore  Odpovedať s citátom     

Hmmm....I guess it's possible. I'll have a look at mce_cal.

 
ajh     Založený: 17.12.2003   Príspevky: 236  
Príspevok Zaslal: 2005-09-27 10:18
Návrat hore  Odpovedať s citátom     

I'm pretty sure it's not the mce_cal extension. All of the 'required' logic is in the 'form_begin' function, which mce_cal doesn't touch.

 
guardian46     Založený: 31.05.2005   Príspevky: 34  
Príspevok Zaslal: 2005-09-30 15:09
Návrat hore  Odpovedať s citátom     

Thanks for checking, AJH.

Okay, anyone else having this issue??

 
paolodp     Založený: 06.07.2006   Príspevky: 11  
Príspevok Zaslal: 2006-07-07 17:49
Návrat hore  Odpovedať s citátom     

hello,
try this:

$opts['fdd']['IDLoginName']['js']['required']=true

regards

 
guardian46w     Založený: 26.01.2005   Príspevky: 2  
Príspevok Zaslal: 2006-07-11 19:48
Návrat hore  Odpovedať s citátom     

Thanks for the suggestion, Paolodp.

I gave it a try, but users can still leave the field blank. As long as I have this
Kód:
$opts['fdd']['IDLoginName']['values']['table'] = 'lnofficert';
$opts['fdd']['IDLoginName']['values']['column'] = 'IDLoginName';

the required option does not work.

Any help and/or other suggestions would be GREATLY appreciated!!

 
valedo     Založený: 31.08.2006   Príspevky: 6   Bydlisko: Ukraine
Príspevok Zaslal: 2006-09-01 14:58
Návrat hore  Odpovedať s citátom     

HI!

it is very important to use
['js']

Try this
'js'=> array('required' => true),

Example:

$opts['fdd']['category'] = array(
'name' => 'category',
'select' => 'T',
'maxlen' => 65535,
'js'=> array('required' => true),
'sort' => true
);

bye ^)

 
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