Why there is two magnifying glass (search icon) on a reference field? How can i deal with it.

Yu_G
Tera Contributor

Hi everyone,

 

There is two magnifying glass (search icon) on a reference field, the picture of which is attached below.

Yu_G_0-1717487083940.png

If clicking the left one, a table shows. 

If clicking the right one, the tree view of the same table shows.

 

I went to studio and checked the certain form layout and found that there is a reference field of that table and a formatter of a UI macro to call out the tree view of the table. 

In the script of UI macro, the former search icon of the reference field has already been set undisplayed.

The script is as follows.

elem.style.display = 'none';

 

Only right one of the search icons is expected. How should i deal with it?

 

Thank you very much.

4 REPLIES 4

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @Yu_G 

 

Please check the attribute of the same field. 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Hi @Dr Atul G- LNG 

Thank you for your help.

I updated some info and would u mind check my question again?

I am confused why element.style.display = 'none' is not working in UI Macro.

sorry mate, I am not a coder 😞 

 

@AshishKM  @Sandeep Rajput  @Anurag Tripathi any thoughts.

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

AshishKM
Kilo Patron
Kilo Patron

Hi @Yu_G , 

Can you share comeplete picture, module , table , field name so we can check on our instance.

OOTB or some custom table/field.

 

-Thanks,

AshishKM

 


Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution