Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I have a drop-down choice field in a custom list

I'd like to add an event handler that fires when a value is selected from the drop down.

I'd originally attached to the itemupdating event but don't want people to have to save the item for the event to fire and I can't see a list item event associated with changes to field values. Am I missing something obvious?

Thanks in advance

Dan

share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

What you are looking for cannot be done using event handlers. You need to use selected index changed event of the dropdown control in your form pages.

share|improve this answer
    
Many thanks Nadeem - I was starting to think that was the case. I'm new to this and was just wondering if you could point me at some relevant references to learn a bit more about the approach you outlined? –  DanA Jan 17 '13 at 5:59
    
Hi @DanA, you can perhaps use a combination of JQuery and CSOM (Client side object model) to achieve what you want. What you need to do is to add a Content Editor Webpart to your pages like NewFrom.aspx and EditForm.aspx. Write the JQuery and CSOM code in there and make it invisible. You may find these links useful: lavssharepointworld.blogspot.in/2013/01/… go4answers.webhost4life.com/Example/… –  Nadeem Yousuf Jan 17 '13 at 6:17
    
Thanks again Nadeem - looks like I've got some learning to do! –  DanA Jan 17 '13 at 6:21
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.