function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Ashok Kumar 577Ashok Kumar 577 

Without save button click how to know value exist or not on custom object

Create a record on the custom object in avoiding duplicate value using duplicate rule and Matching rule on save button click.
But how I find out duplicate value before saving button click. 

Actually, the main problem is after all field is filled and save button click then alert is coming .This field already exists.
Best Answer chosen by Ashok Kumar 577
ShirishaShirisha (Salesforce Developers) 
Hi Ashok,

Greetings!

This can be achieved in the lightning as mentioned in the Idea given below in Standard way:

https://trailblazer.salesforce.com/ideaView?id=0873A000000cOjrQAE

If you need this to be done on the custom page you might need to check for the duplicates based on the entered value and then fire the error message on the Column as suggested in the below thread:

https://developer.salesforce.com/forums/?id=9060G0000005TUkQAM

Kindly mark it as best answer if it helps so that it can help others in the future.

Warm Regards,
Shirisha Pathuri

All Answers

ShirishaShirisha (Salesforce Developers) 
Hi Ashok,

Greetings!

This can be achieved in the lightning as mentioned in the Idea given below in Standard way:

https://trailblazer.salesforce.com/ideaView?id=0873A000000cOjrQAE

If you need this to be done on the custom page you might need to check for the duplicates based on the entered value and then fire the error message on the Column as suggested in the below thread:

https://developer.salesforce.com/forums/?id=9060G0000005TUkQAM

Kindly mark it as best answer if it helps so that it can help others in the future.

Warm Regards,
Shirisha Pathuri
This was selected as the best answer
Ashok Kumar 577Ashok Kumar 577
*Thanks for your support*. I got salesforce lightning warning can appear once enough information has been entered to detect a match.
Flainse ScorpioFlainse Scorpio
Thanks for sharing your reply here keep share your queries here
so anyone from the community who has faced the same issue can also find 
the solution from comments below, keep sharing PupilPath (https://www.pupilpath.us/)