Conditional formatting in Text Mode
Text mode enables you to create more complex views, filters, groupings, and prompts by allowing you to use fields that are not available in the standard interface.
For a complete list of all our reportable fields, see the API Explorer.
For more information about using text mode syntax, see Text mode syntax overview.
You can also use text mode to format views in reports and lists. Using conditional formatting, you can change the views of your reports by changing the font type and background of the results in the report, as well as icons and flags. We recommend that you always build your views using the standard interface first and switch to the text mode interface only when absolutely necessary.
Add conditional formatting to Views
For more information about applying conditional formatting to a view in the standard builder interface, see Use conditional formatting in views.
To add conditional formatting to a view in the text mode interface:
- Go to a list of objects.
- Expand the drop-down menu of a view to which you want to add conditional formatting.
- Click Customize View.
- Click the column in the view to which you want to apply conditional formatting.
- Click Switch to Text Mode.
- In the Show in this column: area, click Click to edit text.
- Add the code samples provided in Format Views using Text Mode at the bottom of the text in the column you selected.
- Click Save, then click Save View.
Format Views using Text Mode
You can add the following components to a column in a view to conditionally format it in text mode:
Column settings
You must be familiar with the text mode interface before you can add conditional formatting to your views.
You can customize the following elements of a column when using conditional formatting in a view:
Column headers
To change the displayed column header, add the following code to your column: displayname= [Name of column]
. For example, to name a column Project Owner, the text code would look like:
displayname=Project Owner
Format dates
Dates can be configured to display in various formats.
For more information, see Format dates in text mode reports.
Format numbers
You can format numeric values to display information that best suits your reporting needs.
For more information, see Format numbers, currency and percentage values in text mode reports.
Column rules
Column rules allow for the addition of images, color, formatting, and text overrides within a view. Column rules can be established independently or can contain multiple conditions for a column.