Hi,
getItemValue returns the value of the document (Notes backend doc) as an array.
getSubmittedValue() return the value of an item, which has just been submitted. Moreover, it returns the value as it is, e.g if there are any tags, then it does not removes those tags. such as bold text, underlined text. etc.
Example of
getItemValue:
var v = document1.getItemValue("Numbers");
if (v.isEmpty()) {
return "Numbers is empty or doesn't exist";
} else {
var result = "";
var vi = v.iterator();
while (vi.hasNext()) {
result = result + vi.next().toFixed() + "\n";
}
return result;
}
example of getsubmittedValue()
Below code gets the value of a computed field, which just has been submitted.
var element=getComponent('computedField1');
element.value=context.getSubmittedValue()