No Code Attached Yet
avatar peter1szalatnay
peter1szalatnay
20 Jun 2024

Is your feature request related to a problem? Please describe.

It would be good to be able to check if the current selected form field value is the default or not.

Example:

$active = $field->value != $field->default ? true : false;

Right now default always return null as it is not in the allowed __get list.

Describe the solution you'd like

Add 'default' to the switch case for FormField::__get function.

Additional context

avatar peter1szalatnay peter1szalatnay - open - 20 Jun 2024
avatar joomla-cms-bot joomla-cms-bot - change - 20 Jun 2024
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 20 Jun 2024

Add a Comment

Login with GitHub to post a comment