Menu

Readonly

Help
2017-10-15
2018-08-28
  • Peter funek

    Peter funek - 2017-10-15

    Hi Martin, i have little question.
    How can i block more fields like ID field(readonly)? In edit mode of course.

     
  • Martin

    Martin - 2017-10-16

    The only (and dirty) way: change the mte.php:

    If you want to make field 'email' readonly, add " || $key == 'email' " at line 560:

    if ($key == $this->primary_key || $key == 'email' ) {
         $style = "style='background:#ccc'";
         $readonly = 'readonly';
    }
    
     

    Last edit: Martin 2017-10-16
  • Wale Akinyemi

    Wale Akinyemi - 2018-08-28

    What is the best approach to make every field readable?

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.