The name of any candidate shall not be placed upon the official ballot in general elections as a party nominee who is not nominated as herein provided, and the election of any party nominee who shall be nominated otherwise than as provided in this chapter shall be void and he or she shall not be entitled to hold the office to which he or she may have been elected.