Gossamer Forum
Home : Products : DBMan : Customization :

searched and searched, can not find answer

Quote Reply
searched and searched, can not find answer
I have looked and looked, maybe I just need to know the secret

search term....

Anyway, here's what I want to do:

On the ADD from, give the user the option to SHOW or HIDE

each field - this needs to be done in a way that the user and

admin get to see all the fields, but anyone else only gets to

see those marked SHOW by the user.

I'll bet somebody already knows how to do this but I have not

been able to find it....

Any assistance greatly appreciated!
Quote Reply
Re: [dlnyah00] searched and searched, can not find answer In reply to
I would guess that you would need a checkbox field for each of the "optionally-show" fields. i.e. check here to hide this field.

Then the coding is really a simple matter of an if statement around each field to specify that it is displayed for the "record-owner" and for admin, or otherwise based on the value of the checkbox.

The default db.cgi has this type of if statement for admin, (I think) or else it's pretty common, sure to be in the FAQ. You could hack it for record-owner and based on the checkbox.

Good luck.
Quote Reply
Re: [joematt] searched and searched, can not find answer In reply to
In Reply To:
I would guess that you would...
Maybe - what I need is a "known to work" solution - if I had the skills to do the programming, I would not have posted my inquiry. As I said in the original post, I HAVE searched for anything that would make this happen.
Then the coding is really a simple matter... See above

You could hack it See above

Last edited by:

dlnyah00: Jul 22, 2003, 5:17 AM
Quote Reply
Re: [dlnyah00] searched and searched, can not find answer In reply to
Sorry if that reply was less than what you wanted. Frown

You did say that any help would be ....

I learned to code by trial and error, and it is still done mostly that way. I don't have the time right now to work on it for you. Maybe when the snow falls.

try this;

http://www.gossamer-threads.com/...gforum.cgi?forum=19;

or wait around for some good hearted soul to help you.
Quote Reply
Re: [dlnyah00] searched and searched, can not find answer In reply to
Check out the following thread reference:

Thead reference: http://gossamer-threads.com/p/000678
Subject: Yes/No Display of Text
blakex - 10-Aug-99

This is also listed in the FAQ under "Viewing" with the same title: Yes/No Display of Text

If the url above is no longer valid, then just search by the thread topic.

I'm sure there are other references and examples in the FAQ under the section "Viewing / Formatting"

Unoffical DBMan FAQ

http://creativecomputingweb.com/dbman/index.shtml/
Quote Reply
Re: [LoisC] searched and searched, can not find answer In reply to
Thanks LoisC!