Updated by Rob Howard
A DailyStory Magic Form enables you to integrate DailyStory with any web form on your website. This includes custom HTML forms or those built with other platforms such as Marketo, Eloqua, HubSpot and HTML form applications such as Ninja Forms.
Once setup, DailyStory Magic Forms capture customer data when forms are submitted and either associate the data with a DailyStory contact or create a new contact.
DailyStory does all this without requiring any changes to your existing forms or the addition of any custom code.
Create and Edit a Magic Form
To create a new Magic Form go to
Acquisition > Magic Forms. There you will find a list of all the existing Magic Forms. You can edit a Magic Form by clicking on it and you can create a new Magic Form by clicking the sidebar menu and clicking the +Create link:
Clicking either will open the Magic Form editor:
The Magic Form editor is very simple, but does have several required fields.
- Name the name of the Magic Form must be set. This is used mainly as a helpful reference for identifying the Magic Form.
- Url the full URL to the page containing the existing HTML form. For example, www.dailystory.com/contact-us. The full URL, including the domain, is required.
- Form Fields The form fields contain the mapping between your form and a DailyStory lead field. For example, if you have a form field named
C_Email_Addressyou would map it to a DailyStory
Not all of your form fields will be mapped to DailyStory Magic Forms. And Magic Forms are not meant to replace your existing automation system. Rather it provides association between a visitor and an email address and attributes the lead to the appropriate campaign.
Auto-discover Form Fields
When creating a new Magic Form you are presented with the option to "Find Forms". When clicked, the Magic Form editor can auto-discover your form fields. DailyStory will populate the Form fields with a list of the fields it finds. You will need to then map the discovered fields to the corresponding DailyStory fields.
The left column represents the fields on your form that DailyStory found. The right column represents the DailyStory lead field to map to. When a field is mapped the UI highlights that field with a green checkbox.
Advanced Form Settings
To find the Advanced Form Settings, click the
More options... link. These advanced options are helpful when dealing with multiple forms on the same page or for non-standard form submit buttons.
This will display the Advanced Form Settings:
Form Submit Button
If you receive an error that DailyStory cannot find your form's submit button, you'll need to set this up yourself. Click the "Select Form Submit Button". This will open a new browser tab and you'll notice that as your move your mouse across the screen a blue-box will appear with some cryptic information.
Navigate to your form's submit button and click it.
This will close the browser window and populate the XPath expression field. For example:
This information will tell Magic Forms exactly which element on your page is responsible for submitting the form.
If you have multiple forms on your page and Magic Forms cannot find the right form you can use the Form Id value to provide the id of your form.
For example, given a form with the following HTML:
<input type="text" name="firstname"/>
contact_us would be used to uniquely identify the form.
Use of Magic Forms requires that your form uses an
<input type="submit"> button. If a submit button is not found Magic Forms will use artificial intelligence to determine which button or link is associated with the form.
Frequently Asked Questions
Where does the data go in DailyStory when the form is submitted?
When the Magic Form is created it is associated with a campaign. When Magic Forms processes data for a form it will create a lead in your campaign and tag that lead as associated with a Magic Form.
Will Magic Forms work with Ninja Forms?
Yes, DailyStory Magic Forms have built-in support for Ninja Forms. Ninja Forms are commonly used with WordPress websites to easily add forms. You could also consider using the DailyStory WordPress plug-in and Web Forms to replace Ninja Forms.
How can I capture free-form text?
A common form is a contact us form. These forms typically have some area where several sentences can be typed, such as describing the reason for the contact us request. DailyStory Magic Forms has a special "Description" field that should be used for this type of data.
What if I have multiple forms on a single page?
When Magic Forms detects multiple forms on a single page it attempts to use the form with the most fields. For example, a search form and a contact us form may exist on the same page. DailyStory will pick the Contact Us form because it will have more fields. However, sometimes we need a little help. Use the Advanced Form Settings to select the form submit button and set the id of the form.
My form was found, but I don't know how to map the fields
Sometimes the form fields use cryptic names like,
input_1.3. In these cases it's pretty difficult to know which field is used for which form value, e.g. first name. If you run into this please contact us and we can help setup your Magic Form.
Can I start an automation when someone submits a form?
Yes, use the Magic Form submitted trigger to start an automation in your campaign when a Magic Form is submitted.