Why there is two magnifying glass (search icon) on a reference field? How can i deal with it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2024 12:51 AM - edited 06-04-2024 02:09 AM
Hi everyone,
There is two magnifying glass (search icon) on a reference field, the picture of which is attached below.
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.
Only right one of the search icons is expected. How should i deal with it?
Thank you very much.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2024 12:55 AM
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]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2024 05:42 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2024 10:47 PM
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]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2024 06:38 AM
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