I want a pop up alert if account create with simillar name?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2024 05:02 AM
Hi All,
Actually i have a requirement that i have Account form, on that name field with string field, so whenever user will create new record if he type similar name which already exist . example Asian Paints is one account,
1.so if he wants create with same name then it won't submit a record
2. second senario was " Asian paints" , if he type something simillar like Asian or Paints , then it pop up a alert message saying " already a record exist similar name , do you want proceed?, if he click ok it save otherwise , will update new name
Please help me to achieve this
Thanks
Deepika
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2024 05:07 AM
Hi @Deepika61
You need to write script for this and check all records if name is same or not, It may impact the system, as number of records more which can time to check and return the results
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
02-20-2024 08:34 AM - edited 02-20-2024 08:38 AM
Thanks for the response
Actually when if account is created with existing same name , i have wrote client script
but my concern if account is created with similar kind of name like suppose he create a account name with "Asian" but in system there is record with name " Asian Paints" , then i need a pop up alert message saying " already a record exist similar kind of name , do you want proceed?, if he click ok it save otherwise , will update new name?
Thanks
Deepika
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2024 09:06 AM
Hi Deepika,
In your code change the update the query to contains. But it is not recommended. In most cases, names are almost similar. You can recommend add prefix (or) suffix to that record name(number (or) ID of the record as prefix (or) suffix).
If I could help you with your Query then, please hit the Thumb Icon and mark it as Correct !!
Thanks & Regards,
Sumanth Meda
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2024 07:21 PM
Yes, most of the names or simillar but the idea was like if it is similar they may want to change the name , if we have pop up alert with ok and cancel , if they continue with same name they will go with ok otherwsie , they will click cancel and change the name
Can you please provide me a same script for this if possible?
Thanks
Deepika