Linelabox Support

Hello there! Welcome to Linelabox Support Forum. Post your question and our support specialists will help you. Look for the solution in the F.A.Q. first. Our support team is available for any questions or issues in the following working hours: Monday - Friday: 10:00 - 18:00.

OnePage/validate phone fields?

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:

<script type="text/javascript">
function checkPhone(phone_2,phone_2b)
var e1 = document.getElementById('phone_2').value;
var e2 = document.getElementById('phone_2b').value;
if (e1 != e2)
alert('Not Equal!');
return false;
return true;

And set the additional attribute of the submit button to

onclick=" return checkPhone('phone_2','phone_2b');"
Responses (2)
  • Accepted Answer

    Wednesday, December 07 2016, 05:30 PM - #permalink
    Hi Saris, are you using our One Page Checkout plugin?
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, December 07 2016, 05:33 PM - #permalink
    Yes I am
    The reply is currently minimized Show
Your Reply

VirtueMart Admin Theme


Responsive VirtueMart 3 Administrator Template


New Joomla! 3 Template


Responsive Joomla 3 Template / VirtueMart 3 Theme

Template Demo

Recent Discussions

I ask a refund but I don't have any answer from you... I bought your editor but...
4 days ago 0
I have modified and created a template to my liking and tested it - everything l...
1 week ago 0
Hi! I bought your VM3 admin template. I installed the package but the plugin ...
3 weeks ago 0
Zdravím, chtěl bych se zeptat, zda-li placená verze ProductXport umožňuje aut...
3 weeks ago 2

Who's Online

We have 254 guests and no members online is not affiliated with or endorsed by Open Source Matters or the Joomla Project. Joomla!® name is used under a limited license from Open Source Matters in the United States and other countries.
Copyright © 2014 - Joomla! 3 / VirtueMart 3 Templates. All Rights Reserved.
Joomla! is Free Software released under the GNU General Public License. All other marks are the property of their respective owners.