Text box to appear after dropdown selection

  • Posts: 3
  • Thank you received: 0
5 years 10 months ago #306140

I have the option to add additional text lines at an extra cost. At the moment a dropdown box has a yes or no to add text (the extra cost is then added at checkout) but even if no is selected the customer can still add the text in a text box. I would like the text box (for example, called line 2) only to appear after 'yes' has been chosen in the drop down box Is this possible?

Thanks.

Please Log in or Create an account to join the conversation.

  • Posts: 234
  • Thank you received: 4
5 years 10 months ago #306146

Bob

Please indicate where on your site this is,

checkout,
products,
home page
contact us page......

Cheers

Please Log in or Create an account to join the conversation.

  • Posts: 3
  • Thank you received: 0
5 years 10 months ago #306148

It is on the product page...


When Second text line and/or Third text line have 'No' selected I don't want Line 2 or Line 3 boxes to appear. When 'Yes' is selected then I would like them to become visible.

Thank you

Please Log in or Create an account to join the conversation.

  • Posts: 83483
  • Thank you received: 13505
  • MODERATOR
5 years 10 months ago #306141

Hi,

That will require adding some javascript to handle that:
www.hikashop.com/forum/development/89653...om-field.html#301994

Please Log in or Create an account to join the conversation.

  • Posts: 3
  • Thank you received: 0
5 years 10 months ago #306170

Thanks, will check it out.

Please Log in or Create an account to join the conversation.

Time to create page: 0.070 seconds
Powered by Kunena Forum