Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9060291
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T15:11:27+00:00 2026-06-16T15:11:27+00:00

I have called the contact form in a cms page and then calling that

  • 0

I have called the contact form in a cms page and then calling that CMS page to display the contact us page. Now I need to display a link on top of my page for quick contact that will open the page in lightbox. I have added the code to display this link in breadcrumbs.phtml file. The form is loaded alright but it is not getting submitted. When I click on the button nothing happens. This is the code I have used to display contact us page in a div tag.

<div id="lightbox-panel">
    <?php echo $this->getLayout()->createBlock('core/template')->setTemplate('contacts/formlite.phtml')->toHtml(); ?>
    <p align="center">
        <a id="close-panel" href="#">Close this window</a>
    </p>
</div><!-- /lightbox-panel -->

This div tag is display:none at first. When the contact link is clicked it displays this div and echo the block for contact from that div. Can anyone tell me how can I make this form work?
This is the html of the contact form and the subsequent submit button:

<form action="/contacts/index/post" id="contactForm" method="post">

<div class="buttons-set" style="margin-bottom:1em;">        
    <input type="text" name="hideit" id="hideit" value="" style="display:none !important;" />
    <button type="submit" title="<?php echo Mage::helper('contacts')->__('Submit') ?>" class="button btn-saveadd"><span><span><?php echo Mage::helper('contacts')->__('Submit') ?></span></span></button>
</div>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T15:11:28+00:00Added an answer on June 16, 2026 at 3:11 pm

    I added a new action in my index controller and called the block of the new contact form from there. Added the block of that new phtml file in the XML file under layout handle of the new action created. So it looks something like this

    <contacts_index_quickcontact translate="label">
        <remove name="head" />
        <reference name="root">
            <action method="setTemplate"><template>page/empty.phtml</template></action>
        </reference>
        <reference name="content">          
            <block type="core/template" name="contactForm" template="contacts/formquick.phtml"/>
        </reference>
    </contacts_index_quickcontact>
    

    Hope it helps someone else too.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a pretty standard contact form that uses a cfc for processing now.
I have Contact Us link on footer of my MVC Application. On calling page
In my CMS contact-us page, I have the following code: {{block type=core/template name=contactForm form_action=/contacts/index/post
I have a form that validates using jquery. The form's id is contact and
I had a contact form that submitted to a php page with this content:
Ok, i have made a contact form. i need a php script to email
I have a view called contact.html.twig. It has a form with some textfields. I
I have a HTML form (called form.html )and a JavaScript function such that when
I have a model called Contact which has_one guest like so. class Contact <
I have an object called Contact. A Contact has a relationship with a set

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.