Sitecore Web Form for Marketers - create a cookie - cookies

This is a two part question.
Using Web Forms for Marketers 2.3:
Is it possible to have a cookie be created on successful submission?
Without actually exporting the ascx file, would like to keep it in Sitecore.
Second question, would it be better to have a content editor choose which item has the form or would it be better/easier to have a dropdown to pick which form is needed and then have the code determine which form to show.
Thank for any insight!!!

For the First question,
If you have Sitecore DMS, on a successful submission there is an event, and a Goal maybe you can use that, insteed of a cookie.
See https://doc.sitecore.net/sitecore%20experience%20platform/personalization/walkthrough%20personalizing%20components for using it with personalization rules the picturs are for Sitecore 8 but basically the same for Sitecore 6.5+
Programmatically you can use the Analytics API, see https://sdn.sitecore.net/upload/sitecore6/65/engagement_analytics_api_cookbook_sc65-a4.pdf for Sitecore 6. The API has changed considerably with Sitecore 7.5.
An alternative is to set the cookie on the Success page.
you can have a Success page, or a Success message in WFFM. for a message use something like this:
Thanks <script>document.cookie="formsuccess=ok";</script>

Related

SItecore WFFM trackig field data?

I am using sitecore 7.2 rev. 140228, We have some default tracking in Sitecore WFFM that could be seen in advance field under standard fields.
Client asked us where is report for this tracking and where we can review this events etc ... I have tried but could not found any way to get this tracking report.
There are WFFM reports in your Sitecore desktop under the Sitecore start button -> All Applications -> Web Forms Form Marketers -> Form Reports
In there, you can select the form you want to see the report of. Reports include things such how many people have filled in the form, how many dropped out and the values of the fields when they are filled (if you've enabled form dropout tracking).
Alternatively, if you're just interested in which goals have been triggered on which page you could potentially find this in the Executive Dashboard (haven't used 7.2 in a while so not sure anymore which data it shows) or you'd have to write a SQL query and query the database.
Use button "Form Reports" on your ribbon:

How to enable latest Twitter feeds for organization in Sitecore 8

I am working on sitecore 8, I have installed MongoDB and I am wondering how i can get the Social Media enable in my sitecore. I want to show the latest twitter feed of the organization on page. Through some search I got to know sitecore 8 have given this feature out of the box.
Could anyone help me in this.
Thanks in advance.
Why do you need to do it via Sitecore?
Twitter has page for creation widgets: https://twitter.com/settings/widgets/new (You should be logged in to Twitter to create widget). You are able to create any widget for organization (by Twitter username), for tag (by Twitter hashtag), etc. You can copy code from Twitter to your sublayout and use it.
It has sense to do it using Sitecore Social only if you want to show different Twitter spots for different Twitter users.(But you said that you want to do it for organization). In this case, please follow documentation on dev.sitecore.net or sdn.sitecore.net
widgets are soon to be deprecated, try to use https://publish.twitter.com/ instead, it provides several options to customize how you want the feed to be viewed, and you'll only need to include the html in the layout or specific view you want in sitecore.

Sitecore webforms for marketers save action

For a webshop i'm using Sitecore Webforms For Marketers. There is a multiple server configuration with 2 Content Delivery Server(CDS) and 1 Content Management Server(CMS). On the CDS servers is no possibility to write data, so i have configured a webservice to forward the form data from the CDS to the CMS server.
What's the goal? There are 2 forms where a user can:
Post a review for a product at the products detail page
Post a review for a product and select the product in a dropdownlist at a global
page
The problem is that i have less experience with Sitecore Webforms For Marketers. It's important that the review's parent item the right product is. I have read the developer manual and figured out there are several save actions, but not the one i prefer. Do I need to create a custom save action or is there a simple workaroud (e.g. with workflows)?
Thanks a lot!
Jordy
Create a save action that calls your web service and submits the data to your CM instance.

Sitecore webform for marketer posting submit action to layout instead of an item

We have setup a webform using webform for marketer module in sitecore.
Using this module, we are creating web forms where users can fill details and submit the form. On submit, we can do actions such as storing in database, send email etc.
Now we were able to creat such form using webform for marketer module in sitecore. Now the problem is when user fill the form and hit submit button, instead of posting this action to the page, request is getting redirected to layout in sitecore. This is a same layout we are using to resolve the page on backend.
I have found solution on this link.
http://sdn.sitecore.net/SDN5/Forum/ShowPost.aspx?postid=37264
For some reason App_Browser folder was missing from site. Once i put that folder in. It started working.
Also, i was reading on sitecore sdn site that, in 6.4.1 version, they are removing need for App_Browser

Sitecore (Web Forms for Marketers) success page

Let's imagine I've made a simple form using the Web Forms for Marketers module 2.2 (for CMS 6.4), and have set this up to use a 'success page' (server side redirect to a specified sitecore item). This works great.
Now it turns out that the thank you page needs to show certain field variables from the form which was just submitted.
"Dear x, thank you for your interest in Y".
On the success page, it seems like there is no way to retrieve the information (server-side) I need to show this information.
What would be a good way to approach this problem?
Is there a way to hook into sitecore webforms before the page is redirected to the success page (so I can pass along an orderId, for example)?
You can create a custom action which will give you access to all the forms data. From the action you can redirect the user to the appropriate place. You can find documentation on how to create a custom action in the reference guide on page 42.
Make sure your action is always after Save To Database because otherwise the data won't be saved.