Every student in your organization has a roll number — the number printed on admit cards and ID cards, shaded on OMR sheets, and searched on leaderboards and results. Roll rules decide what those numbers look like: a year or course code at the front, a counter after it, and where the counter starts — with different formats for different courses, batches or tags if you want them.
In the left sidebar, under Students, click Students (/dashboard/students), then click Roll Rules at the top of the page, next to Add Student.
How Roll Numbers Are Issued
- One roll per student, per organization. It is issued automatically the first time a student is enrolled in one of your courses or batches — whether they paid online, were imported, or you added them by hand — and they keep it, even when they join more courses later.
- No rules means a plain sequence. Without any rule, rolls are a 6-digit running number.
- Rules apply to new enrollments only. Saving a rule never changes a roll that already exists. To renumber existing students, use Re-issue existing rolls (below).
- A hand-typed roll still wins. You can set a roll yourself on a student's profile — see How to Manage a Student Profile. The rules skip any number that is already taken.
The Roll Number Rules Dialog
The dialog is headed Roll number rules. Each rule is a card; Add rule adds another, the bin icon removes one, and Save rules saves the whole list. You'll see Roll rules saved. New enrollments use them.
| Field | What it does |
|---|---|
| Name | A label for you, e.g. HSC 27. Required |
| Applies to | Who the rule is for: Default (everyone), Course tag, Tags matching, Course or Batch |
| Target | Changes with Applies to — All enrollments for the default, a tag, a pattern such as HSC {n}, a course, or a course and then one of its batches |
| Fixed prefix | Digits placed in front of the counter, e.g. 27. Only digits and the {n} placeholder are allowed, up to 20 characters. The +{n} button inserts the placeholder for you |
| Counter digits | How wide the counter is, from 1 to 9. With 4, the counter reads 0001 |
| Starts from | The lowest counter value this rule hands out |
| Priority | Breaks ties between rules at the same level — higher wins |
| Format | A live preview of the result, e.g. 27#### · from 270001 |
| Active | Switch off to keep a rule without using it |
Save rules stays disabled until every rule has a Name and a complete Target.
Which Rule Wins
When a student is enrolled, the most specific active rule that fits is used:
- Batch — a rule for the batch they are joining.
- Course — a rule for the course.
- Course tag or Tags matching — a rule for one of the course's tags. These two rank the same.
- Default (everyone).
Between rules at the same level, the higher Priority wins — give competing rules different priorities so the winner is never left to chance. Inactive rules are ignored. If nothing fits, the student gets a plain 6-digit roll.
The first enrollment decides. A roll is issued once, from the course or batch the student joins first. Enrolling them in a second course later doesn't change it — re-issue if it should follow the newer rule.
Prefix, Counter and Starting Number
A roll is the Fixed prefix followed by the counter, padded to Counter digits. Prefix 27, 4 digits, starting from 1 gives 270001, 270002, 270003…
- Rules with the same format share one counter. Two rules with the same Fixed prefix and Counter digits draw from a single sequence, so they never issue the same number twice. Give a rule its own prefix if it needs its own sequence.
- Starts from is a floor. The counter never goes below it. If rolls in that format already exist when a rule is first used, numbering continues after the highest one.
- Taken numbers are skipped — a roll you typed by hand, for example.
- Running past the width adds a digit. With 4 counter digits, 9999 is followed by 10000. Choose enough digits for your largest intake.
The {n} Placeholder
Put {n} in the Fixed prefix and it is replaced by the first number in the name of whatever the rule targets — HSC 27 gives 27.
| Applies to | {n} comes from |
|---|---|
| Batch | The batch name |
| Course | The course name |
| Course tag | The tag name |
| Tags matching | The number the pattern matched in the student's tag |
| Default (everyone) | The student's course name (the oldest course with a number in its name), otherwise their batch name |
If the name contains no number, {n} is simply left out. The Format preview shows NN wherever it can't know the number in advance — always the case for a default rule.
{n} keeps one serial across years. The counter belongs to the prefix as you typed it, so {n}02 is one sequence whether {n} turns into 27 or 28. If each year needs its own serial, write one rule per year with a literal prefix such as 2702 and 2802.
Tags Matching Patterns
Tags matching covers every course tag whose name fits a pattern — one rule for every year instead of a new rule each session.
- The whole tag name must fit — extra words before or after mean no match.
- Capital letters don't matter, and spaces are flexible: one, several or none.
- {n} stands for a number.
- Without {n}, the pattern matches only that exact tag name.
| Pattern | Matches | Doesn't match |
|---|---|---|
| HSC {n} | HSC 27, hsc 28, HSC27 | HSC 27 Science, Admission HSC 27 |
| SSC {n} Batch | SSC 26 Batch, ssc 27 batch | SSC 26 |
| Class 8 | Class 8, class 8 | Class 8 Math |
Worked Examples
One format for everyone
- Applies to: Default (everyone) · Fixed prefix: 26 · Counter digits: 4 · Starts from: 1
- Result: 260001, 260002, 260003…
A separate range for one course
- Applies to: Course — HSC 27 Physics · Fixed prefix: 2701 · Counter digits: 3
- Students whose first enrollment is that course get 2701001, 2701002…; everyone else still follows the default rule.
A batch that starts at 500
- Applies to: Batch — Morning Batch · Fixed prefix: 31 · Counter digits: 4 · Starts from: 500
- Result: 310500, 310501…
One rule for every HSC year
- Applies to: Tags matching — HSC {n} · Fixed prefix: {n}02 · Counter digits: 3
- A student in a course tagged HSC 27 gets 2702001; the next one, tagged HSC 28, gets 2802002; the next HSC 27 student gets 2702003. The year follows the tag, and the serial keeps counting across both.
Re-issuing Existing Rolls
Saved rules only shape new enrollments. To renumber students who already have rolls, use Re-issue existing rolls at the bottom of the dialog:
- Save your rules first. The preview buttons are disabled while there are unsaved changes, with the note Save rules first.
- Click Preview all students — or tick students on the list before opening the dialog and click Preview N selected.
- Read the summary, e.g. 42 of 310 rolls would change., and the Current → New table (the first 500 changes are listed).
- Click Apply N changes. You'll see Re-issued N roll numbers.
- All students — every roll is freed, sequences restart from Starts from, and students are numbered oldest first.
- Selected students — only they are renumbered, taking the next free numbers in their sequence. Everyone else keeps their roll.
Re-issuing doesn't reprint anything. Printed admit cards, OMR sheets and attendance device PINs still carry the old roll. Re-issue before you print for a session, not in the middle of one.
Fix Duplicate Rolls
On the Students list, with no students selected, Fix Duplicate Rolls gives a new roll — following your current rules — to every student whose roll is missing or duplicated. Students with a unique roll keep theirs. Confirm with Fix Now.
Troubleshooting
| What you see | What it means |
|---|---|
| A new rule had no effect on existing students | Correct — rules only apply to new enrollments. Use Preview all students and Apply |
| Save rules is greyed out | A rule is missing its Name, or its Target isn't picked yet |
| The preview buttons are greyed out | You have unsaved rule changes. Click Save rules first |
| A student got the default format instead of the course rule | Their first enrollment was in a different course, or the course rule is switched off |
| Two rules seem to share numbers | They have the same Fixed prefix and Counter digits, so they share a counter. Change one prefix |
| {n} came out empty | The batch, course or tag name has no number in it |
| A Tags matching rule never applies | The tag name has extra words. The whole name must fit the pattern |
| Rolls jumped from 4 to 5 digits | The counter passed 9999. Use more Counter digits |
| Admit cards show old rolls after re-issuing | They were printed before. Print them again |
Related: How to Manage the Enrolled Students List · How to Manage a Student Profile · Process OMR Sheets