Loading...

RE: How to get the current selected value from qSelector programmatically?

RE: How to get the current selected value from qSelector programmatically?

#4899
Anonymous
Anonymous
Participant

I finally came up with a solution that worked fine for me:

I made a custom webpart (hidden) that got the selected value from the qSelector through the standard webpart connection. I then extended the standard NewForm and fetched the custom webpart through the code I posted initially, and got hold of the selected value through a property containing the value. This now happends when the user clicks the "Add new item" link and the NewForm opens