Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Wednesday, October 28, 2026
About Us
O nás
Magazine
Magazín
Open Source
Otvorený softvér
CVS
CVS
Services
Služby
Index  »  Projects  »  phpMyEdit  »  Forum  »  [js][regexp] from dropdownlist

phpMyEdit Features     [js][regexp] from dropdownlist
Post new topic   Reply to topic    
 
ned@kelly.org.au     Joined: 08 Apr 2004   Posts: 22   Location: Mosquito Flat, Australia
Post Posted: 2004-10-06 05:47
Back to top  Reply with quote     

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

Code:

$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

 
jiliray916@     Joined: 01 Nov 2023   Posts: 563  
Post Posted: 2024-01-06 10:18
Back to top  Reply with quote     

I am incessantly thought about this, thanks for putting up. roof cleaning bristol

 
QADIRSEO     Joined: 29 Dec 2023   Posts: 1168  
Post Posted: 2024-01-08 11:46
Back to top  Reply with quote     

Thanks for the writeup. I definitely agree with what you are saying. I have been talking about this subject a lot lately with my brother so hopefully this will get him to see my point of view. Fingers crossed! shillong teer result

 
Post new topic   Reply to topic    

Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top · Feedback form · Odkazový formulár · Application form · Prihláška
Report bug on PLATON.SK website · Upozorniť na chybu na PLATON.SK webstránke · Terms of use · Podmienky použitia · Privacy policy · Ochrana osobných údajov