UI Action is not picking the condition

ABC6
Tera Contributor

Hello Team,
Ui Action is not picking up the condition where it calling script include , please help me to get this issue resolved
ideally it should skipped the Risk assesment for RFC change , poreviously it is working but not now 

ABC6_0-1746517834138.png

 

21 REPLIES 21

Gaurav Rathaur
Kilo Guru

Hi @ABC6 ,

 

Fix Steps:

  1. Check Script Include: Ensure it's active and Client Callable = true if used on client-side.

  2. Condition Syntax: Confirm it returns true/false properly (not null/undefined).

  3. Use GlideAjax: If UI Action is client-side, call Script Include via GlideAjax, not directly.

  4. Debug: Add gs.log() in Script Include and test in Scripts - Background to verify output.

 

J Siva
Tera Sage

Hi @ABC6 
Did you check what is being returned from the script include? Please share the script from the script include.
Regards,
Siva

Abhijit4
Mega Sage

Hi @ABC6 

 

Can you also show us code on script include side and its configuration?

By marking my response as correct or helpful, you contribute to helping future readers with similar issues.
Regards,
Abhijit
ServiceNow MVP

ABC6
Tera Contributor

Script include which is on Condition side or Which we use over script section

ABC6
Tera Contributor

Script include which is on Condition side or Which we use over script section?