I have a field called {TotAvalItems} which I want to update after select field {Product} is changed.
{TotValItems} is a label field and so for some reason it does not change once the page has been loaded. I was tired of troubleshooting that so I am trying to change the html using a javascript call in Product_on_Change ajax event. I have:
$javascript_function = ‘setvals’; // Javascript function name
$javascript_parameters = array( // Javascript function parameters, add as many as needed
{TotAvailItems});
// Call javascript function
//sc_ajax_javascript($javascript_function, $javascript_parameters);
Inside setvals I have:
document.getElementById(“id_ajax_label_totavailitems”).innerHTML = cs;
(cs is the parameter passed)
This is also not working. Can anyone help?