call to replace anchor tags contains '/admin' in href

How to create a Franchise Request Form?

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.

    <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>

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. 

2019-03-05T11:11:16.499Z