Pre-fill answer with entry URL

More
4 months 2 weeks ago #162298 by nmillstoshibatap
nmillstoshibatap created the topic: Pre-fill answer with entry URL
I've read many forum and manual posts, but can't get this to work at all.(A few years ago I had it working on an earlier version of LS.)

I'm running the latest version through LS.

For Q1 which I have hidden I want to record a response of Yes or No. (That is the question type.) However I can't get any URL to work for me. I must be missing something really simple, but I can't see it.

I can't use the Panel Integration as this only appears to work for text fields.

These are the variations I've tried without success.

example.com/145251?lang=en/eb?Q1=Y

example.com/145251?lang=en/Q1="Y "

example.com/145251?lang=en/eb?Q1=Y

example.com/145251?Q1="Y"&newtest=1

example.com/145251?14251X1=Y

example.com/145251?Q1=Yes&newtest=1

What am I missing??

Thanks in advance

Please Log in or Create an account to join the conversation.

More
4 months 2 weeks ago #162322 by tpartner
tpartner replied the topic: Pre-fill answer with entry URL
Have you tested with the question visible?

Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Please Log in or Create an account to join the conversation.

More
4 months 2 weeks ago #162381 by nmillstoshibatap
nmillstoshibatap replied the topic: Pre-fill answer with entry URL
Yes I have, the question is not answered

Please Log in or Create an account to join the conversation.

More
4 months 2 weeks ago #162382 by jelo
jelo replied the topic: Pre-fill answer with entry URL

nmillstoshibatap wrote: I'm running the latest version through LS.

Which translates into what exact version. The "latest" is never helpful. You don't know when the next latest is released. So numbers please.


Start with complete URLs to check issues with rewriting the URL first. Start with a simple textquestion, which shows the text of the get variable. If that is working, than try it with the other questionstypes.

Post a complete URL from your surveylink (you can change the domainname to something different e.g www.xyz.tld/ ).

www.xyz.tld/index.php/survey/index/sid/0...questioncode2=answer

Please Log in or Create an account to join the conversation.

More
4 months 2 weeks ago #162387 by nmillstoshibatap
nmillstoshibatap replied the topic: Pre-fill answer with entry URL
Thanks jelo, the version I'm using is 2.72.6.

I used your troubleshooting advice and got it running within minutes as I wanted it. can't figure out why it wouldn't work before, but I got the output I wanted.

A working URL looks like this:

example.com/145251?newtest=Y&Q101=N

Thanks

Please Log in or Create an account to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!