News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

How to set mandatory a user field based on another user field value

Started by pepsodent, February 28, 2017, 10:39:15 AM

Previous topic - Next topic

pepsodent

Hi all,

I hope someone could help me.

I need to make a field mandatory, when a customer go to checkout page to confirm the order, based on another field value. An alert should be fine too.

Example:

Field1 is an input text field
Field2 is a select field (value1=a / value2=b)

if Field1 is empty and Field2 value=a --> Alert("Compile Field1")
if Field1 is empty and Field2 value=b --> OK


I use Virtuemart 3.0.18 and VmOnePageCheckout for checkout.

Thanks to those who will help me and sorry for my bad english and my bad explanation.