You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Return response from Hook

Question
11
Views
0
Comments
edited Aug 2, 2020 6:25AM in Customer Portal

Summary

Return response from pre_incident_create hook model

Content

Hello Everyone,

I am working with costumer portal version 3.8.4 ( agent desktop 20 .

We have requirement to validate few of fields in incident before the incident created from customer portal so we are using pre_incident_create hook and trying to validate the fields and every thing is working fine, we are getting values on our custom model which we link in hook.php.

But we are getting issue when we returning error string from Hook.

{"result":{"sessionParam":""}} 

 And because of this return message is not shown on ask a page as validation error

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!