E-mail registration on only a limited scope

More
6 months 1 week ago - 6 months 1 week ago #195333 by Mutos
Hello all,



I'm new to LimeSurvey, so please indicate me if I write something considered gross here ^-^

I'm creating surveys for a CGT workers' union inside a company and I want that only the workers from our company can take our surveys.

I previously used Framaforms, based on the Webforms Drupal module, with a specific work mail address checking process :
  • User entered their work mail address, validated by a regex on its domain name ;
  • When they confirmed their answer, a confirmation e-mail was sent to that address ;
  • User clicked on the confirmation link included in the mail ;
  • That action would set the answer to confirmed status.

Unfortunately, this feature has been broken by a Drupal update. As I have access to our union's site's hosting, I searched for an open-source survey engine to install on it. So I found LimeSurvey, which seems to have everything we want and more ^-^

Alas, for validation, I still have nothing working and this is a required feature for all our surveys.

I explored the two following paths :
  • Activate closed surveys with public registration : I don't know if it's possible to check the registration mail address against a regex to limit its scope.
  • Ask for a mail address and check it against a regex : done, but I have no way to generate a confirmation mail to that address, with a link that the user would click to confirm their answer.


Do anyone here has already achieved that or know of a way to do it, be it from one of the path listed before, or in any other way ?


Thanks for any hint !



Benoît 'Mutos' Robin

@+

Benoît 'Mutos' Robin
Last edit: 6 months 1 week ago by Mutos.

Please Log in to join the conversation.

LimeSurvey Partners
More
6 months 1 week ago #195337 by DenisChenu
You host yourself and can add some plugins ?

If yes : use this plugin : gitlab.com/SondagesPro/SurveyAccess/surveyRegister

Since you can make any restriction on the 1st survey you can validate email.

I made it a long time ago : can not be sure at 100% it work on 3.X

Must be update for 4.X

Else : the only solution seems to be a javascript solution ....

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.

Please Log in to join the conversation.

More
6 months 1 week ago #195338 by Mutos
Thanks Denis,

I'll try it, but I'm on the latest 4.x version, so it may need some update. I'll dive into it to try and understand what it does ^-^

Is there a doc somewhere ? On GitHub I see only 2 files : license and php.

Mutos

@+

Benoît 'Mutos' Robin

Please Log in to join the conversation.

More
6 months 1 week ago - 6 months 1 week ago #195340 by Mutos
Hi Denis,

I added a config.xml derived from the information in the licence file and specifying compatibility with 4.x, and installed it.

Now it's installed, and what must I do ?

If I understand the idea, I must make 2 surveys, A and B.
  • Survey A will only take and validate the email address ;
  • it'll send a mail to get to survey B ;
  • Then the user will take survey B normally.

But when I look at the code, I see it makes use of token, seemingly survey A will redirect to survey B. There must be somewhere a config to do to link the surveys, but where ?

I'll try and grok it ^-^

Mutos

@+

Benoît 'Mutos' Robin
Last edit: 6 months 1 week ago by Mutos. Reason: Clarification
The following user(s) said Thank You: DenisChenu

Please Log in to join the conversation.

More
6 months 1 week ago - 6 months 1 week ago #195341 by DenisChenu
The settings are in Simple plugins settings


The 2nd plugin MUST have token, not the 1st one

If I understand the idea, I must make 2 surveys, A and B.

Exactly
A: no token
B : token

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.
Attachments:
Last edit: 6 months 1 week ago by DenisChenu.

Please Log in to join the conversation.

More
6 months 1 week ago #195350 by Mutos
Hello Denis,

I think I've found the page, on other plugins it displays a list of parameters looking like the screenshot. The path is :
Configuration > Plugin Manager > [Plugin Name] > Setttings

But for your plugin, I have only a blank page. Likely a version issue if this interface was modified between versions 2.x and 4.x.

I'll look inside two plugins I got that display parameters in that page, compare with your screenshot and search the LimeSurvey doc, and maybe I'll be able to fix this ^-^

@+

Benoît 'Mutos' Robin

@+

Benoît 'Mutos' Robin

Please Log in to join the conversation.

More
6 months 1 week ago #195351 by DenisChenu
No,

It's on Survey / Simple plugins settings at bottom left menu.

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.

Please Log in to join the conversation.

More
6 months 1 week ago #195360 by Mutos
Hello Denis,

OK, thanks !

So for reaching it :
"Surveys" menu ;
Click on the survey ;
"Simple plugins settings" on bottom of the left menu bar.

As a noob on LimeSurvey, I have to imagine how things work and sometimes ake false assumptions ^-^

@+

Benoît 'Mutos' Robin

@+

Benoît 'Mutos' Robin

Please Log in to join the conversation.

More
6 months 1 week ago - 6 months 1 week ago #195361 by Mutos
Hi Denis,

Sorry to bother you...

I now have created both surveys, configured them with what I think is "A-no tokens ; B-tokens", and tried them. After I complete Survey A, I got the following error :

500 : Erreur interne au serveur
Survey and its behaviors do not have a method or closure named "hasTokens".

I guess that it means my settings for Survey B are wrong. So I'll try some more settings, but for now I'm lost.

@+

Benoît 'Mutos' Robin

@+

Benoît 'Mutos' Robin
Last edit: 6 months 1 week ago by Mutos.

Please Log in to join the conversation.

More
6 months 1 week ago - 6 months 1 week ago #195362 by Mutos
Hi Denis,

Here are the surveys I configured. Do you have a clue about what could be wrong ? Thanks in advance.

@+

Benoît 'Mutos' Robin

@+

Benoît 'Mutos' Robin
Attachments:
Last edit: 6 months 1 week ago by Mutos.

Please Log in to join the conversation.

More
6 months 1 week ago #195365 by DenisChenu
Please : report the issue at giltlab.

Like i say : i didn't test plugin in 4.X, seems a function have disappear.

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.

Please Log in to join the conversation.

More
6 months 1 week ago #195377 by Mutos
Hi Denis,


Thanks for the time you took to answer my noob questions !

I'll get an account at GitLab and report the issue.

@+

Benoît 'Mutos' Robin
The following user(s) said Thank You: DenisChenu

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now