Litter box problems can be more complex, but your vet should be able to offer some suggestions. My calico used a large palm plant for a potty when she was a kitten and when I finally caught her in the act, I squirted her, spoke sharply and put her on her litter box. Never had a problem after that.
OH! I'm sure a squirter is VERY effective!
