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)
Updating inline callout option
conmgmt
I have an inline callout in a DCT that gets a list for <option> tags from a text file.
For eg.
<option label='Select a value' value='Select a Value' selected='t'/>
<option label='A' value='A' />
<option label='B' value='B' />
<option label='C' value='C' />
<option label='D' value='D' />
The author creates a DCR by choosing one of the options. So far this works fine.
The text file that contains the options will be updated periodically. Some of the options may no longer exist.
If the author had previously created a DCR that contained an option that no longer exists in the text file, I need to show him the following option tag
<option label='Select a value' value='Select a Value' selected='t'/>
Since the DCR stores the previous option value, is there anyway I can achieve this ?
Find more posts tagged with
Comments
Adam Stoller
Off the top-o-my-head - the only way I can think of to achieve this would be through the use of FormAPI (introduced in TeamSite Templating 5.5.2) where you might have a file containing a list of the available options and another file used for containing a list of no-longer-available options, and determine on load time whether a field contains a value that is no longer valid and then re-set it to the default value (which, by the way, should probably be "" - keep the label for the option but set the initial value to blank)
I'm not sure of the exact code to do this - but I think that's the direction you'd have to go in.
--fish
(Interwoven Senior Technical Consultant)