[Catalyst] FormBuilder not working

Giancarlo Corcuera giancarlo at capybara-software.com
Thu Sep 25 23:40:06 BST 2008


abhishek jain wrote:
>
>
>     That problem is solved , i have yet another one,
>     In my form definition i am writing the following:
>
>     name: search
>     method: post
>     fields:
>             dom:
>                     label: Dom
>                     type: text
>                     size: 30
>                     required: 1
>             ext:
>                     label: Ext
>                     type: select
>                     required: 1
>     fieldopts:
>             ext:
>                     options:
>                             id1
>                             val1
>                             id2
>                             val2
>
>
>     I need a select option box with the id1 and id2 as option  and
>     val1 and val2 as values.
>
>     I am not sure how to do so, 
>     Also where to get help if the next problem arises,
>     Pl. help.
>     -- 
>     Thanks and kind Regards,
>     Abhishek jain
>
>
>
> Someone pl. reply,
> Thank,
>  abhi
> ------------------------------------------------------------------------
>
> _______________________________________________
> List: Catalyst at lists.scsys.co.uk
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
> Dev site: http://dev.catalyst.perl.org/
>   
For example I do something like this for a radio button
  lang_publish:
    label: Publish
    options: Y=Yes, N=No
    value: N
    required: 1

For a select like you want it should be
  lang_publish:
  label: Publish
  options: Y=Yes,N=No
  type: select
  required: 1

also youcan add the multiple attribute to specify if more than one can 
be selected

Hope this helps

Regards,

Giancarlo Corcuera



More information about the Catalyst mailing list