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

Dobrý den, potřeboval bych prosím doladit One Page Checkout. U produktů mám na...
2 days ago 0
When I install a ultimelab template on my site, right away a lot of overrides ar...
2 weeks ago 0
Hello. I have problem with export xml for google merchant. In xml settings - x...
1 month ago 0
Dobrý den, ve čtvrtek jsem od vás koupili balíček Professional. Peníze jsme vám...
1 month ago 2

Who's Online

We have 169 guests and 2 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.