Gossamer Forum
Home : Products : DBMan : Customization :

Can I hide $db_key during ADD RECORD?

Quote Reply
Can I hide $db_key during ADD RECORD?
The database is automatically tracking the $db_key value, and it is filled in correctly during an ADD RECORD action. Is it possible to hide this field during the procedure so that users won't change it?

I can set up the form so that it appears only if ADMIN rights are granted, and I can also hide it during MODIFY actions, but if I try to hide it during ADD RECORD, I get the error:

UNABLE TO ADD RECORD - uid field is required
Or something to that effect, the exact message is probably unimportant, it's the fact that since the field is hidden, it is not being entered.

Victor
Quote Reply
Re: Can I hide $db_key during ADD RECORD? In reply to
You need to use a hidden field for the UID field like the following:

Code:
<input type="hidden" name="UID" value="$rec{'UID'}">

Change UID to the name of your Userid field.

Regards.

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
----------------------