Streaming live at 10am (PST)

Dropdown Option Dynamic Update to Page


#1

I’d like to extract a value from a dropdown box that a user selects and use this to update a URL which references a chart in an iFrame. I’ve followed the stack overflow guide here and using a document.write function to try and update the URL dynamically.

In terms of use case - the user would select their country from the dropdown and this would then update the chart to the relevant exports for the country.

Here’s the preview link

The relevant page is under “Test Coms” CMS pages and there’s just one page that has been created so far - live link to this page is here


#2

document.write runs once on page load only, and is not the recommended method for dynamic stuff.

I’m available to take a look if you need help with this: Contact


#3

Thanks - I have just sent you a message!