Custom HTML elements

Custom HTML elements can be added on Camlin Interaction's Visual channel. Examples of custom HTML elements are headings. radio buttons, input boxes, checkboxes, text areas, etc. Refer to your selected stylesheet/javascript to build and initialize your HTML elements.


Setting a CamlinConnect variable from a custom HTML element

CamlinConnect provides a way to set a variable value using the captured value of an HTML element. This is done by calling a javascript function "setVarValue". This function takes the element reference. The id of the element must match the variable name to set the value. Here are few examples of a custom HTML elements with an event configured to set a variable value



<input type="date" id="sys-date" onChange="setVarValue(this)">

<input type="text" id="userName" onChange="setVarValue(this)">