Hyperlink
Hyperlink is a label control with hyperlink navigation.
- Form Items >Display >Hyperlink
After configuring the Hyperlink label, use the CFEC.CLICK handler to write the target action logic. For example,
canvas.ns("canvas.form.listeners"); canvas.form.listeners.creditcard = Class(canvas.Observable, { constructor: function(config) { this.fm = config.fm; }, registerHandlers: function() { this.fm.registerHandler(CFEC.CLICK, "T_AND_C", function(fm, event, fieldName) // Here, T_AND_C is the Hyperlink item ID. { canvas.launch( { renderType:'WINDOW', formId:'FORM_TC' }); /* Canvas Launch API is used to display the target form. * Here, FORM_TC is the target form. */ }); } }); CFLR.registerListener("FORM_CREDITCARD", canvas.form.listeners.creditcard); // Here, FORM_CREDITCARD is the form ID. This form contains the Hyperlink item, T_AND_C.
For more information about CFEC.CLICK handler, read sections Form Handlers, Form Item Handlers, Form and Form Item APIs and Canvas Launch API.
The following table provides information about the properties that are applicable to this form item:
# | Property | Description | Sample Values |
---|---|---|---|
1 | Form ID | Unique ID of the Form on which you want to place the Form Item. | NEW_PAYEE_FORM |
2 | Item ID | Unique ID to the Form item. This value is automatically configured once the form is selected from the pop-up window. | HYPERLINK4 |
3 | Item Type | To identify the item type in a form. | HYPERLINK |
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. | Common |
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. | Not applicable |
7 | Display Name Key | Not applicable | |
8 | Edit | Selected: Renders the Form in edit enabled mode. | Selected |
9 | Visibility | Selected: Shows the form item on the Form. | Selected |
10 | Selected: Allows printing the form item while printing the form. | 50 | |
11 | Anchor | Defines the size of the form item in terms of percentage (without % symbol). | Selected |
12 | Column Span | Occupies the specified number of item spaces horizontally for the current item. | 1 |
13 | 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 |
14 | 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 |
15 | Clone | Enables you to create a duplicate of the selected form item along with its applicable properties except for the Item ID. | 2 |
16 | 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. |