Hi there,
i am doing some validation on client side and its only getting a value from a field when its not read only and not hidden.
How do I get the value from a hidden field on a XPage client side?
Here is the method I am using :
var status = XSP.getElementById(“#{id:status}”);
var update = XSP.getElementById(“#{id:updatetxt}”);
var oldstat = XSP.getElementById(“#{id:oldstat}”);
if(status.value !== oldstat.value && update.value == “”);
{
alert("Please enter an update justifying the status change.");
alert(oldstat.value + " " + status.value);
return false;
}
The field oldstat is the one that is hidden.
Thanks for any help.
Jamie