How to return value to getXML function in client script

Tomi Corigliano
Kilo Sage

Hello,

 

I'm calling a script include in my catalog client script through GlideAjax, which works fine. Nevertheless, I can't find a way to return the value to the main function.

 

How is this possible? Preferably with an example.

 

Thanks in advance for your reply.

1 ACCEPTED SOLUTION

@Tomi Corigliano 

you can show field message of type error so it won't allow submitting the form.

So unless and until the user selects correct date they cannot submit it

When the validation fails show field message of type error; if validation is fine clear the message

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

10 REPLIES 10

@Tomi Corigliano 

please clear the value and make it mandatory as well

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader