Quantcast
Viewing all articles
Browse latest Browse all 6517

New Post: Hide/Show fields based on option chosen in complex dropdown (I suspect javascript onChange event not firing in sharepoint complex dropdown)

sympmarc wrote:
Siyasanga:

What I do is hide the complex dropdown and create an equivalent simply dropdown. My code then fires wheneever the simple dropdown changes, updating the complex dropdown accordingly.

I'm not sure this is a viable option for me right now because the fields are not custom created on a custom form, they're created on the upload form at runtime from the content type attached to that particular document library so I don't have much control over the creation of those fields.
IE does not give any errors, what I noticed is that when i implement the javascript to hide/show fields, the controls on the top left of the upload form (Save, Cancel, Delete e.t.c.) are greyed out so they become unusable even if i remove the script from the CEWP, unghost the uploadform.aspx/EditForm.aspx and put the script directly under the "ContentPlaceHolderMain" they're still greyed out.

"since you've already got jQuery loaded, it would be far easier to do the selecting and binding with jQuery than JavaScript" . This is my only option left so i'll have too Bing a bit more because i've never really worked with JQuery before.

Thank you very much, i'll keep you posted

Viewing all articles
Browse latest Browse all 6517

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>