Jump to content
  • 0

Validating Info When Adding Service


flangefrog

Question

When I add a service through the admin panel my module is not able to validate info after pressing continue, only on the confirm page when pressing add service. This means I need to use the back button a couple of times to correct the info. There should be some way for modules to access and validate the POST data before going to the confirm page.

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

When I add a service through the admin panel my module is not able to validate info after pressing continue, only on the confirm page when pressing add service. This means I need to use the back button a couple of times to correct the info. There should be some way for modules to access and validate the POST data before going to the confirm page.

 

Which page are you referring to exactly?

e.g.

[Client Profile Page] -> [Add Service (under Actions)] -> [select Package] -> [select Term/Status; Module Fields] ?

 

If you have module fields on that page that are not being validated when you click "Continue", then it sounds like you have not added those validations to YourModule::validateService.

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
Answer this question...

×   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.

Loading...
×
×
  • Create New...