Jump to content

Search the Community

Showing results for tags 'InputfieldRadios'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Welcome to ProcessWire
    • News & Announcements
    • Showcase
    • Wishlist & Roadmap
  • Community Support
    • Getting Started
    • Tutorials
    • FAQs
    • General Support
    • API & Templates
    • Modules/Plugins
    • Themes and Profiles
    • Multi-Language Support
    • Security
    • Jobs
  • Off Topic
    • Pub
    • Dev Talk

Product Groups

  • Form Builder
  • ProFields
  • ProCache
  • ProMailer
  • Login Register Pro
  • ProDrafts
  • ListerPro
  • ProDevTools
  • Likes
  • Custom Development

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests

Found 1 result

  1. Hi people, I've been trying to tailor the HTML output of my InputfieldRadios, to no avail so far. Here's the code: $field = $modules->get("InputfieldRadios"); $field->label = 'Radio controls'; $field->attr('id+name', 'radios'); $field->addOption('1', 'Option 1'); $field->attr('value', '1'); $field->addOption('2', 'Option 2'); $form->append($field); $form->setMarkup(array( 'list' => "<div {attrs}>{out}</div>", 'item' => "<div {attrs}>{out}</div>" )); However, I still keep getting <ul> for the radio buttons: <ul class='InputfieldRadiosStacked'> <li><label><input checked='checked' type='radio' name='radios' id='radios_1' value='1' /> Option 1</label></li> <li><label><input type='radio' name='radios' id='radios_2' value='2' /> Option 2</label></li> </ul> Is there a way to fix it? I looked into how the admin backend is styled and radio buttons are wrapped in <ul> in there, though the list bullets are removed. But I'd like my radio buttons wrapped in <div>'s rather than <ul>'s. Thank you for any hints.
×
×
  • Create New...