View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
14445 | Feature requests | Expression Manager | public | 2019-01-21 10:34 | 2021-03-07 21:55 |
Reporter | Mazi | Assigned To | DenisChenu | ||
Priority | none | Severity | feature | ||
Status | closed | Resolution | fixed | ||
Fixed in Version | 4.0.0dev | ||||
Summary | 14445: Add placeholder for seed | ||||
Description | Sometimes you also need the seed value to be available as a placeholder e.g. within the end URL or the email templates so it would be great to add {SEED} as an available placeholder. | ||||
Tags | No tags attached. | ||||
Bug heat | 6 | ||||
Story point estimate | |||||
Users affected % | |||||
related to | 11519 | closed | DenisChenu | make fields Anonyous and ip address in Expression Manager available |
Think a plugin can use LimeExpressionManager::updateReplacementFields('seed'=>$seed) for this. This one can not be used : https://github.com/LimeSurvey/LimeSurvey/pull/1256 since it's done opnly when survey is started (but no database update (? unsure) |
|
PS : i think all database data can be accesssible via Expression Manager. |
|
What's the use-case? |
|
@ollehar, in our case we wanted to pass the user's seed value into a GET parameter when calling an external reporting script. Just to make sure users can call the report with another ID by simply changing from e.g. 11 (their ID) to 10 (the previous user). So we wanted to check ID and seed value. |
|
For
Because plugin can hack DB columns and add anything ;) (no idea, but can be potentially great) |
|
One place holder really needed : SUBMITDATE : then can check if survey is submitted or not (with token <-> response table or in some plugins). |
|
+1 for submitdate placeholder |
|
STARTDATE and DATESTAMP can be interesting too : for example : condition on lastpage Maybe with SURVEY:XXX for all non related to question survey DB column :) |
|
@Mazi : if it work with core plugin ( in core/plugins or .plugin unsure) : are you OK ? Think of
@ollehar : it's a next feature, right, even if adding SEED or STARTDATE or … is really easy : we can't get it in master, right ? |
|
@DenisChenu, while I like the idea of separating code by creating plugins, I consider supporting additional EM placeholders a core feature so it makes more sense adding this to the upcoming LS 4 version. |
|
If you support it out of the box : you broke some of my surveys where i add a STARTDATE question : then NO it can not be forced ! (and potential usage of SEED question code) If it's i core : it must be in ExpressionManager reserved word |
|
@DenisChenu, I didn't know that the discussed placeholders are not a reserved EM word yet. Of course, it has to be added there first. Since e.g. underscores are not allowed at questions code, why don't we used such placeholders like {START_DATE}, {SEED_VALUE} and the like? |
|
START_DATA : question START, subquestion DATE … But the important things : if it's in core : i don't take it even for 4.0 (but maybe make my own plugin before it come in ls core) 2nd important things : STARTDATE : easy (for dev), START_DATE (or anything else) need a function for correspondance |
|
" if it's in core : i don't take it even for 4.0 (but maybe make my own plugin" |
|
Because i'm not OK to adding it in core if a plugin solution is available [*], and because adding it in core can broke some survey.
|
|
@Mazi :
I want to play (no client on this one) : https://gitlab.com/SondagesPro/QuestionSettingsType/generateUniqId
Then you can have your solution :) |
|
Hi Denis, our workaround due to the missing placeholder is indeed to populate an equation question using rand() and then using that value as an additional parameter. |
|
Warning : with SAVEDID, when deactivate, reactivate : id of response are updated :) |
|
@Mazi : https://github.com/LimeSurvey/LimeSurvey/pull/1256/commits/ddd4a65fb13951d1033064fa91e024fc7e500586 |
|
Thanks, Denis! |
|
Date Modified | Username | Field | Change |
---|---|---|---|
2019-01-21 10:34 | Mazi | New Issue | |
2019-04-05 12:00 | DenisChenu | Note Added: 51378 | |
2019-05-17 11:18 | DenisChenu | Note Added: 51984 | |
2019-05-20 14:56 | ollehar | Note Added: 51988 | |
2019-05-20 15:08 | Mazi | Note Added: 51989 | |
2019-05-20 15:33 | DenisChenu | Note Added: 51990 | |
2019-05-28 18:34 | DenisChenu | Note Added: 52136 | |
2019-05-28 21:16 | Mazi | Note Added: 52137 | |
2019-05-28 23:47 | DenisChenu | Note Added: 52138 | |
2019-05-29 10:44 | DenisChenu | Note Added: 52140 | |
2019-05-29 10:59 | Mazi | Note Added: 52141 | |
2019-05-29 11:04 | DenisChenu | Note Added: 52142 | |
2019-05-29 11:09 | Mazi | Note Added: 52143 | |
2019-05-29 11:28 | DenisChenu | Note Added: 52147 | |
2019-05-29 11:28 | DenisChenu | Note Edited: 52147 | |
2019-05-29 11:29 | DenisChenu | Note Edited: 52147 | |
2019-05-29 12:23 | Mazi | Note Added: 52148 | |
2019-05-29 13:30 | DenisChenu | Note Added: 52149 | |
2019-05-29 14:04 | DenisChenu | Note Edited: 52149 | |
2019-06-08 11:38 | DenisChenu | Note Added: 52335 | |
2019-06-10 16:32 | Mazi | Note Added: 52338 | |
2019-06-10 17:39 | DenisChenu | Note Added: 52340 | |
2019-07-14 16:39 | DenisChenu | Note Added: 52869 | |
2019-07-15 09:04 | Mazi | Note Added: 52873 | |
2019-08-05 16:31 | DenisChenu | Assigned To | => DenisChenu |
2019-08-05 16:31 | DenisChenu | Status | new => resolved |
2019-08-05 16:31 | DenisChenu | Resolution | open => fixed |
2019-08-05 16:31 | DenisChenu | Fixed in Version | => 4.0.0dev |
2019-08-05 16:31 | DenisChenu | Note Added: 53114 | |
2019-09-07 11:01 | DenisChenu | Relationship added | related to 11519 |
2021-03-07 21:55 | c_schmitz | Status | resolved => closed |