I am using sitecore Web Forms for Marketers 2.4.0 rev. 140117, It was working fine but we just noticed that emails are not working fine. Form contains save database and send email actions.
Form's information is saved correctly into database and email is also sent but email body is not replacing the values of the form fields.
here is the HTML generated by the form
Name * should have been replaced with the value entered in the name box but it is not happening, same problem with other fields.
Another issue is that "Insert Field" dropdown on the form is blank, does not contain any field.
<p><strong>Name: </strong>[<label id="{E8A4BF98-DE18-4DB7-B14D-E6DAD00F1872}">Name *</label>]</p>
<p><strong>Email:</strong> [<label id="{3E3DE00D-D804-47F4-AA51-69B7347C95C0}">Email *</label>]
</p>
<p><strong>Phone: </strong>[<label id="{BD908E77-C678-4A81-97DB-AD5D1FC81953}">Phone *</label>]</p>
<p><strong>Post Code:</strong> [<label id="{D6B91F3B-6EC7-4B3A-AE5F-F38ACD158AD8}">Post Code *</label>]</p>
<p><strong>Comments: </strong>[<label id="{0062519C-F761-4323-ADC6-D951734FBEC7}">Comment</label>]</p>
here is the generated email html
<p><strong>Name: </strong>[<label id=3D"{E8A4BF98-DE18=
-4DB7-B14D-E6DAD00F1872}">Name *</label>]</p>=0A<p><strong>Email:=
</strong> [<label id=3D"{3E3DE00D-D804-47F4-AA51-69B7347C95C0}">E=
mail *</label>]=0A</p>=0A<p><strong>Phone: </strong>[<label =
id=3D"{BD908E77-C678-4A81-97DB-AD5D1FC81953}">Phone *</label>]</p=
>=0A<p><strong>Post Code:</strong> [<label id=3D"{D6B91F3B-6EC7-4=
B3A-AE5F-F38ACD158AD8}">Post Code *</label>]</p>=0A<p><strong>Com=
ments: </strong>[<label id=3D"{0062519C-F761-4323-ADC6-D9517=
34FBEC7}">Comment</label>]</p>
Can you verify that your files are accurate? Start by comparing the dll's in your bin folder with a clean install of the Sitecore/Wffm version (especially wffm in this case). Things like this are often caused by dll's from an older version that get into the bin folder.
Related
I am supporting an ember site that was build by someone else. The frontend is Emberjs with a Drupal 7 backend.
The site has a user profile where they can enter a bio. The initial bio entry is fine, but if the user edits the profile (changes some other field for example) but does not change the bio text, then it saves something like <p>My bio</p>as the value of the field where the html tags are saved as text.
The component.js for the form has this in it:
bodyChanged(newValue) {
this.get('profile').set('bio', newValue);
},
Suspecting this is the culprit but not sure what to do to fix.
Thanks
I found the problem. My deserializing function that sucks in the drupal json was using json[fieldName]['und'][0]['safe_value']; as the value. When I switched it to use the json[fieldName]['und'][0]['value']; the problem went away.
I am using Send Email Message action. I have added one action for send email to admin and another thank you mail to user who filled the form so my question is how I can add user email in Send Email Editor. I tried to add email Insert Field but it is not working.
EDIT:
By Default, the TO Dropdown only allows content from the Email Field Type. To allow other field types, please go to to the Send Email Message action found here by default: /sitecore/system/Modules/Web Forms for Marketers/Settings/Actions/Save Actions/Send Email Message
go to the Editor section, and enter the following into the QueryString field:
AllowedToTypes={84ABDA34-F9B1-4D3A-A69B-E28F39697069}|{YOUR CUSTOM FIELD TYPE GUID}
The first guid is for the standard Email Field type, and the second one will be your custom field. This should allow you to choose from those fields in the TO field.
For best practices, you should duplicate the Send Email Message action, and apply the changes there to prevent issues with future upgrades.
To allow your custom fields to be selectable for the CC and From fields as well, your query string would look like this:
AllowedToTypes={84ABDA34-F9B1-4D3A-A69B-E28F39697069}|{YOUR CUSTOM FIELD TYPE GUID}&AllowedCCTypes={84ABDA34-F9B1-4D3A-A69B-E28F39697069}|{YOUR CUSTOM FIELD TYPE GUID}&AllowedFromTypes={84ABDA34-F9B1-4D3A-A69B-E28F39697069}|{YOUR CUSTOM FIELD TYPE GUID}
From there, to send an email to one of the fields on the form, simply choose the field by clicking the little arrow next to the 'To' field
I have noticed a bug in previous version of wffm where it places double brackets around the field name, for example: [[email address]]. If you notice the double brackets [[..]], then erase the entire field and select it again as shown above.
I found there is an issue a with the To: field in certain browsers - not sure if this is related to Bug 402562.
In Chrome I get js error messages but in Firefox I can insert the email field with no issues.
As stated my #amir818, you need to add the field name with brackets in the To field. If you are using Chrome then the arrow may not work due to a javascript error, it works in IE though.
Alternate way to add the field into the message body from the Insert Field droplist and then copy+paste into the TO field. Looking at your field names it should be [Emailaddress].
The double brackets that amir mentioned is a bug, you can get a fix from Sitecore and quote ticket number 402562. When you edit the form again, the field has 2 sets of brackets added which then breaks the send action, e.g. it would end up as [[Emailaddress]] which is incorrect and therefore fails
Well, I have to send files posted by one form to other form, I have to read an XML file first, if the file is valid I'll redirect to the next form, which has to have the valid file received in the past form. I tried with sessions but I'm not sure if it's the right way to go, here my models.
class InitialForm(models.Model):
...
name = models.CharField(max_length=50)
xml = models.FieldField(label='Please choose an XML file')
...
class SecondForm(models.Model):
...
name = models.CharField(max_length=50)
pdf = models.FieldField(label='Please choose a PDF file')
...
The reason I got two forms is because I've got to read the XML first and validate it, and then in the next form 'SecondForm' show the data I just parse from the XML in order to verify and give feedback to the user. Then both files must be inserted in a database, only if the first one is valid.
Any help will be welcome.
Thanks in advance.
I think what you need is a form wizard that Django offers for situations when you need to build a form that is split into multiple requests.
From their docs this is how it works:
The user visits the first page of the wizard, fills in the form and
submits it.
The server validates the data. If it’s invalid, the form
is displayed again, with error messages. If it’s valid, the server
saves the current state of the wizard in the backend and redirects to
the next step.
Step 1 and 2 repeat, for every subsequent form in the
wizard.
Once the user has submitted all the forms and all the data has
been validated, the wizard processes the data – saving it to the
database, sending an email, or whatever the application needs to do.
I created one Feedback form in Sitecore 7.2 by Web form for marketer(2.4) .
After submitting the form ,instead of displaying success message on same page I am redirecting user to "Thank-you" page. I want to display thank you message with "Email ID" that used to fill the form.
How i can get last page value in sitecore.
There is a good post by Mike Reynolds on Show Submitted Web Forms for Marketers Form Field Values on a Confirmation Page in Sitecore. http://sitecorejunkie.com/2014/06/14/show-submitted-web-forms-for-marketers-form-field-values-on-a-confirmation-page-in-sitecore/
Unfortunately you do not modified the Success Page pipeline but rather create a custom Save Action instead.
Can anyone tell me how to send a mail from plone site. What i m trying to do is(will list out my points)
i have a template page(html page) called contact us.In which the user can enter his/her name, email id, address, etc. After entering the things he have to submit it to a particular mail id.
I create a .py file for getting those values from contact us html page.
After getting the values, it should be mailed to a particular mail id.
my html page somewhat looks like like:
<html>
<form action="mailto" method = "post" name="mailto">
Name :<input type="text" name="fname" />
address :<input type="text" name="address"/>
</form>
</html>
mailto.py
class MailTo(BrowserView)
def __init__(self,context,request):
self.context = context
self.request = request
def registerdetail(self):
mailhost = self.context.MailHost
form= self.request.form
name=form.get('fname')
address=form.get('address')
mto = 'xxxx#gmail.com'
msg="""
Name:%s
Address:%s
""" %(name,address)
mailhost.send(messageText=msg, mto=mto, mfrom='yyy#yahoo.com')
return self.sucesspage()
I tested it directly by giving my own mailid in "mto=gsgfsf#gmail.com" but i didnit receive any mail. can anyone tell whats wrong with my things.
Thanks in advance
You'll find it much easier to simply use PloneFormGen (a popular add-on for Plone) to build your form. You can make the email destination for the form configurable by following the instructions at: http://developer.plone.org/reference_manuals/active/ploneformgen/select_mail.html
According to what you say on the mailing lists, your problem is that you installed the developer tool Products.PrintingMailHost.
With that installed emails are printed to the console instead of being sent. This is so you can test sending emails without actually having to send emails.
Verify you have configured Plone to send mail first. In Site Setup -> Mail, enter your mail server information and click Save and Send test e-mail.
Then using MailHost in Python should work (unless you are using Products.PrintingMailHost which prints email instead of sending it.)