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
Vadivel MuruganVadivel Murugan 

Lookup Field

I have like to compare previous lookup field value and current lookup field value. If it is same value record is saved, otherwise throw error message.
frzfrz
Hi
Couuld you please tell in brief,you have two lookup field and wanted to compare both field or you have one lookup field ?
Vadivel MuruganVadivel Murugan
I have one lookup field. Enter a fresh entry this lookup field the value has accept. When i have enter the same lookup field for another value, first compare previous value and current value is same to accept the value. otherwise display error. using apex code
SathyaTrekbin TechSathyaTrekbin Tech
Hi Vadivel,

Do you want to do this comparision in a trigger or you are having custom lookup in a VF page?
Provide bit more inputs..

Thanks,