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.
On the Edit Competitor page, event specific information can be displayed above the competitor section, for example
On the Edit Competitor page, event specific information can also be displayed above the race selection section, for example (from the Lake Kareta event)
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
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
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)