| 
  • If you are citizen of an European Union member nation, you may not use this service unless you are at least 16 years old.

  • You already know Dokkio is an AI-powered assistant to organize & manage your digital files & messages. Very soon, Dokkio will support Outlook as well as One Drive. Check it out today!

View
 

RadioGroup

Page history last edited by webberoo 15 years, 8 months ago

This plugin creates a list of radio buttons. To accomplish this it  utilises the parameter "list" which takes two variables and applies them to your CRUD or page. The "list" parameter needs two variables to return a successfull result. The first variable directly relates to the values inside your database field. The second variable defines the label for each radio button.

 

For example: db_value: label_value

 

Heres what it looks like inside a simple yml file

 

form_setup

    live: //the name field in db table

        class: RadioGroup //the plugin to call

        params: //call the parameters for class

               list: //create array of radio buttons

                   1: Its Live //create each button example below

                   2: Its not live //value in db: label on form

 

PLEASE NOTE:

If you get the horrible “php error undefined index”. It probably means that you have your “value: label”

set wrong.

Comments (0)

You don't have permission to comment on this page.