I need assistance in obtaining the value of an inputText
field using document.getElementById
within a javascript
function in ADF. I have provided my JavaScript function below but unfortunately, instead of the expected value, I am receiving "undefined"
in the alert message. How can I modify the code to correctly retrieve the specific value of an inputText field using document.getElementById
in ADF?
function refresh() {
try {
var val = document.getElementById('pt1:flag');
alert(val.value);
} catch (e) {
alert(e);
}
}