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)
Event Registry
mart2001
Hi,
Is there a way to get an event fired on a multiselect field? Suppose the first field has
[html]
[/html]
If the user selects option1, then it should fire off an event. When I use onItemChange, the event does not fire until I click outside of that field. Is there an OnClick event?
Thanks,
Find more posts tagged with
Comments
Adam Stoller
If you can get to the raw JavaScript layer (below the FormAPI layer) you may be able to attach a JavaScript trigger for onClick to those items - but I think it would be a poor design, as what if the user selects option 1, then option 2, and then de-selects option 1 -- what kind of flashing of fields hiding and exposing is going to happen? (I'm assume that you want to hide / expose fields in the situation where both items are selected)
The "simple" approach would be to add instructions in the DCT (as well as user-training documentation) and a button below or beside the select list. The instructions would indicate that the user should make their selections and then click the button to confirm them (or some such verbiage) - the button wouldn't actually have to do anything, since you already have a trigger for onItemChange on the select list - but it would [subtly] get the user to click somewhere else to trigger that event.
Another possibility is to try to make use of the recently posted JS code that uses a jquery approach to DCT elements - with that you might be able to do what you originally wanted to do -- I haven't tried out that code, but it might help.