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)
FormAPI Help P{lease
System
Can we use command buttons on a Datacapture template? For Example when a user selects some items in a dropdown list box and clicks a button ">>" , the selected items move into another dropdown listbox?
Find more posts tagged with
Comments
smigster
The shoebox.js example provided by Interwoven shows how to set up an IWEventRegistry.addItemHandler for the dropdown.
Migrateduser
Do you mean the shoescript.js script that is used in the FormAPI demo?
smigster
Yes. There are a number of useful techniques illustrated there. It got me going in the right direction when I had to create a DCT with a set of three inter-related dropdowns... a change in the first dropdown selection triggered the loading of an appropriate set of options in a second related droptdown (and a few other related actions). It also is a good demo of some of the things you can control at DCR save timej, changing field attibutes...
Migrateduser
where do i get this shoebox.js example file from? i couldnt find it in my teamsite directory. thanks in advance!
manju166
I think it is shoescript.js
Attached is formapi example zip file
you can also get it from the support site
https://support.interwoven.com/kb/kb_show_article2.asp?ArticleID=49148
Migrateduser
cool i got it working, thanks! but now i need to get it to work within a replicant and am not having any luck. there seems to be a problem with replicant addresses. it will work for the first replicant but not any others. any ideas?
function getTypeValue()
{
var typeItem = IWDatacapture.getItem("/web_ad/ad_loc[1-99]/which_homepage");
var typeIndex = typeItem.getValue();
var typeOptions = typeItem.getOptions();
return typeOptions[typeIndex].value;
}