When it comes to veiled chameleons you have to make sure his cage is setup properly - a bad cage is just as bad as him not eating / drinking.
Glass is bad in most cases - it's difficult to find a glass cage that is big enough for a veiled, and glass terrariums are difficult to acclimatize to a veiled chameleon's needs. Veileds need ventilation, and the ability to choose between different temperatures to bask in. A screened enclosure that is at least 2x2x4 feet in size is the best option. You
do not want to include substrate, like sand, soil, or mulch to the bottom of the cage. You want to have lots of branches and foliage for him to climb in and around.
Crickets are what many feed as staple diets, but flies, locusts, mantids, butter worms, horn worms, silk worms, meal worms are also good, however you want to avoid feeding him just one type of bug. Veggies and fruits are good for hydration, but shouldn't make up most of their diet.
https://www.chameleonforums.com/care/chameleons/ Go to this page, it will give you all of the basic information you need to know to keep your chameleon healthy.