- Posts: 45
- Thank you received: 0
Back End Custom Field Validation
- Chris Elliott
- Topic Author
- Offline
- Senior Member
-
Less
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:
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
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.
- Tuan Pham Ngoc
- Offline
- Administrator
-
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
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
Support
Documentation
Information
Copyright © 2026 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.