See https://metacpan.org/pod/CGI::Ex::Validate#GROUP-OPTIONS "group" isn't radio

If you view the source to see sub generate_form { you'll see it takes a htype option , so specify htype somehow ... check the dist tree for an example of usage (grep "radio|check|htype" https://metacpan.org/release/CGI-Ex )

if that fails study the code

} elsif ($type eq 'radio' || $type eq 'checkbox') { my $e = $field->{'enum'} || []; my $l = $field->{'label'} || $e; my $I = @$e > @$l ? $#$e : $#$l; for (my $i = 0; $i <= $I; $i++) { my $_e = $e->[$i]; $_e =~ s/\"/&quot;/g; $input .= "<div class=\"option\"><input type=\"$type\" + name=\"$field->{'field'}\" id=\"$field->{'field'}_$i\" value=\"$_e\" +>" .(defined($l->[$i]) ? $l->[$i] : '')."</div>\n"; }

In reply to Re: validation built form with cgi::ex::validate that has radio buttons by Anonymous Monk
in thread validation built form with cgi::ex::validate that has radio buttons by GertMT

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.