Skip to main content
This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

Notes/Domino 6 and 7 Forum

Notes/Domino 6 and 7 Forum


  

PreviousPrevious NextNext


~Ned Umfreecheknivu 10.Mar.07 03:55 PM a Web browser
Domino Designer 6.5.4 All Platforms


Good Day All,

I am having an issue were when I click submit the f.submit() at the end of my code is executing, despite the fact that it should have errored out and returned false?

function f_Submit()
{
var f = document.forms[0];
if ( f.User_Name.value=="" )
{
alert ("Please enter your Name.");
f.User_Name.focus();
f.User_Name.select();
return false;
}
if ( f.Contact_Number.value=="Please update your info in the Global Address Book (names.nsf)")
{
alert ("Please enter your Phone Nunber.");
f.Contact_Number.focus();
f.Contact_Number.select();
return false;
}
if ( f.Contact_Number.value=="" )
{
alert ("Please enter your Phone Nunber.");
f.Contact_Number.focus();
f.Contact_Number.select();
return false;
}
f.submit();
return true;
}

I cannot find where my error is in this script.
Any help would be appreciated as awlays.... Just need that second set of eyes.... Or wish mine worked...






Javascript Submit executes form.sub... (~Ned Umfreechek... 10.Mar.07)
. . . . . . RE: Javascript Submit executes form... (~Wendy Dwonugen... 10.Mar.07)





  Document options
Print this pagePrint this page

 Search this forum

  Forum views and search
Date (threaded)
Date (flat)
With excerpt
Category
Platform
Release
Advanced search

 RSS feedsRSS
All forum posts RSS
All main topics RSS