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.

Step 2.

Step 3.

Save Settings
Step 4. Form Parameters

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.

You will see this message:
This module needs to be configured.

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

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.

To add the Inquiry form to your existing details page:
- Add a Xmod FormView module to your page.

- You will be presented with a statement that says:
This module needs to be configured.
- From the module action menu select configure Xmod module.

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

Display Settings

Save Changes >> Good Job!
Next >> Step 9 Adding Sharing Form