An alternative to an air gap is not allowed by code. The high-loop method of installing a dishwasher drain hose is often used by older plumbing professionals. One of these can be used for an air gap and the other for hand-sprayer installation.
Let's Get It Fixed!
HomeX virtual experts will assess your issue (for free!) and can resolve simple problems.