Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
Hiding containers issue -- viewing an existing DCR
ksshah
Hi all,
Teamsite environment : 6.1.0 Service Pack 2.
Testing it on Windows XP 2002 SP2.
I dont know if this a known issue or not. I searched the forums and found number of posts regarding hiding containers within DCT's. But I am having
problems with hidden fields (specifically hiding containers) within DCT when user views the DCR (not when editing or creating it). I have a couple of hidden fields within DCT which i populate within FormAPI ("onSave" event handler). Now the fields (and containers) are hidden for creating a new form entry as well as when a user edit's an existing DCT. But when user views a DCT just clicking on the existing DCR, the hidden containers are seen. Did I miss something in the FormAPI or DCT or it is supposed to work this way. This is the relevant portion of my DCT. I have tried min/max=1. removed label tag and removed default=0.. but dosent seem to solve the issue. Any ideas ?
<container combination="and" location="Security" name="Security" default="0">
<label/>
<item max="unbounded" min="2" name="Group" pathid="Group">
<hidden />
<label></label>
<text required="f" size="60" maxlength="120" />
</item>
</container>
Find more posts tagged with
Comments
JeremyH
No scripts are run when viewing a file. thus hidden fields are not seen, while dynamically generated fields are not seen.
jbonifaci
I believe what Jeremy meant to say was, you're out of luck, when in preview mode the user sees all.
~Jeff
Adam Stoller
Well - any fields that are marked as hidden in the DCT will, in fact, be hidden when the DCR is "viewed" - but any fields that are hidden via FormAPI will be visible when the DCR is "viewed" because the FormAPI code is not run in that situation.
--fish
Senior Consultant, Quotient Inc.
http://www.quotient-inc.com
JeremyH
Hey Jeff -
Thanks for correcting my garbled English! I should no better than trying to type late on Fridays!
Adam Stoller
Thanks for correcting my garbled English! I should
no
better than trying to type late on Fridays!
Apparently you're not that much better on Mondays :-)
(sorry - couldn't resist)
--fish
Senior Consultant, Quotient Inc.
http://www.quotient-inc.com
JeremyH
I guess I'll need add Monday morning to the list of times when it is not appropriate to type responses.