Custom styling in WebCapture

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

A Cascading Style Sheet (CSS) file for customizing the appearance of the WebCapture web client form is provided and can be used to override WebCapture 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: ASWCCapture\CSS\.

Customizing the appearance of the WebCapture 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 WebCapture 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”.

This figure shows how XFP are passed to the WebCapture web client by adding expando attributes to the HTML for each form field.

Expando attributes are assigned to the outer field container where they may be referenced and interpreted by client scripts or referenced through CSS; for example, the figure below 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 figure below utilize the tilde + equals sign which instructs the browser to match any part of the property value with the text following the sign.

Use the “highlight” XFP to italize labels or change the color or size of a text box bottom border.
CSS selectors vary by browser type and version and this markup is supported by the latest versions of Internet Explorer, FireFox, and Chrome.

The figure below shows how the WebCapture 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 results 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.

This figure shows how the WebCapture web client form field can be styled using XFP.