phpMyEdit - Viewing Bug Advanced Details [ Go Back ]
198 core / field option feature always 2004-03-07 17:41 2004-03-08 10:49
hsicard  
 
normal  
feedback  
open  
none  
none  
Input restriction -> input suggestion
'Values' and 'values2' restrict user input to a list of values. I'm thinking of non restrictive list of values.
For instance, the input text box could be filled either manually or by a javascript using a nearby select box containing 'values'.
Field definition would look like:
'values'=>Array(...),
'values_non_restrictive'=>true
Does this feature looks interesting to anybody else?

Bug Notes
hbernard   
2004-03-07 21:38   
As said somewhere on the forum,
1. why not, but be careful with js and compatibility with *most* browsers
2. I mainly use values from another table. (values => Array(table => ...)
How will pme handle this case (updating external table) ?
Which API ?
3. currently, you may simply put a link in the 'help' column in order to switch the field type from D to T.
4. About how interesting this feature look
As said, yes, it could be useful.
But my personnal experience say that when user are free to fill whatever they want, this field became a bit messy. And IMHO it's better to stick with simple entry field in this case.

But, again, yes, maybe this would be interesting.
There is already a patch somewhere on the forum, I think.
nepto   
2004-03-08 10:49   
This is not related to phpMyEdit website / homepage.