joomla-cms icon indicating copy to clipboard operation
joomla-cms copied to clipboard

FormField make default value avaliable in __get function.

Open peter1szalatnay opened this issue 1 year ago • 0 comments

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

peter1szalatnay avatar Jun 20 '24 11:06 peter1szalatnay