Instructions:
Field Selection: In this example, the script retrieves the value from the Phone field. You can modify this to search based on any other field by changing "Phone" to the desired field name in the getField method.
Criteria Format: The search criteria is formatted as "Field_Name:equals:Field_Value". Change Field_Name to the desired field's name and Field_Value to the value you want to search for.
Response Handling: If a lead matching the search criteria is found, an error message "Lead already present" will be displayed.