[eluser]julgus[/eluser]
Thanks,
I use the same form in a document process and depending on status I need different validations rules.
The code you suggested just shows an empty array...
regards
[quote author="pistolPete" date="1235659524"]Why don't you "hard code" the css into the view?
Your validation rules should't change, so is there a reason to do this dynamically?
Anyway, you can access the validation rules using:
Code:
$this->form_validation->_field_data['field_name']['rules']
[/quote]