Back End Custom Field Validation

  • Chris Elliott
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
8 years 7 months ago #102730 by Chris Elliott
Back End Custom Field Validation was created by Chris Elliott
Hi Tuan
My fields.xml file looks like this:

Code:
<?xml version="1.0" encoding="UTF-8"?> <config> <fields name="params"> <fieldset name="basic"> <field name="field_speaker" type="text" label="Speaker" size="50" description=""></field> <field name="field_hours" type="text" label="Number Hours" size="50" description=""></field> <field name="event_code" type="text" label="Event Code" size="50" description="" required="true"></field> </fieldset> </fields> </config>

In the back end, Event >> Extra Information I can see an asterisk is added to the label "Event Code" but no error is reported if I leave the field blank.

Am I missing a trick - I would simply like to ensure, on save, that the Entry Code field is filled in.

Can you advise?

Chris

Please Log in or Create an account to join the conversation.

More
8 years 7 months ago #102770 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Back End Custom Field Validation
Hi Chris

Unfortunately, at the moment, we don't support that validation, so admin will have to check and make sure he enters necessary data. I will try to find a way to support this validation in the future

Tuan

Please Log in or Create an account to join the conversation.

Moderators: Tuan Pham Ngoc