Hi all, please try to imagine my situation I created 1 small function in which while editing first there will be dropdown which contains,
1.Approve 2.keep pending 3.Reject
$crud->field_type('status','dropdown', array('1' => 'Approve', '2' => 'keep pending','3'=>'Reject'));
and 1 more field that is reason field of type TEXT
if suppose I select either keep pending or Reject then reason field is mandatory, otherwise I don't have to enter anything in reason field, can someone tell me how this can be validated ?
Please guys help me