gravity forms querystrings in email - wordpress

I have two gravity forms on my website that pass the email parameter via query strings. However, an email is sent to the user after he/she submits form one. In that email, I would like to have the url with the query string there so that the user can click on it. Whenever I try to do this by appending the mergetag to the end of the url, it never functions.....I am doing something like this www.mywebsite.com/new_form_page/?email={mergetag_email}. Is there a proper way to get this done?
Thanks

So I found out the issue. Wordpress removes formatting so all I had to do was click the box next to disable formatting and it worked fine....

Related

ASP.NET Core - Fill a form inside a View with bound ViewModel

my question is more logical than practical. So I have notifications system and everytime a notification is clicked it reroutes me to a page where I should give feedback to a user.Example
I need the UserId inside my Feedback Page, this way I can add the new Feedback to that user.
So what I am asking is: How do I tackle this problem? Will ViewData[] solve my problem or is flawed this way.
Since you are rerouting to a new page, and want to pass in the user's ID, I believe you would be well off to use a Query String
From the link that takes you to the Feedback Page, you can use a URL like this:
https://example.com/feedback?userId=123456
or add it to however you are building your links
From the Feedback Page, you can then capture that query from the URL

POST method for Clickable URL

We have a simple user database with user email contacts. The email needs to be verified. We send a verification code in the form of a clickable URL which user can click to verify their email. The clicked URL results in a GET call whereas we need it to make a POST instead. Is this possible?
In simple words: user sees a normal http://.... URL, which when clicked results in a POST instead of the usual GET.
No, unfortunately the server cannot retrieve the verification code. My only suggestion is to header("Location: x"); on the page where they click at the footer. ;D

asp.net redirection defect

I am working on asp.net application.the user is clicks on some link which is inside grid item template field. if he is not logged in then he redirects to login page. after log in he is properly coming back to same page;the problem is that "i have passed the value in querystring to the page where he click on the link and after loggedIn the grid is showing blank because that grid is not getting query string value" I think you understand my problem.plz share your helpful opinion.
http://www.aspdotnetfaq.com/Faq/what-is-the-difference-between-server-transfer-and-response-redirect-methods.aspx
It is not a defect, but the desired behavior of Response.Redirect.
Store value in session and retrieve it after he gets back successfully from the login page.

Pre-populate Asp.net form from E-mail Link

I'm look for a way to pre-populate Asp.net form from E-mail Link. I tried several method such as:
http://www.test.com/ContactUs.aspx?CustID=123
http://www.test.com/ContactUs.aspx?ctl00$ctl00$MainContent$MainContent$CustID=123
http://www.test.com/ContactUs.aspx?ctl00_ctl00_MainContent_MainContent_CustID=123
Our vendor is saying this should work but I'm having no luck with it. If someone can tell me what might be wrong with this or if there is another solution. This is being used for an e-mail campaign so that the user receiving the e-mail does not have to fill the form link is navigating to.
Jamal
You need to add server-side code to populate the fields from the querystring.

ASP.NET page redirection / crosspost

I have 3 asp.net pages: Search.aspx, Results.aspx and Login.aspx.
Now I want anonymous users to be able to search, so everyone can use search.aspx. This page calls
Server.Transfer(Results.aspx)
and therefore shows the results. Now when the user is not logged in, a link to the login page is displayed on the Results page. The problem is:
After the login, I want the user to be redirected automatically to the Results page. However I do not succeed so, as the PreviousPage property of Login.aspx is always null. And when I use
Request.UrlReferrer.LocalPath
it's the link to Search.aspx but not Results.aspx.
Also, when the user is on the Results page, how do I enable him to go back by clicking a link and all his search input criteria (like in textboxes) on the Search.aspx is still there so he can refine the search after having seen the results? Whenever I send the user back, all user input is lost.
I still haven't figured out if I should use a normal hyperlink, a linkbutton and how to retrieve the previous page url or preserve the input data.
I can use AJAX if that is any help, but a "pure" asp.net solution would be preferred.
When you do a Server.Transfer it is a serverside redirect...meaning the client still sees the original URL. You need to post the search criteria to the results page, store them locally, show the login link. When they are logged in you can redirect to the results page and rehydrate the search critera and show the results.
Try using Response.Redirect("url") instead of Server.Transfer. When you use Server.Transfer, the url on the client will remain the Search page and not actually redirect to the Results.
You can use User.Identity.IsAuthenticated to check if the user is logged in and show/hide the login button based on that.
To keep values for the page, you could store them in Session, then have the Search page look for them and, if they exist, place them in the controls.
You can also embed the URL you want to return to after login into the querystring if you want.

Resources