Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

How can I create a custome URL for each survey that includes several id's

  • Kevin01
  • Kevin01's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
9 years 4 months ago #114532 by Kevin01
I'd like to create a survey / url that includes a business ID, employee ID, and service date. So a business manager knows who is responsible to the good service.

I thought about creating the URL with all of the fields in the start url but that would create too many combinations. So, I thought the business ID should be in the start url and the employee and date can be passed through, if the pass through data is saved, but I can't determine how to use the panel integration. Can you please help?

Example:

Business ID = 1234
Employee = 46
Date of Service = 11/16/2014

start url: limesurvey.org/survey/index.php/survey/index/sid/929292/en/eb?business=1234&employeeANDdate=4511162014

end url: limesurvey.org/survey/index.php/survey/index/sid/929292/en/1234


Thanks
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 years 4 months ago #114616 by DenisChenu
HI,

Think the best is to use 3 hidden text question type.

Just add 3 short text question with code business, employee and date. Hide the question.

Start url : /index.php/survey/index/sid/929292/en/eb?business=1234&employee4511&date=162014
End url : endurl/{business}

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The following user(s) said Thank You: Kevin01
The topic has been locked.
  • Kevin01
  • Kevin01's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
9 years 4 months ago - 9 years 4 months ago #114620 by Kevin01
Thanks Denis,

I documented it and got the start url to work. I'll upload the images and documentation for others tomorrow. I have not worked with the end url yet.

example.com/index.php/survey/index/sid/6...9/EID/12/RID/1023456

CID = Client ID
BID = Business ID
Employee ID = EID
RID = Receipt ID

Have a great day,
Kevin
Last edit: 9 years 4 months ago by DenisChenu.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 years 4 months ago - 9 years 4 months ago #114628 by DenisChenu
Remind to use example.org for url (or .com) : it made for this.

You can use different url system:
Code:
example.com/index.php/survey/index/sid/689956/newtest/Y/lang/en/CID/1/BID/429/EID/12/RID/1023456
But
Code:
example.com/index.php/survey/index/sid/689956/newtest/Y/lang/en?CID=1&BID=429&EID=12&RID=1023456
too.

And if you try to manage route url, even:
Code:
example.com/689956.html?newtest=Y&CID=1&BID=429&EID=12&RID=1023456

Denis

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Last edit: 9 years 4 months ago by DenisChenu.
The following user(s) said Thank You: Kevin01
The topic has been locked.
  • Kevin01
  • Kevin01's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
9 years 3 months ago - 9 years 3 months ago #114820 by Kevin01
Thanks. I documented the steps that might help someone create a custom url.

File Attachment:

File Name: Survey_How..._URL.pdf
File Size:184 KB
Last edit: 9 years 3 months ago by Kevin01.
The following user(s) said Thank You: optiopay
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose