Welcome to the LimeSurvey Community Forum

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

Is there a way to set preconditions in the register form?

  • LS_SR
  • LS_SR's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
9 years 5 months ago #113221 by LS_SR
Hello I have a survey with a register form at the beginning. I want to shut out e-mail adresses like "@trashmail.com" etc.

Is there a way to fix this?

Waiting forwards for clever ideas.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 years 5 months ago #113247 by DenisChenu
Hi,

You can do your own register page in plugin system

An example here : gitorious.org/ls-extendregister/ls-replaceregister for inspiration.

It's actually an hack, but more easy in 2.06.

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.
The topic has been locked.
  • LS_SR
  • LS_SR's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
9 years 5 months ago #113253 by LS_SR
Hi,

are you sure that this plugin can help me to shut out Email adresses like "@trashmail.com"?

Is it in the following code-snippet, or somewhere else?
Code:
//Check that the email is a valid style addressattribute_2
if (!validateEmailAddress($sR_email))
{
$aRegisterError[]= $clang->gT("The email you used is not valid. Please try again.");
}
}
else
{
$aRegisterError[]= $clang->gT("The email you used is not valid. Please try again.");// Empty email[
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose