Support

Akeeba Ticket System

#37872 Hide empty fields

Posted in ‘Akeeba Ticket System for Joomla! 4 & 5’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

Joomla! version
4.2.3
PHP version
n/a
Akeeba Ticket System version
5.1.1 (free)

Latest post by nicholas on Wednesday, 12 October 2022 08:00 CDT

b2z

Hi,

If a user did not fill out fields, and submit a ticket, then these empty fields are displayed (their names).

Is there an option to hide empty fields? It is logical not to display such fields.

https://postimg.cc/JDYPZrvc

Thanks.

nicholas
Akeeba Staff
Manager

No, Joomla does not provide a way to hide custom Fields. Remember that custom fields are rendered by Joomla, not ATS itself. The only change we can and do make is provide a layout (components/com_ats/layouts/akeeba/fields/render.php) to format the HTML for rendering field groups and another layout (components/com_ats/layouts/akeeba/field/render.php) to format each individual field. You can of course do a template override of the latter to create your custom rendering rules.

Also note that depending on the use case it makes sense to display empty fields more often than not. For example, you did not provide a PHP version or a Host in your ticket. This is useful for me to know when replying to a ticket. The lack of information is information in and of itself.

Finally, keep in mind that if you have sets of fields which only make sense to be filled in (and displayed!) contingent to the value of other fields you can use the ShowOn feature as described in the documentation. For example, I can have a drop-down with CMS type where you can select Joomla or WordPress. If you select Joomla I need the Joomla version and show that field. If you select WordPress I need a WordPress version so I hide the Joomla version field and show you the WordPress version field. If you do not fill in the respective CMS version field I still need to know that you did that.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!