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)
Hidden Field in DCR
dmcnzl
Hi All
Id like to add in a hidden field with a fixed value into the DCR, im trying to build a Form builder and want to hardcore the field-type into a value via said hidden field.
Is there anything already available to do this? Ive had a brief run through the documentation and haven't found anything to do this, am i missing something blatantly obvious?
Any help or advice greatly appreciated.
~ Dan
Find more posts tagged with
Comments
Adam Stoller
I'm not sure I understand what you're trying to do, nor how you've tried to do it. Perhaps you need to clarify with a decent example of the DCT code and resultant DCR code to show what you are doing and seeing (actual results, not conjecture -- please make sure to format correctly)
If you have a field - say for example, a text field with a value of "Hello World", and use FormAPI to set the visibility of that field to hidden on DCT initialization - wouldn't that do what you want? (note: use FormAPI, not the hidden directive in the DCT itself - though that might work too)
Migrateduser
Hi,
As pointed out, we should use form API. As of datacapture6.0.dtd (i use 7.1 so not sure if it has changed after this), hidden directive does not support a default value.