ivorw wrote:
    - type: Text
      name: email_address
      label: Email address
      constraints:
        - Email
        - Required
# Added below causes a problem
    - type Radiogroup
      name: active
      options:
        - [ 0, 'Inactive' ]
        - [ 1, 'Active' ]
        - [ 2, 'Suspended' ]

Typo alert: You're missing a colon ":" after the 'type' token on the RadioGroup line.

[error] Caught exception in RockBase::Controller::Admin->user "Can't
locate object method "options" via package "HTML::FormFu::Element::Text"

The error indicating it can't find an 'options' method on a ...::Element::Text led me to the typo.

--[Lance]
--
 GPG Fingerprint: 409B A409 A38D 92BF 15D9 6EEE 9A82 F2AC 69AC 07B9
 CACert.org Assurer

_______________________________________________
HTML-FormFu mailing list
HTML-FormFu@lists.scsys.co.uk
http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu

Reply via email to