I have very simple question here.
Imagine - we have table where we need to register users
Fields in table for example username, email, password
So how I could set in "add" state all three fields and in edit state only 2 fields - email and username?
I understand that we can check state somelike down bellow
if($state == 'add') { $crud->fields('username','email','password'); } else { $crud->fields('username','email'); }
But just imagine if we have 20 fields and different only with one field!?!?
Thanks!