Auto Suggest is a field that auto-fills the values based on the user input with the pre-configured values. This item is a combo box but without the drop-down icon for data selection.
...
Info |
---|
|
OR
- Adding values through data-support class of the form
...
Code Block | ||
---|---|---|
| ||
//Applying modalDialog to all dialog modals ct.Window = ct.modalDialog; ct.Dialog = ct.modalDialog; iportal.Window = ct.modalDialog; iportal.Dialog = ct.modalDialog; // Show hide menu to displayed in all grids ct.env.options.widget.showHideMenu=true; //TODO add any over rides to CANVAS global properties canvas.ns("canvas.form.listeners"); canvas.form.listeners.testFrm = Class(canvas.Observable, { constructor: function(config) { this.fm = config.fm; }, registerHandlers: function() { this.fm.registerHandler(CFEC.PRE_INITIALIZE, function(fm) { return { 'AUTOSUGGEST_FIELD': { templateUrl: 'TEST_AUTOSUG_LIST_TEMP.cttpl', //template url begining after the implementation template path selectedTemplateUrl: 'TEST_AUTOSUG_VIEW_TEMP.cttpl', //template url begining after the implementation template path staticTemplateUrl: 'TEST_AUTOSUG_STATIC_TEMP.cttpl', //template url begining after the implementation template path displayKeys:['accno','name'], //properties of the value object to be shown as the selected value displayKeysSeparator: '-', //separator to concatenate the display keys showTemplateOnSelect: true, //DisplaysEnables thetemplate selected templateselection enableSearch: false //Enables to perform a search for template selection } }; }); this.fm.registerHandler(CFEC.POST_FORM_RENDERER, function(fm) { fm.updateComboRawStore('AUTOSUGGEST_FIELD', ['123601602456','638868965990','688598760238'], [{name:'Anthony Lane',accno:'123601602456',acctype:'Personal Banking',imgurl:'images/bank_logo/andhra-bank1.png'},{name:'Gadzhi Kharkharov',accno:'638868965990',acctype:'Corporate Account',imgurl:'images/bank_logo/axis-bank.png'},{name:'Marcello Manso',accno:'688598760238',acctype:'Credit card',imgurl:'images/bank_logo/icici-bank.png'}]); //The form item ID is AUTOSUGGEST_FIELD }); } }); CFLR.registerListener("ACCOUNTS_FORM", canvas.form.listeners.testFrm); //The form ID is ACCOUNTS_FORM |
...
# | Property | Description | Sample Value | ||
---|---|---|---|---|---|
1 | Form ID | Unique ID of the Form on which you want to place the Form Item. | CHQ_REQ_FORM | ||
2 | Item ID | Unique ID to the Form item. | DELIVERY_MODE | ||
3 | Item Type | To identify the item type in a form. | AUTO_SUGGEST | ||
4 | Channel | Assigns the form item compatibility for various devices. | Desktop / Tablet / Mobile | ||
5 | Bundle Key | Name of the key associated with the property file which provides the localized label text for the current form item. | |||
6 | Plain Label | Text entered in Plain Label field appears as the label of the form item without the resource bundle key translation. 18.1: If you are using the property files, leave the Plain Label field as blank. Display Name Key is the property-driven label key for the form item. 19.1: In Canvas 19.1, the Display Name Key field is a configuration-driven label key for the form item. See About Display Name Key and Plain Label from 19.1 and Managing Display Names for Forms for more information. | |||
7 | Display Name Key | DELIVERY MODE | |||
8 | Edit | Selected: Renders the Form in edit enabled mode. | Selected | ||
9 | Visibility | Selected: Shows the form item on the Form. | Selected | ||
10 | Help | Selected: Renders the form item with a help icon. | Selected | ||
11 | Anchor | Defines the size of the form item in terms of percentage (without % symbol). | 50 | ||
12 | Selected: Allows printing the form item while printing the form. | Selected | |||
13 | Column Span | Occupies the specified number of item spaces horizontally for the current item. | 1 | ||
14 | Label Alignment | Indicates the alignment of the labels of the form items. | Top | ||
15 | Hide Label | Selected: Hides the label of the form item. | De-selected | ||
16 | Mandatory | Selected: Shows the red asterisk ({}{*}) on the label of the form item, and converts the particular field as mandatory. | Selected | ||
17 | Conditional Mandatory | Selected: Shows the blue double asterisks ({}{}) on the label of the form item, and converts the particular field as conditional mandatory.
De-Selected: considers the particular field as normal. | De-Selected | ||
18 | Add Icon | By making use of Add Icon option, you can add an icon to the form item. Perform the following steps for adding an icon to a form item:
| Selected | ||
19 | Multilingual input allowed | Selected: Supports the multilingual characters to be entered into the form items. | De-Selected | ||
20 | Switch | Enables you to switch from one form item to another form item along with the applicable properties and their values. To switch from one form item to another form item, execute the steps that follow:
| NA | ||
21 | Clone | Enables you to create a duplicate of the selected form item along with its applicable properties except for the Item ID. | 2 | ||
22 | Event Wiring | The Event Wiring option enables you to assign various events for different set of actions. For detailed information on Event Wiring, refer Form Items Event Wiring. |