DNN Professor Test Lab and Product Training Center Training Login
March 12, 2010

Learning Lab 6.1  
Business Directory 6.1 - Step 8 - Adding Inquiry Form to Details Page  

DNNP-BD6.1 Inquiry Form and DNNP-BD6.1 Inquiry Form 2

In this lesson we will discuss the Inquiry forms and adding DNNP-BD6.1 Inquiry Form to a new portal page and optionally adding DNNP-BD6.1 Inquiry Form 2 to a separate details page.

The Inquiry form (DNNP-BD6.1 Inquiry Form 2) is designed to be used on the separate details page when using the DNNP-BD6.1 Tabbed Detail View 2 configuration discussed in the lesson Configure XMod.

We will assume that you have already created your DotNetNuke portal page for your details module and desire to add the optional the inquiry Form (DNNP-BD6.1 Inquiry Form 2) to this details page.

Configure Inquiry Form Settings

If you have already completed these steps in the lesson - Configure Inquiry Form, skip to the bottom section of this page for instructions on adding the inquiry form to your details page.

Business Directory includes two Inquiry forms (DNNP-BD6.1 Inquiry Form and DNNP-BD6.1 Inquiry Form 2). The DNNP-BD6.1 Inquiry Form is designed to be added to a hidden DotNetNuke portal page on your site and be called when a visitor clicks the 'Make Inquiry' button on the DNNP-BD6.1 List View template. The DNNP-BD6.1 Inquiry Form 2 form is designed to be used when you are showing your listing details using the XMod details module on a separate DotNetNuke portal page. The only difference between these two forms is  the DNNP-BD6.1 Inquiry Form includes a close button that closes the new browser window that opens the stand-alone inquiry form.

Step 1.

Manage Business Directory Inquiry Form

Step 2.

Mangae Forms >> Edit >> Click Settings

Step 3.

Business Directory Inquiry Form Settings

Save Settings

Step 4. Form Parameters

Email Parameters for Inquiry Form

In the parameters, above, there are two parameters that allow the form to send mail:

parameter name="sEmail"

parameter name="smtpServ"

sEmail - The default value is {XMOD_PortalEmail} and returns the email associated with your portal's Administrator account. This value is the From value used to send emails. You can change this to the email of your choice. In addition to the main form, Primary Contact Email, this is the email address that will also receive emailed inquiries.

smtpServ - The default value is mail.{XMOD_PortalAlias} and will return mail.YOURDOMAIN.com. You can change this value to the SMTP server of your choice. Example: If you are hosting at PowerDNN.com the value would be 127.0.0.1

Change these values if they do not meet your site's email requirements.

Step 5. Save Form

Step 6. Click Done

Add Inquiry Form to a FormView Module and a Page on Your Site

If you decided to use the  DNNP-BD6.1 Inquiry Form (Inquiry form opens in  a new window), follow these steps below.  Note: These instructions have been given in Step 4 Configure Inquiry Form and are reprinted here for clarification between the two inquiry forms.

1. Create a page on your site and name it, for example, Business Directory Inquiry Form.

2. Add a XMod FormView module to the page.

Add XMod FormView module to page

You will see this message:

This module needs to be configured.

Module Edit Menu >> Configure XMod Module

When you are configure mode note the tabid in the URL of the page.

Example: BusinessDirectoryInquiryForm/tabid/59/ctl/Configure/mid/392/Default.aspx

This will be used on the main form for the value of the parameter named InquiryFormTabID which is explained in Step 3 (Configure Main Form).

DNNP-BD6.1 Inquiry Form and save changes

Done. Good Job!

Optional: Add Inquiry Form to a FormView Module on your separate detail page

If you decided to use the  DNNP-BD6.1 Inquiry Form 2:

The DNNP-BD6.1 Inquiry Form 2 is designed to be used on a separate Business Directory detail page.

We will now add it to the details page.

The Inquiry form works best when using a portal skin that has a right content pane that is at minimum 200px wide.

Business Directory inquiry form on separate detail page

To add the Inquiry form to your existing details page:

  1. Add a Xmod FormView module to your page.

    Add Xmod FormView module to details page for inquiry form
     
  2. You will be presented with a statement that says:
    This module needs to be configured.
     
  3. From the module action menu select configure Xmod module.

    Configure FormView module for the sharing form

    Select the DNNP-BD6.1 Inquiry Form 2 form.

    Select the inquiry form

    Display Settings

    Inquiry form display settings

Save Changes >> Good Job!

Next >> Step 9 Adding Sharing Form

 


© 2009 by DNNprofessor.com  | Terms of Use | Privacy Statement | Email White Listing