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

Show the car only to register Hello, I searched everywhere before asking. I w...
9 hours ago 0
Trying to place order for 10 credits (UK based) but it is insisting on a VAT num...
22 hours ago 0
How can I remove all the white space between the end of 1 article and the beginn...
1 day ago 0
Už od února máme problém s heurékou na productXport. Data na heureku se nenaimpo...
3 days ago 1

Who's Online

We have 409 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.