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.
Add 'default' to the switch case for FormField::__get function.
| Labels |
Added:
No Code Attached Yet
|
||
| Labels |
Added:
Feature
|
||
| Status | New | ⇒ | Closed |
| Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2026-02-21 19:47:41 |
| Closed_By | ⇒ | HLeithner |
You can already get default value of the field using
getAttributemethod. For example$default = $field->getAttribute('default');