This is in some contexts solved by having different ballots per choice. In Norway you go into a booth and select the ballot of your preferred party, fold it (they all look the same on the outside) and drop it in the box.