FAQ: How to decorate the text of items that match a condition in an Index
## Answer
Please use "「Server Script」" and "「Style」".
---
## Overview
This is a sample code that decorates the text color of the date (DateA) in the "「Index」" of Pleasanter if the date (DateA) is within one month (including the past). The text-decoration is specified in "「Style」".
## Operation Image

## Operation Procedure
1. Create a table
1. Create a new "「Server Script」" and write the following script. Check "Before row display" as the condition and update.
1. Create a new "「Style」" and write the following code. Check "「Index」" as the output destination and update.
1. From the "「Editor」", activate DateA according to the sample code below.
1. Open a new record from the "Create New" button and enter today's date in DateA to create a record.
1. Return to the "「Index」" and confirm that DateA is displayed in red.
## Sample Code
##### JavaScript
```
let now = new Date()
let limit = now.setMonth(now.getMonth() + 1);
if (model.DateA <= limit) {
columns.DateA.ExtendedCellCss = 'alert-color';
}
```
##### CSS
````
.alert-color {
color: red;
font-weight: bold;
}
````
## Related Information
<div id="ManualList">
<article class="s-blog_list_unit"><h2>
<h2>The specified information was not found.</h2>
<p><a href="/ja/manual">Return to top</a></p>
</article>
</div><input id="SearchTextHidden" type="hidden" value="" />