This is a workaround to Enhancement 71363 Online Case Form: Please search on Contact Email rather than Company email on Select Fields: Search.
Solution
Edit the Online Case Form
- Navigate to Set Up > Support > Online Case Forms
- Click Edit on the Online Case Form
- Online Case Form:
- Click Set Up Workflow
- Create Customer as Companies: Enter Checkmark
- Handle Duplicate Records: Select Update the first record created
- Use Duplicate detection Criteria: Enter Checkmark
- Click Save
Configure the Duplicate Detection
- Navigate to Set Up > Company > Duplicate Detection
- Detect Customer Duplicates: Enter Checkmark
- Customer Fields To Match On: Select Company Name
- Detect Contact Duplicates: Enter Checkmark
- Select First Name
- Select Last Name
- Select Email (Full)
- Click Save
Test the Online Case Form
- Navigate to Set Up > Support > Online Case Forms
- Click View on the Online Case Form
- Online Case Form:
- Click External
- External:
- Click the Publishable Form URL
- Online Case Form page:
- Fill out the form
Note: Make sure it matches an existing contact in the account. - Click Submit
Check the Case Created