AAAAadministrator/components/com_chronoforms/form_actions/autocomplete_loader/autocomplete_loader.ctp 0000604 00000010425 15140024421 0033632 0 ustar 00 home/academiac/www
Header(array('settings' => 'Settings', 'other' => 'Other', 'help' => 'Help'), 'autocomplete_loader_config_{n}'); ?>
tabStart('settings'); ?>
input('action_autocomplete_loader_{n}_field_id_config', array('type' => 'text', 'label' => "Field ID", 'smalldesc' => 'The id of the field which will have the auto completer function assigned by this action.')); ?>
input('action_autocomplete_loader_{n}_field_name_config', array('type' => 'text', 'label' => "Field Name", 'smalldesc' => 'The name of the field which will have the auto completer function assigned by this action.')); ?>
input('action_autocomplete_loader_{n}_ajax_event_config', array('type' => 'text', 'label' => "AJAX event", 'class' => 'medium_input', 'smalldesc' => 'The event name which will have the Autocompleter processor action.')); ?>
tabEnd(); ?>
tabStart('other'); ?>
input('action_autocomplete_loader_{n}_minLength_config', array('type' => 'text', 'label' => "Minimum length", 'smalldesc' => 'Minimum number of characters before a request is initiated.')); ?>
input('action_autocomplete_loader_{n}_maxChoices_config', array('type' => 'text', 'label' => "Max choice", 'smalldesc' => 'Maximum number of choices to show.')); ?>
input('action_autocomplete_loader_{n}_ajax_delay_config', array('type' => 'text', 'label' => "AJAX delay", 'smalldesc' => 'Time to wait in MS before a request is initiated.')); ?>
input('action_autocomplete_loader_{n}_results_cache_config', array('type' => 'select', 'label' => 'Cache results', 'options' => array('false' => 'No', 'true' => 'Yes'), 'empty' => false, 'smalldesc' => "Cache the results ?")); ?>
tabEnd(); ?>
tabStart('help'); ?>
- Add your field name and id which is going to have the auto loader function then set the event name which will have the processor action.
- Your field should be of type text box or text area.
- You should use an event on the same form, e.g: create a new form event and call it "my_auto_complete".
tabEnd(); ?>