Script Helper
Sample BenSelect® scripts with notes on how they work, where they go and what to change. Search by keyword or by tag — try or .
Active employees only
Only employees with an Active employment status can enroll.
Minimum hours per week
Employee must work at least a set number of hours per week.
Allowed job classes (list)
Eligible only when the employee's job class matches one of a list of descriptions.
Exclude job classes containing a keyword
Blocks any job class whose description contains a word such as 'Retiree'.
Minimum annual salary
Eligible only when annual salary meets a threshold.
Work location eligibility
Plan is only offered at specific work locations.
Not available in certain residence states
Hides a plan for employees who live in excluded states (e.g. product not filed there).
Employee age limit
Employee must be under a maximum issue age as of the plan's age base date.
Custom field flag (e.g. union member)
Eligibility driven by an employee custom field loaded from the census.
Agent-only plan
Plan is visible only when an enroller/agent is running the session.
Requires enrollment in another plan
Eligible only if the employee has (or is electing) a required plan, e.g. a buy-up that needs Medical.
Mutually exclusive plans (no HSA with FSA)
Not eligible for this plan when the employee already has coverage in a conflicting plan.
Lock enrollment for a job class (self-service only)
Employees in one job class can't change this plan themselves; agents still can.
Lock enrollment outside the new hire window
Once the employee's new hire window has passed, nobody (including agents) can change this plan.
Lock self-service for terminated / COBRA employees
Terminated or COBRA employees can't make self-service changes; enrollers can still help them.
Hide the benefit level / coverage option selectors
One-time UI config: hide selectors when the script, not the employee, picks the level.
Debug: log the eligibility inputs
Prints the values an eligibility rule usually depends on, so you can see why someone is or isn't eligible.
Child age-out at 26
Children are eligible until age 26; all other dependents follow other rules.
Disabled child exception to the age limit
Children over the age limit stay eligible if flagged as disabled.
Student extension
Children eligible to 19, full-time students to 25, disabled children at any age.