Cancel button on the Contact Form
15 years 3 weeks ago - 15 years 3 weeks ago #25072
by Jims
Cancel button on the Contact Form was created 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
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.
15 years 3 weeks ago #25074
by nicolas
Replied by nicolas on topic Re: Cancel button on the Contact Form
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>
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.
15 years 3 weeks ago #25077
by Jims
Replied by Jims on topic Re: Cancel button on the Contact Form
Many thanks, Nicolas, for this and for your amazing, ongoing support.
Jim
Jim
Please Log in or Create an account to join the conversation.
Time to create page: 0.151 seconds