Thank you, it really is a styling thing: the fields with errors have a span element with class error_highlight. Once you add css
.error_highlight { border-top: #FF0000 1px solid; }
the fields get highlighted.
Below is a working example of a form with validation. I got the errors to display above the fields with $this->form_builder->display_errors = TRUE;
The only thing I have not yet figured out is - how do I get the form to highlight the fields…
By the way, the http://docs.getfuelcms.com/libraries/validator definition of add_rule incorrectly explains (mixes up) the parameters thus:
(string) $func error message (string) $msg function for processing
Thank you, really so.
I finally figured out how validator works (outside of the form_builder thus far). Here is a pure validator example, without dependencies on any other code. Would you consider to include an example like this in the documentat…
yes, I have ini_set('display_errors', 1) in case of development environment, and echo ini_get('display_errors'); echoes 1
Anyway, I have reduced the controller class to bare minimum, with no dependencies in the code, and still get the same error.…
If I raise
$this->load->library('validator');
above
$this->load->library('form_builder');
I get a blank page (and I have
error_reporting(-1);
at the top of index.php file.
Could it be that the form_builder functio…
This does not help. In my controller function create() that I run I currently have this:
$this->load->module_language('fuel', 'fuel');//turi būti prieš form_builder $this->load->library('form_builder'); $this->load->model('Dearo…
Hm, I get an error with the suggested code:
Fatal error: Call to a member function add_rule() on null
What could be wrong? I did load the Validator library, though the error does not change if I do not load it (so I guess the Form_builder load…
Thank, you, I will try it out tonight. I understand there is no way to use the default CI form validation class and get the form_builder functionality of "highlighting each field with an error" at the same time?
Yes, thank you, how could I have overlooked that... Could you also explain, how to get the form to display errors? I see there is $this->form_builder->validate(['$validator'=NULL]) and related methods, and I should perhaps use them instead of…
Oh, sorry, I do not see how can I delete a comment, so I might as well answer my own question.
The answer is in reversing the value and key in the $options array:
$image_default_options = array('0' => 'Nepasirinkta', '1' => '
Į wonder, why is it not working for me? I edited file fuel/modules/fuel/assets/js/fuel/linked_field_formatters.js as suggested by @weblar above, and it works neither for specific Lithuanian characters (ąžęūčėįų), nor for the phrase "Sólo una prueba …
Could the module documentation be updated to refer to the proper config file? I ran into this same problem (creating and editing the wrong config file) today.