Add an Alert message to a Request form via portal using Flow Design

Winnie P
Mega Sage

Hello there, Can you add an alert message to a Catalogue Item via servicenow portal using Flow Design? If so, please kindly provide the how to?

I am looking to create a Flow Design for one of our Catalogue Items.  The scenario would be if a Requester adds a name to 'Who is Request for?" > Then the Flow to:

1. Look up Hardware assets table for 'Allocated to' field

2. If the 'Allocated to' has the 'requested for' name, then

3. Show an Alert message advising the Requester is already assigned a Computer, then

4. Clear the 'Who is this Request for' field

This is so that users doesn't raise a request for a computer if they already have one.  Is this possible via Flow Design or would this be a client script? Or what would be the best method?

Thank you.

find_real_file.png

 

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

alert() is client side code and flow runs in background.

so not possible

you will require onChange on that variable and use GlideAjax to verify

Regards
Ankur

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

View solution in original post

5 REPLIES 5

Thank you for your reply Hitoshi - appreciate it! Sorry for my late response,! In answer to your queries:

1. Yes, there is a Who is this Request for field.

2. Will use the cmdb_ci_computer table and within that table will use the assigned_to field

3. Yes the requested_for is from the User table

As the other 2 above have replied & suggested an onChange with GlideAjax script.

Regards,