This post summarises the changes that have been implemented in version 3.0.14 of enterO.

This release adds improvements to entry validation and display.

  • Allow custom content on edit competitor page
  • Add support for custom entry validation functions
  • Display validation rules

Allow custom content on edit competitor page (#90)

There are cases where it is useful to provide additional information to users during the entry process. This release adds a feature where it is now easy to add event specific text to the Edit Competitor page. This can be done both before the competitor section and before the race section.

Competitor section

On the Edit Competitor page, event specific information can be displayed above the competitor section, for example

Custom text, competitor section

Race section

On the Edit Competitor page, event specific information can also be displayed above the race selection section, for example (from the Lake Kareta event)

Custom text, race section

Add support for custom entry validation functions (#91)

Entry validation has been improved so that it is now easy to add additional event specific rules into the validation process. In the case of any validation rule (standard or custom) failing, the cause of the error is displayed and the entry can not be submitted.

This has been implemented for the Lake Kereta event where competitors must enter the same start block for both days and the 10am start block is reserved for campers. For example

Custom validation, race section

Note that this feature requires a custom php class to be deployed when the event is added to enterO.

Display validation rules (#92)

The complete set of validation rules are displayed as follows

Entry has error

If an entry has an error, the validation rules (including any custom rules), are displayed as a tooltip on the error text, for example

Validation rules

Entry has no error and admin user

The validation rules are not normally available for entries without errors, however for admin users the validation rules (including any custom rules), are displayed as a tooltip on the new Entry validation rules line, for example (from an event without any custom rules)

Validation rules for admin users