Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I have to assume with SurveyMonkey you can prepopulate answers in the survey via URL variables. For example, if I am sending out an email to my customers and one of the data points I want to have associated with my survey is email address.
Instead of the customer having to enter their email address I should be able to populate it for them.
IE surveymonkey.com/surveyname?email=blah#blah.com would fill in the Email fields with blah#blah.com
Is this possible? If not is there a reason? Does someone know of a survey platform that does allow this?
Thanks,
Chris
You can provide a custom variable with the survey by using the 'c' parameter, e.g.:
surveymonkey.com/s/survey?c=
This custom id is then stored on the respondent's details. You can put any text you like in there, including an email address.
However AFAIK you can't store other variables this way - just the custom variable.
Cheers,
Miles
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I allow the ability for users to create additional accounts as part of their Company.
IE. Nicky has an account, and her company is Nike. So her email address is nicky#nike.com.
Because her company is 'Nike', I'd only like email addresses she associates with new accounts to be #nike.com. If she tried to create bob#nike.com.au, it wouldn't be allowed.
I'm trying to find the regex that would match Nicky's domain to the one she enters in a new account field. If it's accepted, she can create the new account. Otherwise, it'll throw an error.
Are you familiar with regex? You shouldn't come and say "I need a code that does this: ..." without giving your own input, your post can come off as rude. I'll answer your question about the usage of regex though.
You can get the domain out of your e-mail input with a regex like this: (?<=#)([^\s]+)(?=\s|$) (doesn't work in javascript due to lookbehind). See https://regex101.com/r/qX1qF5/3 for examples and description.
Based on some answers on stackoverflow, if you're using Ruby, which we can only assume you are because of tags and not your actual post, you can capture it using scan or match:
domain = eMailInput.scan(/(?<=#)([^\s]+)(?=\s|$)/).first
Then you compare it to your domain name variable and you get the answer you need. It doesn't seem like the actual "validation" part should be done with regex.
That's the theory, anyway, and the way how I would approach this problem. Now go ahead and use it in your code and tell us if it works or if there are problems you're encountering.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
Is it possible to program without using a database to export text directly to a Numbers or Excel document?
I mean if you have like "name", "phonenr", "date" etc. and you want to send and save it to an excel/numbers document. Is it possible to do it by code ?
I know how to send the text as an email with code, just don't know if its possible to save it to excel/numbers document.
Tried to search for a solution to this but only thing I found was going through a db. I was thinking of avoiding it as far as I can to simplify my application. (Haven't started yet, so I don't have any example how it will look like). Hope this explanation of was enough, ask if you don't understand it :)
yeahm you can do that by using excel lib for the language you are using,
http://www.vogella.com/articles/JavaExcel/article.html
for ios: http://sourceforge.net/projects/xlslib/
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
Is there any way to sign in with two steps using Devise? I would like to allow users sign in using two steps, maybe sending an e-mail to users with a code.
The pattern you're looking for is called Multi-Factor Authentication. The recommended way to do this with Devise (via the Devise wiki) is Houdini
Confirmable: sends emails with confirmation instructions and verifies whether an account is already confirmed during sign in.
http://rubydoc.info/github/plataformatec/devise/master/Devise/Models/Confirmable
Like this??
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 6 years ago.
Improve this question
I wanna know what keyword was type in search engin textbox that leads the user to my website ...
it is pretty easy for google ... because it hold the search parameter in it's querystring and after redireting change it to destination ... (if u right clik on one of the items in google search list and 'Copy link address' you can see that keywords are in 'q' parameter).
but for other search engins like yahoo.com, bing.com, volunia.com (and the rest of sites mentioned in this link http://en.wikipedia.org/wiki/List_of_search_engines ) the querystring don't contain the keywords and it directly refer to a site. How can I find the user keywrod in all search engins?
Have a Look on this (free to sign up)
http://www.google.co.in/webmasters/
and
http://www.bing.com/toolbox/webmaster
i assumes you want an API right ?
Google Analytics provides APIs to collect, configure, and report on user-interactions
The Clicky Analytics API can also help you
they provide you the right way to what else you want
Sign up for google analytics!! Very easy to install and use.
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
I see in many sites the use of short links like this:
http://www.chipbennett.net/2011/04/28/2011-nfl-draft-colts-round-1/
to this
http://bit.ly/mxytw8
but I wonder to know why they've been used!
The only thing I could imagine is to hide the original link or to gain data weight in a database?
Simply because services like Twitter are limited in the message size. Or to make it easier to type in the address instead of copy/pasting. Could also be misused by spammers or phishing attacks to hide the real address. See http://en.wikipedia.org/wiki/URL_shortening
The user may be doing it to take advantage of link tracking provided by bitly.
Every bitly link has an info page, which reveals the number of related clicks and other relevant data. You can get to the info page in a few different ways.
They're mostly used with Twitter (which has a very short message size) and historically for plain text email where mail readers would line-wrap long URLs in the middle.