Form Wizard Pro Notification Template not include UserInfo

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
7/23/2014 4:15:35 PM
Gravatar
Total Posts 30

Form Wizard Pro Notification Template not include UserInfo

I have just purchased and installed Form Wizard Pro. It is the latest version (2.6.1.8) and I upgraded MojoPortal to match latest version (2.4.0.4 MSSQL). I am running ASP.NET Info v4.0.30319 Running in Full Trust (from the System Info page) on a Windows 2008 R2 server under IIS.

If I leave the Notification Template setting to Auto Generate, I get all three pieces of data in this order:
UserInfo (which is URL and IP address)
FormData
DetailLink (A form has been submitted, click link etc etc).

I created and saved a very simple template, as I just wanted to reorder the data:

#FormData

---------------------------------

#UserInfo

#DetailLink

However the email comes only with FormData and DetailLink. Where it should put the user info it instead puts the text "#UserInfo". I can forward email examples if you need. I already cleared out and copy/past from the Supported Tokens section as well as from the Help Section just to make sure I'm not typing the variables wrong.

Thanks for the help in advance.

7/24/2014 10:22:45 AM
Gravatar
Total Posts 18439

Re: Form Wizard Pro Notification Template not include UserInfo

Hi,

#UserInfo token is only replaced if the user is authenticated (logged in) when submitting the form. It includes the username of the signed in user and the ip address. It does not contain the url of the form page.

It works the same with a custom template in my testing.

Hope that helps,

Joe

7/24/2014 11:03:20 AM
Gravatar
Total Posts 30

Re: Form Wizard Pro Notification Template not include UserInfo

Thank you for your response. However, my experience is slightly different. I just went and made sure the "auto generate" template was in use. Then I logged out and refreshed the contact us page. I had to enter the captcha, a good sign I am not logged in.

The email delivered is this (with the URL and IP address at the top as stated above, then the form data, and lastly the "form has been submitted/view submission click here)---

From Url: http://vsi.visualsolutionsinc.com/contact-us.aspx
From IP Address: 10.2.10.25

Name:
Test Name

Phone Type:
Work

Phone Number:
Test Number

Email Address:
test@test.com

Comments:
Testing auto generate template, while not logged in. Testing... testing... testing...

A form has been submitted, click the link below to view the submission:
http://vsi.visualsolutionsinc.com/FormWizard/ViewSubmission.aspx?mid=50&pageid=8&rid=20c5d270-674b-4651-a9ec-c857651850fc

-----------------------------------------------

To contrast, when I am logged in and using the same auto generate template, it is as you say and sends the username in addition to all of the above---

Received From Site User: Spencer
From Url: https://vsi.visualsolutionsinc.com/contact-us.aspx
From IP Address: 10.2.10.25

Name:
Test Name

Phone Type:
Home

Phone Number:
Test Number

Email Address:
test@test.com

Comments:
Testing form wizard pro for contact us page. Testing form wizard pro for contact us page. Testing form wizard pro for contact us page.Testing form wizard pro for contact us page.

A form has been submitted, click the link below to view the submission:
https://vsi.visualsolutionsinc.com/FormWizard/ViewSubmission.aspx?mid=50&pageid=8&rid=f2e202f1-f721-42df-945b-e40bd053da44

7/24/2014 11:25:58 AM
Gravatar
Total Posts 18439

Re: Form Wizard Pro Notification Template not include UserInfo

ok, so your complaint is that the autogenerated notification contains the url of the form and the custom template notification does not?

I thought you were saying the template did not include the user name and ip address.

really the url for the form page was kind of a legacy thing, we added a setting to be able to customize the notification subject so that that could be used to identify a specific form submission if multiple forms exist on the site. If that url is important to have I can log it in our project tracker to add it in the template notification.

Thanks,

Joe

7/24/2014 11:36:16 AM
Gravatar
Total Posts 30

Re: Form Wizard Pro Notification Template not include UserInfo

No, not a complaint. Sorry if that's how it came across. My issue is I'm trying to change the email template, trying to use a customized one and not getting the same results as the auto generated one. As the first post says, I get all 3 pieces of data if using the auto generate template. When I try to use a simple custom one, the UserInfo variable is not passed it just actually puts "#UserInfo" as text in the email. I do want the user info, but I'm not getting it.

Here's an example:

My template is this:

#FormData

---------------------------------

#UserInfo

#DetailLink


But what gets emailed is this:

Name:
Test Name

Phone Type:
Work

Phone Number:
Test Number

Email Address:
test@test.com

Comments:
Custom Form Template to rearrange three data pieces... Testing... Testing... Testing...

---------------------------------

#UserInfo

View Details (HTML Link to: https://vsi.visualsolutionsinc.com/FormWizard/ViewSubmission.aspx?mid=50&pageid=8&rid=17cdcfcb-96a1-4881-9eac-6391b1094b8d)

7/24/2014 11:46:34 AM
Gravatar
Total Posts 18439

Re: Form Wizard Pro Notification Template not include UserInfo

ok, are you saying you get that result when a user who is logged in submits the form? That result would be expected if the user is not logged in.

Are you using a plain text template or html?

In the Notification Settings there is a checkbox whether to use plain text or not. If it is checked to use plain text then make sure the plain text version of the template has the tokens. In the template editor there is a separate tab for the plain text version of the template.

7/24/2014 11:56:42 AM
Gravatar
Total Posts 30

Re: Form Wizard Pro Notification Template not include UserInfo

For the notification settings, the plain text setting is UNchecked. For the custom template, I filled out both the HTML and Plain Text tabs just to be safe. For the last test and example email, I was not logged in. But as you can see from the earlier post using your auto generate template option, being logged in or not logged in only changes whether the user name is sent; both ways are successfully sending the from URL and IP address (logged in or not).

So I'm trying to get the custom template to replicate that functionality - to send all three data pieces. What is happening though is that the #UserInfo token is not getting replaced when the form is submitted/emailed. Instead it's just sending the characters "#UserInfo". And it's the same result for logged in or not logged in - just triple checked it. No token replacement, just sends the text "#UserInfo".

I can forward you the email examples if that helps.

7/24/2014 12:16:57 PM
Gravatar
Total Posts 18439

Re: Form Wizard Pro Notification Template not include UserInfo

ok, in my testing here, the UserInfo token is only replaced in a custom template if the user is logged in and includes the username and ip address. I suppose we could include the ipaddress if the user is not logged in, but currently it is only doing that with logged in users, which is as you say different behavior than the autogenerated notification.

I will log this in our project tracker and fix it for the next update of Form Wizard Pro. I'll include a link to this thread in the project tracker so I will remember to come back and post on this thread when the next update of Form Wizard is ready.

Hope that helps,

Joe

7/24/2014 12:31:48 PM
Gravatar
Total Posts 18439

Re: Form Wizard Pro Notification Template not include UserInfo

I just sent you a dll replacement that I believe fixes this. If you confirm the fix I will patch the current Form Wizard release with this fix.

Thanks,

Joe

7/24/2014 12:54:29 PM
Gravatar
Total Posts 30

Re: Form Wizard Pro Notification Template not include UserInfo

That was fast, just like everyone else has said multiple times in the forums! =) I put the patched file in, edited web.config to recycle the app, and did the testing. It's successful now and mirrors the auto generated functionality. Logged in I get username, submitting url, and IP address. Logged out submitting url & IP address.

Thanks!

7/24/2014 12:57:14 PM
Gravatar
Total Posts 18439

Re: Form Wizard Pro Notification Template not include UserInfo

Glad I was able to help.

Thanks for the bug report.

You must sign in to post in the forums. This thread is closed to new posts.