Is it possible to validate two fields in OnePage? What I need is two phone fields and after submitting the form the system should check if these two phone fields are same.
I found something in a Joomla forum and was thinking could this be used in this case? And where are the files for the Form Layout of OnePage and the submit button?
"Put this script in the Form Layout:
var e1 = document.getElementById('phone_2').value;
var e2 = document.getElementById('phone_2b').value;
if (e1 != e2)
And set the additional attribute of the submit button to
onclick=" return checkPhone('phone_2','phone_2b');"