Jump to content


field error for dropdown using flexigrid

dropdown flexigrid

  • Please log in to reply
1 reply to this topic

#1 aln

aln

    Newbie

  • Members
  • Pip
  • 4 posts

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.



#2 Sai

Sai

    Newbie

  • Members
  • Pip
  • 2 posts

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. 







0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users