is there any way to disable a field (or multiple fields), during the upgrade, depending on the value of some other field?
explaining better, have a table with their records, and one of the fields, determines if in the front end, if that record may be locked for editing some fields ...
there is a possibility?
locked fields
Started by francisco, 08 February 2012 - 01:26 AM
- Single Page
Posted 08 February 2012 - 01:26 AM
Posted 10 February 2012 - 06:39 AM
You can do this actually with the set_rules . The use of the set_rules method works exactly the same way as codeigniter's set_rules ( http://codeigniter.c....html#callbacks ) from form_validation.
You can have a custom callback and there have your rule for the field. So every time the validation fails the user will prompt with a specific custom error and will NOT save the record into the database until everything goes well.
You can have a custom callback and there have your rule for the field. So every time the validation fails the user will prompt with a specific custom error and will NOT save the record into the database until everything goes well.