Willkommen, Gast
Benutzername: Passwort: Angemeldet bleiben:

THEMA: E-mail validation

E-mail validation 1 Jahr 9 Monate her #90331

  • mimi
  • mimis Avatar
  • OFFLINE
  • Junior Lime
  • Beiträge: 32
  • Karma: 0
hi...

based on the pic i'd given, i want to make the word '(Diese E-Mail-Adresse ist vor Spambots geschützt! Zur Anzeige muss JavaScript eingeschaltet sein!)' will appear when the user key in the wrong format of email.

at 1st the sentence does not appear, but when the user key in the wrong format of email, the word of '(Diese E-Mail-Adresse ist vor Spambots geschützt! Zur Anzeige muss JavaScript eingeschaltet sein!)' will appear

can someone help me with this thing...

tQ so much.
Anhang:
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Re: E-mail validation 1 Jahr 9 Monate her #90358

  • tpartner
  • tpartners Avatar
  • OFFLINE
  • LimeSurvey Team
  • Beiträge: 4207
  • Dank erhalten: 791
  • Karma: 360
Do you have a regular expression in mind to validate the format?
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Re: E-mail validation 1 Jahr 9 Monate her #90417

  • mimi
  • mimis Avatar
  • OFFLINE
  • Junior Lime
  • Beiträge: 32
  • Karma: 0
nope... at 1st i juz trying with limesurvey validation, which is already in 'show advance setting'. and the regular expression i also using what u had give in limesurvey website. but its not working too. myb i missed some part.

ok what if i want to use php code to validate it. can i? where i must put the code.
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Re: E-mail validation 1 Jahr 9 Monate her #90421

  • DenisChenu
  • DenisChenus Avatar
  • OFFLINE
  • Moderator Lime
  • Beiträge: 6362
  • Dank erhalten: 827
  • Karma: 245
Hello,

With question code to: MAIL, the first sub code to MAIL
In the "Sub-question validation equation" :
regexMatch("/^(\w[-._+\w]*\w@\w[-._\w]*\w\.\w{2,3})?$/",MAIL_MAIL)

In the Sub-question validation tip
(abcdef@example.com)

And after just need to move the text near the first input in js.
$(function() {
 $("#question{QID} .em_sq_fn_validation").insertAfter($("#question{QID} answer{SGQ}MAIL");
});

Maybe some css to have the text not displaying if good (class= good).

Denis
Letzte Änderung: 1 Jahr 9 Monate her von DenisChenu. Begründung: SQG
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Re: E-mail validation 1 Jahr 8 Monate her #90984

  • mimi
  • mimis Avatar
  • OFFLINE
  • Junior Lime
  • Beiträge: 32
  • Karma: 0
ok. Thank You s0 much.
Der Administrator hat öffentliche Schreibrechte deaktiviert.
Moderatoren: ITEd
Ladezeit der Seite: 0.254 Sekunden
Donation Image