- Mark as New
- Follow
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
You can iterate over all the nodes in a container, find all the objects of class name 'field' and translate the rawValue to upper case. The attached works fine for text fields and buttons but I am not sure about other field types including drop-down. Please test.
// form1.page1.toUpperCaseBtn::click - (JavaScript, client)
var oNodes = page1.nodes;
for (var i=0; i < oNodes.length; i++) {
if (oNodes.item(i).className == "field") {
if (oNodes.item(i).rawValue != null) {
var oField = oNodes.item(i).rawValue;
oNodes.item(i).rawValue = oField.toUpperCase();
}
}
}
Steve
AllFieldsToUpperCase.pdf
82 KB