Custom Styling in Web 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 Web Capture Web client form is provided and can be used to override Web 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: ASWCCapture\CSS\.

Customizing the appearance of the Web 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 Web Capture Web client by adding additional attributes, known as expando attributes, to the HTML for each form field. As shown in Figure 1, these expando attributes are formatted as follows:

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

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, Figure 2 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 Figure 2 utilize the tilde + equals sign which instructs the browser to match any part of the property value with the text following the sign.

CSS selectors vary by browser type and version and the markup in figure 2 is supported by the latest versions of Internet Explorer, FireFox, and Chrome.

Figure 3 shows how the Web 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.