[html-formfu] Re: Radiogroup problem

Lance A. Brown lance at bearcircle.net
Wed Jun 4 19:21:32 BST 2008


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



More information about the HTML-FormFu mailing list