This JavaScript function checks for client-side validation errors. When the user enters invalid data in an input field, the Presentation Framework flags the field as in error. When the user submits data in the page, this function should be called to make sure that invalid data is not posted.
validateControlValues()
None.
true - No errors were found.
false - One or more errors were found.
This example shows how to check for errors before you submit the current page.
<td class="detaillabel" ><yfc:i18n>Horizon_End_Date</yfc:i18n></td>
<td class="protectedtext" nowrap="true">
<input type="text" class="dateinput" onkeydown="return checkKeyPress(event)"
<%=getTextOptions("xml:/InventoryInformation/Item/@EndDate",
"xml:/InventoryInformation/Item/@EndDate","")%> />
<img class="lookupicon" onclick="invokeCalendar(this);return false"
<%=getImageOptions(YFSUIBackendConsts.DATE_LOOKUP_ICON,"View_Calendar")%> />
<input type="button" class="button" value="GO"
onclick="if(validateControlValues())changeDetailView(getCurrentViewId())"/>
</td>