⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

field error for dropdown using flexigrid



aln

aln
  • profile picture
  • Member

Posted 08 July 2014 - 11:44 AM

just a small fix to allow also ddm's to be highlighted when the field has an error:

 

in flexigrid-add.js and flexigrid-edit.js look for the line:

$('input[name='+index+']').addClass('field_error');

and just after it add a new line:

$('select[name='+index+']').parent().find('a').addClass('field_error');

in flexigrid.css change:

input.field_error

to

input.field_error, a.field_error

now when for example you have a dropdown with an error on the validation it will also get the red border.


Sai

Sai
  • profile picture
  • Member

Posted 15 February 2015 - 04:03 AM

Sorry but the suggestion does not seem to work either for flexigrid or the datatables theme

 

I have same issue with text area and drop down fields

These do not get highlighted with red border when in error 

 

Pls. suggest a solution for fields in error to be highlighted when error - specifically for text area and drop down fields. For input type text fields highlighting works normally

 

I also use unset_texteditor for the textarea field ( MySql datatype 'text').  For testing I commented unset_texteditor to see the text area with all formatting options. It made no difference.