⚠ In case you've missed it we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This forum is read-only and soon will be archived. ⚠


Checkbox in add edit form

Checkbox Chkbox in add/edit form

  • Please log in to reply
3 replies to this topic

#1 php_lover

php_lover

    Advanced Member

  • Members
  • PipPipPip
  • 41 posts

Posted 23 February 2013 - 05:35 AM

Hi all how can i use checkbox in grocery crud in add and edit form as well as i select values form groceryy crud in the form of yes or no



#2 php_lover

php_lover

    Advanced Member

  • Members
  • PipPipPip
  • 41 posts

Posted 23 February 2013 - 06:32 AM

Anyone  Helllllllllllllllllllllllllllllllllllllllllllllllp



#3 Kaabi

Kaabi

    Member

  • Members
  • PipPip
  • 17 posts

Posted 05 July 2013 - 01:29 PM

I know this old post but just for the reference you can check

 

http://www.grocerycr...ions/field_type

 

or if you got boolean true false you can use

$crud->field_type('my_field','true_false');


#4 Suresh Bhatol

Suresh Bhatol

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 24 July 2013 - 12:47 PM

$crud->callback_add_field('field_name',array($this,'add_field_callback_1'));
$crud->callback_edit_field('field_name',array($this,'add_field_callback_1'));
       

function add_field_callback_1()
    {
        return ' <input type="radio" name="sex" value="will" /> will
                 <input type="radio" name="sex" value="will not" /> will not';
    }

 

Use this working..........







Also tagged with one or more of these keywords: Checkbox, Chkbox in add/edit form

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users