Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

Customizing condition field

Shuvaday1
Tera Contributor

Hi 

I am trying to add a Conditions data type field to a custom table to create filter conditions.My criteria:
1.It should have only a few selective columns for query creation.

2.Only AND clause should be used.

 

Can someone please help me to customize according to these?

 

Thank You

Shuvaday Chatterjee

 

4 REPLIES 4

Nikhil65
Mega Guru

Your question is not clear.

Could you please provide an example for better understanding.

I am looking for similar stuff as below screenshot for my custom table.But i need to have :

1.only AND condition 

2.the filter should be applied only on a few columns of the table.

3.Only equal to condition should be provided for the operator.

 

 

 

 

find_real_file.png

Hi Shuvaday,

>2.the filter should be applied only on a few columns of the table.

If only columns that can be filtered should be shown, this can be done by database view.

Otherwise, it would be necessary to build a custom widget that can be used in service portal.

AFAIK, it not possible to customize OOTB filter conditions.

 

Ankur Bawiskar
Tera Patron

@Shuvaday 

I don't think you can show selective columns for query; it would show all from the table

Also you cannot remove the OR clause without using DOM manipulation which is not recommended.

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader