Using App Connect with JavaScript Functions

You can get the component instance from the DOM element and set the data there directly.

document.getElementById("var_test_102055").dmxComponent.set("value", "newValue");

Your option 2 with setting the value using jQuery and then triggering the change event will work if you use a hidden form input to store the value, it doesn’t work on the variable component.

4 Likes