⚠ 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. ⚠


cahyonegoro

Member Since 27 Feb 2019
Offline Last Active Mar 01 2019 03:41 AM
-----

Topics I've Started

radio button to unhide hidden field

27 February 2019 - 04:21 PM

hello friends, before i ask some question i just want to appreciate this is the best CRUD generator for CI/PHP. I'm using this for all of my website.

 

so my question is, i have some fields in my controller :

$crud->display_as('id', 'No')
                    ->display_as('name', 'Name')
                    ->display_as('address', 'Address')
                    ->display_as('phone', 'Phone')
                    ->display_as('date', 'Date');

1. I want to hide the 'date' field

2. I want to add radio button with two choice ('show','hide')

3. If the show radio button clicked will show the 'date' field

4. if I clicked the hide button it will hide again the 'date' field

 

I appreciates all help that come, Thank you very much