Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FormField make default value avaliable in __get function. #43677

Open
peter1szalatnay opened this issue Jun 20, 2024 · 0 comments
Open

FormField make default value avaliable in __get function. #43677

peter1szalatnay opened this issue Jun 20, 2024 · 0 comments

Comments

@peter1szalatnay
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants