[Skip to main content](#vessel-content)

#   Cancel button on the Contact Form

##

- **[Jims](/forum/user/2963-jims "View Jims's Profile")**
- [![Jims's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/2963-jims "View Jims's Profile") Topic Author
- [ Offline](/forum/user/2963-jims)

Less More

- Posts: 152
- Thank you received: 0
-
-
-
- [](http://potluckceramics.ca)
-

15 years 1 month ago -  15 years 1 month ago [\#25072](#25072) by [Jims](/forum/user/2963-jims "View Jims's Profile")  *[Cancel button on the Contact Form](/forum/4-how-to/25072-cancel-button-on-the-contact-form#25072 "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")* was created by *[Jims](/forum/user/2963-jims "View Jims's Profile")*

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 1 month ago by [Jims](/forum/user/2963-jims "View Jims's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzI1MDcyLWNhbmNlbC1idXR0b24tb24tdGhlLWNvbnRhY3QtZm9ybT90bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86322
- Thank you received: 14281
-
-

15 years 1 month ago [\#25074](#25074) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Cancel button on the Contact Form](/forum/4-how-to/25072-cancel-button-on-the-contact-form#25074 "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")*

Hi,
You can edit the file "contact" via the menu Display-&gt;Views and add the code:
&lt;button type="button" onclick="history.back();"&gt;&lt;img src="&lt;?php echo HIKASHOP_IMAGES; ?&gt;cancel.png"/&gt;&lt;?php echo JText::_('HIKA_CANCEL'); ?&gt;&lt;/button&gt;

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzI1MDcyLWNhbmNlbC1idXR0b24tb24tdGhlLWNvbnRhY3QtZm9ybT90bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

- **[Jims](/forum/user/2963-jims "View Jims's Profile")**
- [![Jims's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/2963-jims "View Jims's Profile") Topic Author
- [ Offline](/forum/user/2963-jims)

Less More

- Posts: 152
- Thank you received: 0
-
-
-
- [](http://potluckceramics.ca)
-

15 years 1 month ago [\#25077](#25077) by [Jims](/forum/user/2963-jims "View Jims's Profile")  Replied by *[Jims](/forum/user/2963-jims "View Jims's Profile")* on topic *[Re: Cancel button on the Contact Form](/forum/4-how-to/25072-cancel-button-on-the-contact-form#25077 "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")*

Many thanks, Nicolas, for this and for your amazing, ongoing support.

Jim

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzI1MDcyLWNhbmNlbC1idXR0b24tb24tdGhlLWNvbnRhY3QtZm9ybT90bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.064 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
