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.

disable()

disable the widget on the page.

Parameters

None

Returns

None

show()

Shows the widget on the form.

Parameters

None

Returns

None

required()

Allows to Enable or Disable client side validation  

Parameters

Boolean

Returns

hide()

Hides the widget from the form.

Parameters

None

Returns

None

set_value()

Sets the value of the widget.

Parameters

String

Returns

None

get_element()

Returns the element associated with the widget.

Parameters

None

Returns

JQuery Object

clear()

clear the value of the widget

Parameters

None

Returns

None

get_type()

Returns the widget type

Parameters

None

Returns

String

enable()

Enable the widget on the page.

Parameters

None

Returns

None

get_input()

Returns the input element of the widget.     

Example-Signature Fetch Input Element

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

None

Returns

JQuery Object     

get_canvas()

Returns the canvas element of the widget.

Example-Signature Fetch Canvas

tpc.forms[0].TpcSignature.get_canvas();
Parameters

None

Returns

JQuery Object

get_clearButton()

Returns the clear button element associated with the widget.

Example-Signature Fetch Clear Button

tpc.forms[0].TpcSignature.get_clearButton();
Parameters

None

Returns

JQuery Object

get_container()

Returns the container element of the widget.

Example-Signature Fetch Container Element

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

None

Returns

JQuery Object

get_signaturePad()

Returns the signature pad object associated with the widget.

Example-Signature Fetch Signature Pad

tpc.forms[0].TpcSignature.get_signaturePad();
Parameters

None

Returns

Object

get_value()

Returns the value of the Signature Pad as a DataURL.

Example-Signature Fetch Value

tpc.forms[0].TpcSignature.get_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.

In the case of the CRM ​Signature widget, these returned properties and their types are:

  • PenColor: String
  • ReadOnly: Boolean

Example-Signature Fetch Model

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

Returns

toggle()

toggles the visibility of the widget. ​

Example-EXAMPLE-Signature TOGGLE

tpc.forms[0].TpcSignature.toggle()
Parameters

None

Returns

None

readonly()

 set the widget state to read only

Example-Signature- readonly

//set to true
tpc.forms[0].TpcSignature.readonly(true);

//set to false
tpc.forms[0].TpcSignature.readonly(false);

//show the read only status
tpc.forms[0].TpcSignature.readonly();
Parameters

true, false

Returns

None