Custom Styling in Interactive Capture

Use the following information to create custom styles for the Web UI.

A Cascading Style Sheet (CSS) file for customizing the appearance of the Interactive Capture Web client form is provided and can be used to override Interactive Capture styling, or to add new styling for newly defined Extended Field Properties. This file is named Custom.css and can be found under the AutoStore installation directory at: InteractiveCapture\wwwroot\.

Customizing the appearance of the Interactive Capture form requires knowledge with CSS, HTML and browser debugging tools and should not be attempted without proficiency in these skills.

Styling Extended Field Properties

Extended Field Properties (XFP) are passed to the Interactive Capture Web client by adding additional attributes, known as expando attributes, to the HTML for each form field. These expando attributes are formatted as follows:

data-property name = “value1 value2 value-n”.

<div class="sc-jrsJWt hYEEsI form-field" data-highlight="label">
	<div class="sc-gXfVKN jKLUHq">
		<label for="mf_...>Label Highlight </label>
		...
	</div>
</div>
<div class="sc-jrsJWt iASXaA form-field" data-highlight="textbox">
	<div class="sc-gXfVKN jKLUHq">
		<label for="mf_...>Textbox Highlight </label>
		...
	</div>
</div>
<div class="sc-jrsJWt jNGuAI form-field" data-highlight="label textbox">
	<div class="sc-gXfVKN jKLUHq">
		<label for="mf_...>Label/Textbox Highlight </label>
		...
	</div>
</div>

Expando attributes are assigned to the outer field container where they may be referenced and interpreted by client scripts or referenced through CSS; the below example illustrates how to highlight fields associated with the “highlight” XFP by italicizing the label and changing the color and size of the text box bottom border. The two CSS classes in the code below utilize the tilde + equals sign which instructs the browser to match any part of the property value with the text following the sign.

.form .form-field[data-highlight~=label] 
{ 
    font-style: italic; 
}

.form .form-field[data-highlight~=textbox] input
{
    border-bottom: 2px solid orange;
}

The next figure shows how the Interactive Capture web client form field can be styled using XFP. The “highlight” XFP has been assigned to each field; however, they each have their own combination of values assigned. The first field has a “label” value, which has resulted in the field label being rendered with an italic font. The second field has the “textbox” value, which has resulted in the field text box being rendered with a thicker bottom border and a more noticeable color. The last field has been rendered with both styles since it has both “label” and “textbox” as its “highlight” value.