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

  • Home
  • SEARCH
  • 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 7612581
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T01:56:58+00:00 2026-05-31T01:56:58+00:00

Is it possible to use pages in Magento to have a customizable contact form?

  • 0

Is it possible to use pages in Magento to have a customizable contact form?

If it’s possible:

  1. What action should I call to support this?
  2. Is it possible to use my customize form elements or do i need to use Magento Standards?

Form I’m using to my Page:

<form action="" method="post">
  <input type="hidden" name="formID" value="20642064378453">
  <div class="form-all">
    <ul class="form-section">
      <li class="form-line" id="id_8">
        <label class="form-label-left" id="label_8" for="input_8"> Full Name </label>
        <div id="cid_8" class="form-input"><span class="form-sub-label-container"><input class="form-textbox" type="text" size="10" name="q8_fullName8[first]" id="first_8">
            <label class="form-sub-label" for="first_8" id="sublabel_first"> First Name </label></span><span class="form-sub-label-container"><input class="form-textbox" type="text" size="15" name="q8_fullName8[last]" id="last_8">
            <label class="form-sub-label" for="last_8" id="sublabel_last"> Last Name </label></span>
        </div>
      </li>
      <li class="form-line" id="id_1">
        <label class="form-label-left" id="label_1" for="input_1">
          Name<span class="form-required">*</span>
        </label>
        <div id="cid_1" class="form-input">
          <input type="text" class="form-textbox validate[required]" id="input_1" name="q1_name" size="20">
        </div>
      </li>
      <li class="form-line" id="id_3">
        <label class="form-label-left" id="label_3" for="input_3">
          Email<span class="form-required">*</span>
        </label>
        <div id="cid_3" class="form-input">
          <input type="text" class="form-textbox validate[required]" id="input_3" name="q3_email" size="20">
        </div>
      </li>
      <li class="form-line" id="id_4">
        <label class="form-label-left" id="label_4" for="input_4"> Topics </label>
        <div id="cid_4" class="form-input">
          <select class="form-dropdown" style="width:150px" id="input_4" name="q4_topics">
            <option>  </option>
            <option value="Option 1"> Option 1 </option>
            <option value="Option 2"> Option 2 </option>
            <option value="Option 3"> Option 3 </option>
          </select>
        </div>
      </li>
      <li class="form-line" id="id_5">
        <label class="form-label-left" id="label_5" for="input_5"> Other Options </label>
        <div id="cid_5" class="form-input">
          <div class="form-single-column"><span class="form-radio-item" style="clear:left;"><input type="radio" class="form-radio" id="input_5_0" name="q5_otherOptions" value="Option 1">
              <label for="input_5_0"> Option 1 </label></span><span class="clearfix"></span><span class="form-radio-item" style="clear:left;"><input type="radio" class="form-radio" id="input_5_1" name="q5_otherOptions" value="Option 2">
              <label for="input_5_1"> Option 2 </label></span><span class="clearfix"></span><span class="form-radio-item" style="clear:left;"><input type="radio" class="form-radio" id="input_5_2" name="q5_otherOptions" value="Option 3">
              <label for="input_5_2"> Option 3 </label></span><span class="clearfix"></span>
          </div>
        </div>
      </li>
      <li class="form-line" id="id_7">
        <label class="form-label-left" id="label_7" for="input_7"> Message </label>
        <div id="cid_7" class="form-input">
          <textarea id="input_7" class="form-textarea" name="q7_message" cols="40" rows="6"></textarea>
        </div>
      </li>
      <li class="form-line" id="id_2">
        <div id="cid_2" class="form-input-wide">
          <div style="margin-left:156px" class="form-buttons-wrapper">
            <button id="input_2" type="submit" class="form-submit-button">
              Submit Form
            </button>
          </div>
        </div>
      </li>
      <li style="display:none">
        Should be Empty:
        <input type="text" name="website" value="">
      </li>
    </ul>
  </div>
  <input type="hidden" id="simple_spc" name="simple_spc" value="20642064378453-20642064378453">
  <script type="text/javascript">
  document.getElementById("si" + "mple" + "_spc").value = "20642064378453-20642064378453";
  </script>
</form>

Thank You!

  • 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-05-31T01:56:59+00:00Added an answer on May 31, 2026 at 1:56 am

    The Mage_Contacts_IndexController::postAction() method can process custom contact forms.
    The posted data needs to fulfill some basic requirements:

    // Excerpt from Mage_Contacts_IndexController::postAction()
    
    $postObject = new Varien_Object();
    $postObject->setData($post);
    $error = false;
    
    if (!Zend_Validate::is(trim($post['name']) , 'NotEmpty')) {
        $error = true;
    }
    if (!Zend_Validate::is(trim($post['comment']) , 'NotEmpty')) {
        $error = true;
    }
    if (!Zend_Validate::is(trim($post['email']), 'EmailAddress')) {
        $error = true;
    }
    if (Zend_Validate::is(trim($post['hideit']), 'NotEmpty')) {
        $error = true;
    }
    if ($error) {
        throw new Exception();
    }
    

    This code shows you which criteria your form needs to fulfill you the controller action works with your data out of the box.

    First of all, the data has to be posted (not sent via GET).
    Then a non-empty name field, an email field (with a syntacticly correct email), a non-empty hideit field and a comment field need to be present.

    The form needs to be posted to the URL /contacts/index/post.
    The best way to generate the URL in Magento would be echo Mage::getUrl('contacts/index/post').

    The posted data is made available in the contacts email through the {{ var data}} variable.
    The email template can be adjusted through the admin interface under System > Transactional Emails.
    By default the template is very basic but can be easily extended. For example, to add the value of a field called q5_otherOptions to the email use `{{var data.q5_otherOptions}} as a placeholder.

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

Sidebar

Related Questions

Is this possible to use Ajax.Beginform with update target inside of ajax form. like
Is it possible use a MySQL query to perform this kind of check? If
I need a control having these features: It should be possible use it in
Is it possible to use a vector graphic as a custom form shape in
Is it possible to use Facelets pages and .jsp style ICEfaces pages in the
If you have 2 different pages (call them home and posts) that share ALMOST
On one of my ASP.NET pages I have several asp:textbox fields. On this page
I've got a question about layout pages in MVC3: Is it possible to use
I have started to look into if it is possible to use facebook connect
Is it possible to use IIS Express to host pages on a network. Out

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.