Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Info Panel is an item with its own header and HTML content as body text that displays textual alerts, explanations, or information.


Image Modified


  • Containers & More > Information Fields > InfoPanel


Image Modified


The Info Panel's Display Name Key or Plain Label will appear as the Info Panel's Header Text. The Info Panel's value (use will appear as body text. To set a value for the Info Panel item, use the fm.setValue() method to set value) will appear as body text. For example, 

Code Block
languagejs
canvas.ns("canvas.form.listeners");

canvas.form.listeners.TandC_Form = Class(canvas.Observable, 
{
	constructor: function(config) 
	{
		this.fm = config.fm;
	},
	
	registerHandlers: function() 
	{	
		this.fm.registerHandler(CFEC.POST_FORM_RENDERER, function(fm, event, fieldName, value)
		{
			fm.model.setValue('TERMS',"I / We declare that the information provided herein above is accurate and complete.");
			// Here, TERMS is the Info Panel item ID.
		})
	}
});

CFLR.registerListener("FORM_TC", canvas.form.listeners.TandC_Form);
// Here, FORM_TC is the form ID.

The following table provides information about the properties that are applicable to this form item:

Image Modified

#

Property

Description

Sample Values

1

Form ID

Unique ID of the Form on which you want to place the Form Item.

FRM_AUDIT_RPT

2

Item ID

Unique ID to the Panel.

AUDIT_RPT_PANEL

3

Item Type

To identify the item type in a form.

INFOPANEL

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.
Form item bundle key supersede the form level bundle key. If this value is blank, form level bundle key will be used to find label keys.

Common

6

Plain Label

Text entered in this field will appear as the label of the item without bundle key translation.
If you are using the property files, leave this as blank.


7

Display Name Key

Property driven label key for the form item

INFO_HEADER_TEXT

8

Visibility

Selected: Shows the form item on the Form.
De-Selected: Hides the form item from the form, but the data will still be in active.

Selected

9

Column Span

Occupies the specified number of item spaces horizontally for the current item.

1

10

Print

Selected: Allows printing the form item while printing the form.
De-Selected: Does not print the particular form item while printing the form.

Selected

11

Settings Menu: Total Number of Columns within a container

Arranges the form items within the form in the given number of columns.


Image Modified

2

12

Clone

Enables you to create a duplicate of the selected form item along with its applicable properties except for the Item ID.

2

...