set_value() is working but set_select() not working |
Can you confirm by adding the code below, somewhere in your code, and run the validation again?
PHP Code: <?= set_value('doc_type_id') ?> Just to confirm that the value is returned to the form if validation fails. PS: I see that you are using Entity Classes in your controller (DocumentsEntity). Instead of adding the properties individually, you can use the fill() method to have the properties filled automatically for you, like so: PHP Code: $document = new DocumentsEntity(); See docs. |
Welcome Guest, Not a member yet? Register Sign In |