OneScript
  • Welcome to OneScript
  • OneScript Overview
    • Dates and Times
    • Sets
    • Types
    • Fields
      • Helper Fields
      • Labels
      • Standard Text
    • Snapshots
    • State Management
    • Future Features
  • Get OneScript
  • Macro Overview
    • Macro Virtual Machine
    • Code Instructions
  • Standard Libraries
    • Core
    • Data
    • Interview Model
  • Linker Overview
    • Objects
  • Contact Us
Powered by GitBook
On this page
  1. OneScript Overview
  2. Fields

Helper Fields

Helper fields are used to support additional features and characteristics of a survey, allowing control at the question/field level. Currently Helper fields support the ability to override error messages for specific questions. This adds an additional level of personalisation. The example below shows a date field with the range error message overridden to be more helpful.

Date1  "Please select a date and time for your call."
  style(Control(Type="date"))
  date ["2018-01-01 09:00am".."2100-12-31 05:00pm"]
  helpers (
    StandardTexts block fields (
        NotInRange "The date cannot be earlier than 1st Jan 2018" info;
    )
  );

PreviousFieldsNextLabels

Last updated 3 years ago