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.
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.
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.
Spouse age limit
Spouse coverage only available under a maximum age.
Show only for the employee
Question appears only on the employee's row, not on dependents.
Show only for the spouse
Question appears only on the spouse's row (optionally domestic partner too).
Show for ages 40 and over
Age-triggered question (e.g. extra health question at 40+).
Follow-up question shown when a parent answer is 'True'
Show a follow-up only after the person answers Yes to a prior question.
Employee-level spousal question only when a spouse is on file
e.g. 'Does your spouse have access to other employer coverage?' only when a spouse exists.
Agent-only question
Internal question shown only when an enroller is running the session.