Skip to main content

Cancel button on the Contact Form

More
15 years 3 weeks ago - 15 years 3 weeks ago #25072 by Jims
Hi, Nicolas.

Please could you tell me what code I would add to the contact.php form to add a Cancel button just below the OK button. A site reviewer requested such a button to return the viewer to the Product Page if they decided not to send a message.

Thanks

Jim
Last edit: 15 years 3 weeks ago by Jims.

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

More
15 years 3 weeks ago #25074 by nicolas
Hi,
You can edit the file "contact" via the menu Display->Views and add the code:
<button type="button" onclick="history.back();"><img src="<?php echo HIKASHOP_IMAGES; ?>cancel.png"/><?php echo JText::_('HIKA_CANCEL'); ?></button>

after the code:
<button type="button" onclick="submitform('send_email');"><img src="<?php echo HIKASHOP_IMAGES; ?>ok.png"/><?php echo JText::_('OK'); ?></button>

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

More
15 years 3 weeks ago #25077 by Jims
Many thanks, Nicolas, for this and for your amazing, ongoing support.

Jim

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

Time to create page: 0.151 seconds
Powered by Kunena Forum