Jump to content

Address comany information displayed on checkbox select


alex_ivascu

Recommended Posts

Hello, 

 

 

I'm trying to add in address.tpl a checkbox that when is selected will automatically display the input for company and vat number. 

Now the company input is displayed and when something is filled in VAT input will appear automatically.

 

How could I add the checkbox and when selected to display these 2 inputs?

 

I've added the checkbox:

<input type="checkbox" name="pers_fizica" id="pers_fizica" value="PF">
{if isset($smarty.post.pers_fizica) && $smarty.post.pers_fizica == "PF"} checked="checked"{/if}
 
But i don't know how to link it and make the 2 input appear.
 

 

 

Many thanks in advance,

Alex

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...