We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

Adding new option to date

Not applicable

Hi,

I want to add new option(Two years ago) to the filter,

I've added "answer.add('180_Two years ago@javascript:gs.monthsAgo(24)@javascript:gs.endOfThisMonth()', gs.getMessage('Two years ago'));" this in OOB BR-- Get Date Filter Options for Date Filters. but it isn't showing up.

 

KhasimPathan_0-1709188056168.png

 

Is there any other way to achieve this ?

1 ACCEPTED SOLUTION

Hi @Community Alums 

 

No, it's not possible to add. Please refer below post where ServiceNow support confirmed on the same:

https://www.servicenow.com/community/developer-forum/how-to-add-new-selections-to-the-filter-options...

 

You can create a relative filter and save it with visibility to everyone so that it could be reused.

 

Thanks & Regards

Amit Verma

Thanks and Regards
Amit Verma

View solution in original post

10 REPLIES 10

Hi @Community Alums 

 

No, it's not possible to add. Please refer below post where ServiceNow support confirmed on the same:

https://www.servicenow.com/community/developer-forum/how-to-add-new-selections-to-the-filter-options...

 

You can create a relative filter and save it with visibility to everyone so that it could be reused.

 

Thanks & Regards

Amit Verma

Thanks and Regards
Amit Verma