View Issue Details

This bug affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
08761Feature requestsSurvey participants (Tokens)public2014-02-26 12:04
Reporterfairsay Assigned To 
PrioritynormalSeverityfeature 
Status newResolutionopen 
Summary08761: Pre-filling registration attribute via URL
Description

I wish to pre-fill an attribute via the URL for a survey which uses tokens and allows registration. At the moment this isn't possible (from reading through the documentation) but I suspect would be a useful feature for many. My specific use-case is to use it for a tracking code in the URL so I know the source (or other aspects I wish to track) of the registration.

Is this a feature others want or could see as being useful?

Additional Information

I have a team who can implement it for me. Ideally I'd like to see it as a contribution to the LimeSurvey code base. For this, I need some guidance to help them quickly identify the files that need editing, the coding conventions they need to work with and other aspects that can help them produce code you can add to the core. What guidance should I pass to this developer (e.g. I can refer them to this ticket) to help them help you integrate this feature.

e.g. I know it could be done via javascript, but that seems a bit hackish so how should they do it 'right' for re-use by others?

TagsNo tags attached.
Bug heat4
Story point estimate
Users affected %

Users monitoring this issue

There are no users monitoring this issue.

Activities

fairsay

fairsay

2014-02-25 11:33

reporter   ~28902

FYI: - I've logged this as a 'patch' instead so this can be closed/deleted.

DenisChenu

DenisChenu

2014-02-25 17:12

developer   ~28915

Think a plugin can do that. Some replace register somewhere.

fairsay

fairsay

2014-02-25 17:14

reporter   ~28917

OK - so you are saying develop it as a plugin that extends the register code?

DenisChenu

DenisChenu

2014-02-25 18:31

developer   ~28921

Last edited: 2014-02-25 18:59

I work on a replaceRegister plugin actually, not ready, but i put the link here when it's done.

PS: here i think i allow prefilling via URL but prefilling of token attribute.

fairsay

fairsay

2014-02-25 20:16

reporter   ~28922

OK - so the work I need done will be either this week or next week. Could they help you with this plugin, otherwise they'll just do a custom implementation (and I'd prefer it contributes to the lime survey code base)

DenisChenu

DenisChenu

2014-02-26 10:38

developer   ~28925

Working draft : https://gitorious.org/ls-extendregister/ls-replaceregister
Some function can be included in 2.06/2.1

fairsay

fairsay

2014-02-26 11:11

reporter   ~28927

Thanks DenisChenu - I'll have the developers take a look. How close would you estimate you are to release? (I know all open source is ready when ready, but just to give an idea).

DenisChenu

DenisChenu

2014-02-26 11:34

developer   ~28930

You can use it in 2.05 already. For 2.06/2.1 : don't know but i think we don't include "Pre-filling survey via URL in register", maybe prefill token atribute (don't know).

fairsay

fairsay

2014-02-26 12:01

reporter   ~28931

OK - I'll check it out (but not on my production system initially!) and then ask the developer to add the 'prefill token attribute' functionality.

DenisChenu

DenisChenu

2014-02-26 12:04

developer   ~28932

You have it actually, but ONLY for attribute not in show_register

https://gitorious.org/ls-extendregister/ls-replaceregister/source/54cf14d6d11f83f1870420ba5a525568eb82924c:replaceRegister.php#L201

If attribute is in show_register : only set with POST
If attribute is not in show_register : only set with GET (or param: same think for Yii)

Issue History

Date Modified Username Field Change
2014-02-24 17:42 fairsay New Issue
2014-02-25 11:33 fairsay Note Added: 28902
2014-02-25 17:12 DenisChenu Note Added: 28915
2014-02-25 17:14 fairsay Note Added: 28917
2014-02-25 18:31 DenisChenu Note Added: 28921
2014-02-25 18:59 DenisChenu Note Edited: 28921
2014-02-25 20:16 fairsay Note Added: 28922
2014-02-26 10:38 DenisChenu Note Added: 28925
2014-02-26 11:11 fairsay Note Added: 28927
2014-02-26 11:34 DenisChenu Note Added: 28930
2014-02-26 12:01 fairsay Note Added: 28931
2014-02-26 12:04 DenisChenu Note Added: 28932
2016-12-08 10:39 c_schmitz Category Tokens => Survey participants (Tokens)