how to check a valid Ci in cmdb

manoj30
Kilo Contributor

hi every one can any one have idea on change client script , for how to check a valid ci in  cmdb

below  is my requirement 

Server Name - text box – check if a valid CI in CMDB – mandatory.

 

2 REPLIES 2

Ahmmed Ali
Mega Sage

Hello,

 

Any specific reason you are using text field instead of reference field? If you use reference type field it would auto validate.

 

If you want text only, then you need to have server call to check CI name in CMDB. You can use onchange client script on CI field and have a glideajax to call script include. In script include you can queryu cmdb table and send response  to client script 

https://docs.servicenow.com/bundle/geneva-servicenow-platform/page/script/server_scripting/reference....

 

Thanks,

Ali

If I could help you with your Query then, please hit the Thumb Icon and mark my answer as Correct!!

Thank you,
Ali

hi Ahmmed ,

 this is my requirement , can you help me out on this .

Type of Server – drop down list – Windows and Linux – if select windows send to SN-SysMgt Windows Server Admin, if select Linux send to SN-SN-SysMgt Unix Admin - mandatory

 

Server Name - text box – check if a valid CI in CMDB – mandatory