In Diary of a Wimpy Kid: The Third Wheel, the student council election plot doesn't list formal eligibility rules (age, GPA, attendance). But Greg Heffley's campaign reveals the actual condition for winning:
Greg tries scheme after scheme to boost his social standing:
He believes—and the book confirms—votes follow perceived likability, not competence or platform. The election is portrayed as a pure popularity contest.
So while the book doesn't state explicit candidacy requirements, the de facto condition is clear: win the social game, win the election.