Jump to content

How to force Cascading Dropdown box to refresh

Recommended Posts

I'm having trouble getting a cascading dropdown to refresh programatically :

I have two fields: Field1 (dropdown) and Field2(cascading dropdown), when the page loads I can using javascript set the value of Field1, but the corresponding Field2 does not recalculate.   its always stuck filtering off the first item in the Field1  dropdown.   

Link to comment
Share on other sites


I resolved a way to trigger an onchange event on Field1 programmatically.  Once the onchange event is triggered the cascading dropdown refreshes properly.

var e = document.querySelector("[id*=cbParamVirtual40]");
e.dispatchEvent(new Event('change'));


Link to comment
Share on other sites

  • 2 years later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...