CSV import and exports
The file formats JoomElection reads and writes.
Voter import
Read by Voters > Import voters. See Voters for the steps.
- Separator: comma or semicolon, chosen in the import form.
- No header row. Every row is a voter.
- Columns: name, username, password, email, then optional vote weight and optional max votes per candidate.
- UTF-8 is read as is. Other encodings are converted from Latin-1.
- Usernames and emails must be new on the site.
Results to CSV
election_result.csv, separated by semicolons.
- A header block: the election name, the export date, Total number of voters, Voters who voted, Turnout and Votes cast by visitors without an account.
- An empty line.
- For candidate elections: candidate number, candidate name and votes, plus list name and list votes for list elections. For motions: motion number, title, Yes, No, Abstain and outcome.
Votes are weighted totals in a weighted election. Candidate names are written as they are, so a name containing a semicolon shifts the columns of that row.
Detailed Results to CSV
election_detailed_result.csv, UTF-8 with a byte order mark so Excel reads accents, separated by semicolons.
- The same header block as above.
- One row per vote with the columns you chose in Select Fields to Export.
A voter who splits votes between three candidates has three rows. A motion ballot has one row per motion. Rows are sorted by vote time.
The fields you can include in the detailed export.
Columns:
| Column | Notes |
|---|---|
| Voter Name, Voter Username, Voter Email | Members always. Guests show "Guests (no account)" unless the election uses Named ballots. |
| Candidate Name, Candidate Number | For motions, the motion title and number. |
| Candidate List | List elections only. |
| Vote Timestamp | Y-m-d H:i:s in the site's time zone. |
| Vote weight | The votes this row carries. |
| Voter entitlement | Weighted elections only. The voter's allowance. |
| Unspent votes | Split mode only. |
| Choice (Yes/No/Abstain) | Motions only. |
Weighted voters only (more than one vote) limits the rows to voters with an allowance above 1.
Text cells that start like a spreadsheet formula get a leading apostrophe, so they open as text.
Participation List to CSV
election_participation_list.csv, UTF-8 with a byte order mark.
- A header block: the election name, export date, Voters who voted, Votes cast by visitors without an account and Visitors without an account whose name was not kept.
- One row per participant: Voter Name, Voter Email and Type (Member or Guest), sorted by name.
It has no choices and no times, so it cannot be matched against the detailed export.