Jump to content
  • 0

Validating Info When Adding Service


Question

Posted

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.

4 answers to this question

Recommended Posts

  • 0
Posted

The info is checked in addservice function ,the step before is used just to render the info posted .

The module can't act unless is called .

If you want to check some data via jquery you can use my plugin toolbox .

  • 0
Posted
  On 10/5/2014 at 2:47 PM, flangefrog said:

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.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...