Replies: 1 comment
-
If you name a form field “value” in Phalcon, it might not work because “value” is a special word. Try using a different name for the field, like “valuer”, and it should work. Remember to change the name in both your form code and where you display the form. You can use this code to change it: PublixPassport `// In your form // In your view |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The "setDefault" method does not work for forms of type "text" with name "value".
Example Form initialize:
class notificationsEditForm extends Form {
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
Phalcon 5.2.2
Beta Was this translation helpful? Give feedback.
All reactions