Restrict submission of the catalog item

satya30
Tera Contributor

Please help me on how to write the script to validate the below information.

I have a catalog item with the Application field(reference field) referring to the Business Application table,

If the application is selected, should validate that the following information is available in the application
Name of the application
Business Owner
Technology Owner
Technology Domain (field from parent table "Business application group" named domain(ref field))

 

If any of these fields are null, the user should be directed to contact archi@gmail.com to have the information updated with an appropriate amount of time for the updates to be visible in the form. The form submission should be disabled.

Only if the app is selected and all fields are available in App should the user be allowed to complete and submit the form.

10 REPLIES 10

@satya30 

I just same a sample script and you should enhance it further based on your requirement

this line needs to be enhanced

give correct field name and the dot walked field name

            var domain = appGR.getValue('domainField.technologyDomainField');

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

@satya30 

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

@satya30 

Hope you are doing good.

Did my reply answer your question?

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

@satya30 

Hope you are doing good.

Did my reply answer your question?

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

@satya30 

Hope you are doing good.

Did my reply answer your question?

If my response helped please mark it correct and close the thread so that it benefits future readers.

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