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

Hello. Thanks a lot for the free template you made. In shoplab how can we disa...
2 days ago 0
When someone selects a different send adress, the billing and send adress remain...
4 days ago 0
how can i add more modules positions in a template...
1 week ago 1
Hi, I have to upgrade a website from Joomla 2.5 to 3.6. The customer uses Car...
1 week ago 0

Who's Online

We have 275 guests and 3 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.