Jump to content

How can I use radio buttons?


Robert Zelník
 Share

Recommended Posts

I would like to create a radio button field. I know how to create a single checkbox: Add New Field, Type: Checkbox. This works well, but how can I create radio buttons or a selectbox with multiple options to choose? I don't see this options in the fieldtype dropdown menu, although I have Radio Buttons, Select and Select Multiple inputfields activated.

Link to comment
Share on other sites

There's no radio field type.

You can choose radio boxes as an inputfield for page reference field. If you create pages as categories for example you can make them selectable, and use a select or radiobox,checkbox as inputfield type.

There's actually a "select (aka drop down)" custom fieldtype by hani see "download section" or here direct link:

http://processwire.com/talk/index.php/topic,245.0.html it creates select list from a string like "1:=Poor, 2:=Excellent" .

It would be easy to create a custom radio field that does the same.

Depending on what you want to archive, it could make sense to do it with the page reference field as it will give you great additional posibilities.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...