Customizing using form builder
I have a simple model
The fields that are displayed are dependent on user choosing from a dropdown field.
Ex:
Simple model
custom_users_model
id
types (1,2,all)
field1
field2
field3
field4
if user chooses type =1
field1 should be visible)
if user chooses type 2
field 2 is displayed.
if user chooses type =all
field1-field4 should be visible)
I did something like this..
$type_options = $CI->types_model->options_list('id', 'name');
$fields['type_id'] = array('type' => 'select', 'options' => $type_options, 'onClick' => 'chosefieldsBasedOnType(this)');
But -- was not able to over ride functionality - I know easy way out is to write a custom form - but want to leverage the framework..
please help - what is the best way to move forward.
Comments
http://www.getfuelcms.com/user_guide/modules/simple