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 .
Writing a shared function text bank item
The contents of a TBX_GLOBAL_FUNCTION_* text bank item: a single function expression for other scripts to eval.
Text by residence state
Show different paragraphs to employees in different states.
Personalized greeting with plan year
Greets the employee by first name and names the plan year.
Formatted hire date
Shows the employee's hire date as MM/dd/yyyy.
Enrollment deadline countdown
Shows days remaining and the end date while enrollment is open.
New hire-only message
A block that only new hires see.
List the employee's dependents
Renders a bulleted list of dependents on file, or a fallback message.
Benefit preview from salary
Shows an estimated 2x-salary life benefit in currency format.
Change a label for one plan only
Replaces a shared label, like Minimum per pay period, for one plan and keeps the default text on every other plan.
Change a label for several plans
Replaces a shared label for a list of plans, like FSA, LFSA and DFSA, and keeps the default text on every other plan.