Gossamer Forum
Home : Products : DBMan : Customization :

Making number field uneditable

Quote Reply
Making number field uneditable
I have had a problem with a user stuffing up the way the dbman uses by entering their own number. Problem is, I still need that data number to appear, as this is the record of the number of their horse (don't ask LOL)...is there are way, to make it uneditable?
Quote Reply
Re: [Alyra] Making number field uneditable In reply to
take a look at sub html_record_form in html.pl. You will see:

<INPUT TYPE="TEXT" NAME="ID" VALUE="$rec{'ID'}" SIZE="3" MAXLENGTH="3">

removing the input tag and changing the code to

$rec{'ID'}

will prevent changes to the info


Gene
"The older I get, the more I admire competence, just simple competence in any field from adultery to zoology."