Gossamer Forum
Home : Products : DBMan : Customization :

'Locking' certain fields - urgent

Quote Reply
'Locking' certain fields - urgent
I want to 'lock' - not allow modifying - a few fields in my database. I know I can hide them, but I need to show them, so I was wondering if there is another way of locking fields??

Thanks
John
Quote Reply
Re: 'Locking' certain fields - urgent In reply to
On the html_record_form you could change the fields so that they aren't forms. By this I mean you could delete the INPUT tag, add a INPUT TYPE=hidden tag for you information, and then to display is just print out $rec{'<B>FIELDNAME</B>'}. However, this form is also used for adding a new record. So, you may want to create a new sub call html_record_modify_form that contains the same text as html_record_form. Then change the html_record_form in html_modify_form_record to the new html_record_modify_form.
Quote Reply
Re: 'Locking' certain fields - urgent In reply to
Thanks!! I tried removing the input, but then it deleted data. Having the hidden input tag there too solved the problem. Thanks for your help!

John
Quote Reply
Re: 'Locking' certain fields - urgent In reply to
No problem. Sorry that my post wasn't more specific but I didn't have much time to type it.