Hi,
How could I say to Weblocks that a field is not required to be inserted
by users in a form field?
This is the class associated to my form:
(defclass user ()
((weblocks:id)
(first-name :initarg :first-name
:accessor first-name
:type string)
(last-name :initarg :last-name
:accessor last-name
:type string)
(email :initarg :email
:accessor email
:type string)
(company :initarg :company
:initform nil
:accessor company
:type (or nil string))))
and here is its form view:
(defview user-form-view (:type form :inherit-from '(:scaffold user))
(company :requiredp nil))
With this code, I constantly get a "This value must be valid" error in
the form.
TIA,
Andrea.
--
Reclama i tuoi diritti digitali, elimina il DRM. Approfondisci su
http://www.no1984.org
Reclaim your digital rights, eliminate DRM. Learn more at
http://www.defectivebydesign.org/what_is_drm
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"weblocks" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/weblocks?hl=en
-~----------~----~----~----~------~----~------~--~---