You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In order for the form to be able to get the values either from itself or the children elements, it needs to call some methods. In the case of elements getDefault() in the case of the form getValue().
The getValue() method is called in the form to get the value for the relevant element. In there, it checks if there are certain places that the value can be stored. One is the Form object and another the Element object. It checks the properties as well as getters. In your case you name your field value and the getValue() method tries to check the getter i.e. getValue() and therefore calls itself ending up in a crash.
The "setDefault" method does not work for forms of type "text" with name "value".
Example Form initialize:
Example Form in controller:
Example Form in view:
As a result, the form is displayed, but it has no default value (just a blank field).
IF you rename the form, for example, call the field "valuer" - the default value is inserted
Details
The text was updated successfully, but these errors were encountered: