Jump to content

How to validate Custom Fields in Registration Process?


ravi.webkuteer

Recommended Posts

Hi

 

We're developing a customized application in our domain. Here, I want to validate WHMCS customfields with database values. how can we do that?

 

My requirement is as below :

I've created 2 custom fields i.e., Sponsor ID and PlacedUnder in WHMCS. these are displaying in Registration form. Now, I need to validate them with existing database values.

And how these customfields are linked with Domain ?

Because I'm taking domain as sponsor.

 

Thanks in advance guys

Link to comment
Share on other sites

  • 1 month later...

thanks for your reply!!

I finally able to do this hook.. but have one problem: hook works fine in client area, but don't starting in admin area (when I creatin client account in admin area).

Can't understend why so:|

In documentation it is written:

This is run when before adding a client or updating a client through the Admin or Client area

Couldn't find any solution in google or on this forum

 

Here is some logs

 

Client area registration:

Created Client client Klient - User ID: 145

Hooks Debug: Hook Completed - Returned False

Ok - new user will be created

uid=drama18,ou=Users,dc=domainless,dc=local

-----------------------------------------

drama18

Hooks Debug: Hook Point ClientDetailsValidation - Calling Hook Function hook_validate

Admin area:

Created Client val2 Karlov - User ID: 144

Hooks Debug: Hook Defined for Point: ClientDelete - Priority: 1 - Function Name: delete_ldap_account

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated