gary au commented on Jul 14, 2013

Re: Tutorial: Introduction to XPages - Exercise 10

The firstname and lastname javascript is work.

Please ensure the name of field is 'FirstName' and 'LastName'

If you forgot to change the name of 2 field , the javascript does not work.

Oksana Khramova commented on Jul 6, 2010

Tutorial: Introduction to XPages - Exercise 10

i added validation code and it stopped work

Preview in Notes says "Reference error: 'dojo' not found"

in view source without validation formula i see

Atul Saxena commented on May 11, 2010

Tutorial: Introduction to XPages - Exercise 10

The following Code does not work. Even, if you use getComponent("FirstName").value.

var firstName = dojo.byId("#{id:FirstName}");

var lastName = dojo.byId("#{id:LastName}");

if (firstName.value == lastName.value){

alert("The First Name and Last Name must be different");

return false;

}else{

return true;

}

Sample database works, but on signing with my id or admin id, it does not work. Is it a bug or feature of X-Pages?

Brian D McGaley commented on Dec 1, 2009

Tutorial: Introduction to XPages - Exercise 10

Make sure the Name is set of the Edit boxes on the Profile Form are set to FirstName and LastName for step 6 to work.

Patrick Tuin commented on Nov 19, 2009

Tutorial: Introduction to XPages - Exercise 10

I had problems with the client side validation, due to this:

http://www-10.lotus.com/ldd/ddwiki.nsf/dx/XPagesPageVersions.htm

Bill Whittakers commented on Jul 22, 2009

IDs for FirstName and LastName had to be renamed for the validation on the Save button to work

When I created the profileForm control the IDs for the FirstName and the LastName edit boxes had FirstName1 and LastName1 as IDs by default. It took some time to find that the "1" had to be removed from both IDs for the validation code on the Save button to work. Obvious once you see it.