RECOMMENDATION: If you are using a version of The Portal Connector higher than 4.0, we strongly recommend utilizing the MVC based widgets and components to create your site. This documentation is for legacy purposes only and will soon be deprecated.

enable()

Enables the widget on the page.

Example-Enable Static Value

tpc.forms[0].TpcStaticValue.enable();
Parameters

None

Returns

None

set_value()

Sets the value of the widget.

Example-Static Value Set Vlaue

tpc.forms[0].TpcStaticValue.set_value();
Parameters

None

Returns

String     

get_model()

Returns the model object of the widget, which contains a number of useful properties related to the widget.

Example-Static Value Fetch Model

tpc.forms[0].TpcStaticValue.get_model();
Parameters

None

Returns

Object

get_element()

Returns the element associated with the widget.

Example-Static Value Fetch Element

tpc.forms[0].TpcStaticValue.get_element();
Parameters

None

Returns

jQuery Object

get_container()

Returns the container element of the widget.

Example-Static Value Fetch Container Element

tpc.forms[0].TpcStaticValue.get_container();
Parameters

None

Returns

jQuery Object

get_input()

Returns the input element of the widget.

Example-Static Value Fetch Input Element

tpc.forms[0].TpcStaticValue.get_input();
Parameters

None

Returns

JQuery Object

get_type()

Returns the widget type.

Example-Static Value Fetch Type

tpc.forms[0].TpcStaticValue.get_type();
Parameters

None

Returns

String

get_value()

Returns the value of the widget.

Example-Static Value Fetch Value

Parameters

None

Returns

String

disable()

Disables the widget on the page.

Example-Disable Static Value

tpc.forms[0].TpcStaticValue.disable();
Parameters

None

Returns

None