Skip to Content Skip to Menu

Help with custom registration validation plugin

  • mjhnyc
  • mjhnyc
  • OFFLINE
  • Posts: 1
  • Thanks: 0
  • Karma: 1
17 years 7 months ago #35854 by mjhnyc
Hello, all.

I'm writing a plugin to validate the entered value of a custom field on the user registration form against values I have in a database.

In my plugin I have registered the function to be called onBeforeUserRegistration. If the validation fails, I call raiseError(0) and _setErrorMSG($errmsg).

This is all working fine, but when the validation fails, the resulting page shows the error message (after a javascript alert) and nothing else. What do I need to do to show the registration form again so the user can correct the problem?

Thanks, in advance.

--MJH

Please Log in or Create an account to join the conversation.

  • ziwe
  • ziwe
  • OFFLINE
  • Posts: 1
  • Thanks: 0
  • Karma: 0
17 years 5 months ago #39883 by ziwe
did you ever find a solution to this ? i am having the same problem

Please Log in or Create an account to join the conversation.

  • suman
  • suman
  • OFFLINE
  • Posts: 9
  • Thanks: 0
  • Karma: 1
16 years 6 months ago #61495 by suman
any news ?

Please Log in or Create an account to join the conversation.

  • sjnims
  • sjnims
  • OFFLINE
  • Posts: 7
  • Thanks: 0
  • Karma: 0
16 years 5 months ago #64858 by sjnims
any update on this?

Please Log in or Create an account to join the conversation.

16 years 3 months ago #69725 by AprilFloyd
Any update - I am interested too

Please Log in or Create an account to join the conversation.

  • snappy59
  • snappy59
  • OFFLINE
  • Posts: 1
  • Thanks: 0
  • Karma: 0
14 years 5 days ago #146583 by snappy59
Has anyone ever found a solution to this? I have a similar need.

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum