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.

get_dateTimePicker()

Returns the DOM of the widgets' input element. 

Parameters

none

Returns

HTML Element 

get_lblReadOnly()

Returns the DOM element of the label if the widget is in read-only mode.

Parameters

none

Returns

String

get_readOnly()

Returns true if the widget is in read only mode.

Parameters

none

Returns

Boolean

get_readOnlyValue()

Returns the date object of a widget set to read only mode.  

Parameters

none

Returns

Object

get_dataFieldName()

Returns developer name for the control. 

Parameters

none

Returns

String

get_value()

Returns the date object of the widget. 

Example-Getting value Example

findControl(".CrmDateTimeField").get_value();
Parameters

none

Returns

Object

set_value()

Sets the date of a date/time widget. 

Example-Set_Value Example

findControl(".CrmDateTimeField").set_value(new Date(2015, 11, 25));
Parameters

Date object

Returns

none

get_dateText()

Returns the selected date as a string. 

Example-Get date text Example

findControl(".CrmDateTimeField").get_dateText();
Parameters

none

Returns

String

set_dateText()

Sets the date of the widget. Values must be formatted specifically, such as MM/DD/YYYY.

Example-Setting Date text Example

findControl(".CrmDateTimeField").set_dateText("05/16/14");
Parameters

Value

Returns

none

enable()

Enables the widget. 

Parameters

none

Returns

none

disable()

Disables the widget. 

Parameters

none

Returns

none