why alert is not displaying in catalog client script?

Gamarawaji
Giga Contributor

Hi ,

 

when i try to give alert in catalog client script, it is not displaying anything.

please refer the code,

function onChange(control, oldValue, newValue, isLoading) {
if (isLoading || newValue == '') {
return;
}
var request1 = g_form.getValue('request');

if(request1 =='Complete a job in IWS')
{
alert('Job should be only in Error state');
}
//Type appropriate comment here, and begin script below

}

 

Thank You.

16 REPLIES 16

Can you please share screenshot of your client script? Check UI type on your client script and active checkbook.
Please appreciate the efforts of community contributors by marking appropriate response as correct answer and helpful, this may help other community users to follow correct solution in future.
Thanks
Anil Lande

is your variable name 'request' correct? please share variable/field configuration.

Please appreciate the efforts of community contributors by marking appropriate response as correct answer and helpful, this may help other community users to follow correct solution in future.
Thanks
Anil Lande

yes, it is request and it is select box with none

Anurag Tripathi
Mega Patron
Mega Patron

It is clearly not going in the if condition, check what is the vlaue of the field 'request'.

Also check you are using the correct field name and not label.

-Anurag

-Anurag

Gamarawaji
Giga Contributor

choice value is correct, not sure why it is not reflecting