Helpcenter +918010117117 https://help.storehippo.com/s/573db3149f0d58741f0cc63b/ms.settings/5256837ccc4abf1d39000001/57614ef64256dc6851749879-480x480.png" [email protected] https://www.facebook.com/StoreHippohttps://twitter.com/StoreHippohttps://www.linkedin.com/company/hippoinnovations/https://plus.google.com/+Storehippo/posts
B4,309-10 Spaze iTech Park, Sector 49, Sohna Road, 122001 Gurgaon India
call to replace anchor tags contains '/admin' in href

How to create a custom form on your pages?

Scenario

You want to create a form on the site that your customers can fill to seek information about the franchise of your brand.

Example

Steps

Create a custom form

Please follow these steps to create the form:

  1. Go to Site > Forms section in StoreHippo Admin Panel to create a custom form.
  2. Click on Add New button in the top right corner. 
  3. Provide the Name as "franchise_information_request_form" fields and field label in the form as follows:
  4. Enter all other required details in the form as explained in Creating a custom form topic. 
  5. Click on Save to store the information. 

Setup Notification

You might want to send a notification (Email/SMS) when somebody fills the form. You can configure a new Notification or use an existing one in the Settings tab and set it up to be sent when the form is filled.

  1. Go to the Settings tab of the form.
  2. Select the Action as "Send Email".
  3. Select the mail template from the existing notification templates.
  4. Provide receiver email and attachment, if any.
  5. Save the action and the form. 

Create a page

Now, in order to show the form on Storefront, you need to embed the form in the page

  1. Go to Site >  Pages section in the StoreHippo admin Panel.

  2. Add or edit page

  3. Go to the Content field to edit the content of the page. Provide the following code snippet in the Code Editor tab as shown below (themes based on angularjs)

    <div ms-widget="ms.forms" ms-data-formname="franchise_information_request_form" ms-data-buttonname="Submit">
        <form name="franchise_information_request_form" ng-submit="submit()">
           <div ms-widget="ms.th3.form_layout1"></div>
        </form>
    </div>

    For Vue Js:
    <ms-forms formname="gadgets">
        <div v-if="!loading">
            <w-form-layout :form="form"></w-form-layout>
        </div>
    </ms-forms>

Add the page to the navigation

The final step is to provide the form on the header of the store to provide a quick link to your users. You can do that by adding new navigation

  1. Go to Site > Navigations section in StoreHippo Admin panel.
  2. Click on the "top-header" navigation.
  3. Select Type as "Static Page", select the "Franchise" page from the drop-down list for Link and Title as "Franchise".
  4. Save the Navigation.
  5. The navigation for the Franchise page will appear on the storefront as shown below:

Click here to know more about forms. 

2023-07-24T14:10:34.912Z