Display Error Message in Catalog Item UI When User Input Variables selected don't lead to a valid request?

alantpham
Kilo Contributor

I have three variables: Access Type (Select Box), Company (Reference) and Roles (List Collector). The user can select the type of access and the company, and then the roles are auto populated based on the company selected (through client script). In order for roles to be populated, the company selected must be associated with the appropriate access type. Each Company has it's own Access Type defined in a table.

If the Access Type and Company combination selected aren't "compatible", no roles are populated. A request must have at least one role selected out of a populated list in order to be valid. How can I set up a UI "pop up" error message to the end user to explain that no roles are being populated because the Access Type and Company selected aren't a valid match?

1 REPLY 1

SumanthDosapati
Mega Sage
Mega Sage

Write an onChange client script and make a glideAjax call to script include and check if the combination exists in the table or not. 

based on the output throw an error message.

Regards,

Sumanth