Customize Currency Display Styles in Search Criteria

Customize Currency Display Styles in Search Criteria

Return to Customize Search Criteria Styles

Modifying the default Styles for Currency

A default Currency display is shown below associated with the column Cost. If the Is Between operator (designated #1 below) is selected, the display changes slightly to reveal the word and and a second text box control (see #3 below). Task Status is a choice type column and is shown for comparison.

cost control before.png
cost control before1.png

Different classes are associated with each control included with the Cost column search criteria:

Class Default
1. The .DropDownListControlsCurrency class is used to control the display of the drop down menu that lists the possible operators (i.e., Is Equal To, Is Less Than).
.DropDownListControlsCurrency
{
min-width:120px ;
}
2.

The .TextBoxControlsCurrency class is used for the box where search criteria for columns of type currency is entered. When the operator In Between is selected, a second box appears. It is controlled by the same class.

Icon-WarningNOTE: When the operator In Between is selected, a second box appears. This class also controls that second box.

.TextBoxControlsCurrency
{
min-width:135px;
}
3. The .LabelControlsCurrency class is used for the word and that appears between the two text boxes when the operator Is Between is selected.
.LabelControlsCurrency
{
width:auto ;
float: right !important;
}

The table below shows examples of common changes possible for Currency columns. Additional examples may also be possible.

Change Example

To shorten the control where you enter the currency value, change the min-width value of the .TextBoxControlsCurrency class.

To shorten the control where you select the search operator (i.e., Is Equal To), change the min-width value of the .DropDownListControlsCurrency class.

For example, make these changes:

.TextBoxControlsCurrency
{
min-width:100px;
}

.DropDownListControlsCurrency
{
min-width:100px;
}

The result looks like this:

currency after changes.png

When a user enters invalid text into the search area for a currency column, an error is displayed. The .LabelControlsCurrencyError class controls the display of the message.

The default error display is:
currency error before.png
Change the text to blue:

.LabelControlsCurrencyError
{
color: #0000FF;
width:auto ;
}

The result looks like this:

currency error after.png

Change the font weight and color of the word and that appears when the user chooses the operation In Between. The .LabelControlsCurrency class controls the display of this word.

Change the text to bold and green:

.LabelControlsCurrency
{
color: #FF0000;
width:auto ;
font-weight: bold;
color: #008000;
}

The result looks like this:

cost in between after.png

Change the display of the Label. The label is the text that appears to the left of the operator selection drop down. All labels have the same class, regardless of the type of column. See this article for examples of how to change them.