I have a need to perform an action when a user selects a choice on a DCT which implements the <choice /> DCT control.I see that as far as FormAPI is concerned the choice element does in fact exist as 'choice' when addressing an item for example.Example. item/choice/item 1 or item 2BUT I cant for the life of me figure out how to use the event registry to do something when a user makes a choice.OnReplicantAdded etc... does not seem to work. Any advice on this is appreciated.Thanks,Tim
I've looked into it some time ago, was not able to find anything either.Choice Control Type (IWItem.getType) is 'orcontainer' all right. Problem is, it *seems* to be "Or Container"with number of Replicants fixed to one. Thus, Replicant Events do not Fire (if you can neither add nor move a Replicant, well...). An exception (at least in 6.7) was useless 'OnReplicantDelete'. It fired upon clicking greyed out(!) Container's - and sure enough did not delete anything.
<container name="whatever" min="1" max="2" combination="or">
..................../type","OnReplicantAdded",makeChoice,false);
function makeChoice(objItem) { var objParent = IWDatacapture.getItem(objItem.getName() + "/../type"); setTimeout(function(){objParent.deleteInstance(1)},0);}