ajaxCRUD.com
» a PHP class to create / read / update / delete from a database table using AJAX
by loud canvas mediaAjaxCRUD API Reference
|
<< Reference overview << Home Object: ajaxCRUDConstructorFunctions
Variables |
defineAllowableValuesdefine "allowable" values for a field.
void defineAllowableValues ( String fieldName, String[] allowableValues, [ onedit_textbox = FALSE ] )
These allowable fields will display in a dropdown of the values you specify. You can have the values for the dropdown be the same as the text or separate. Both examples are provided below.
In addition, you can use the third parameter (optional) to allow fields (after being inserted) to NOT have only the allowed values permissable. If set to TRUE then a regular textbox will appear when editing this field--allowing any values. Details
Parameters
ExampleWith id and value the same
With id and value different
See also |
"Great api. Really love the demo. "
~Ade
