June 2010
Intermediate to advanced
272 pages
5h 55m
English
There is a report with a textbox prompt. Users are expected to enter a phone number in (nnn)nnn-nnnn format in that prompt.
In this recipe, we will write a code to validate the value entered by the user and submit the report only if the value entered is in specified format.
Pick any report and add a textbox prompt to it. We will add a JavaScript to validate that textbox.
<script> function ValidatePage() { var theSpan = document.getElementById("A1"); var a = theSpan.getElementsByTagName("input"); /* this captures the textbox */ for( var i = a.length-1; i >= 0; i-- ) { var ...Read now
Unlock full access