CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 conditional field &/or form display

Print topic Send  topic

Author Message
Robert
Posted: 02/26/2002, 5:35 PM

Thank you in advance to everyone who has been so helpful. Nicole, Ken, you have helped me alot.

Here is my latest challenge (using ASP + Templates). I thought I'd seen the answer here somewhere but I've searched the community and tips areas and can't find it.

Question:
1) I would like to conditionally, based upon security, display forms on a page. For example, a public user would see one screen and a higher level clearance would see basically the same page but perhaps with a bit more.

2) I would like to conditionally display menu items, based upon security. For example, I may have an 'admin' link. I only want to display that if the user has admin level permissions.

Is there a way to do this in CC without the need to create separate pages and directing people to those distinct pages ?

Thank you !
Ken Hardwick
Posted: 02/27/2002, 2:54 AM

Robert,
See my example at http://www.kenhardwick.com/cc_02/Default.asp
I have three forms on page but only display of them based on user action.

Do something like..hide if level not 1
if session("userlevel") <> 1 then
SetVar "FormResults1",""
exit sub
end if

See Alex's article on hiding forms..
http://www.gotocode.com/art.asp?art_id=54&

As far as menu items, you could use same concept.

Someone else may have some better suggestions...

   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.