Make field read only
Re: Make field read only
gimblefritz & pbottcher, its ok i have amended slightly to this
this works perfectly and does not remove any data that was previously stored in the field.
Code: Select all
/* current user is not an admin? */
if($memberInfo['group'] != 'Admins'){
$html .= <<<EOC
<script>
\$j(function(){
\$j('#approvedby_so').select2('readonly', true)
})
</script>
EOC;
}