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)
Make visible or invisible certain fields in forms
System
Hi,
I am using teamsite 6.5
I want t create a form with all fields visible to Master account and to hide some fields in my form for editior and author or content publisher accounts.How to code in the datacapture.cfg so that the datacapture.cfg dynamically changes based on user accounts.Is this funcionality is possible in interwoven.If it is possible kindly give me an sample or hint how to start with this.
Thanks in advance
Find more posts tagged with
Comments
Migrateduser
Well, you didn't mention what environment you're in so I'll just make some convenient assumptions.
Yes, not only is this possible but is also a common requirement. You can do this quite easily by using FormAPI functionality. Specifically, IWDatacapture.getRole() and IWItem.setVisible() and perhaps IWItem.setRequired() will get you what you need.
jbonifaci
FYI, when opening the DCR in view mode, users will be able to see all fields as FormAPI is not executed.
~Jeff
Migrateduser
Sure, but certain users still do not have the capability of editing these fields, which is my impression of what this person is trying to accomplish.
Migrateduser
Thankyou guys it works