Add required question to interceptor

taddparris
Kilo Expert

Wondering if I can achieve a mandatory field value and make it required.   Currently we use the Change Request interceptors with three questions.   Normal Change, Standard Change, and Emergency Change.   Currently if you select Emergency Change it opens up the Emergency Change record.   This is fine, but we would like to ask a required question before the record opens.   That question would be that the user selects the Priority 1 or Priority 2 Incident that the Emergency Change is resolving.   I am new at Interceptors and the knowledge article look outdated.   I will also add that we do not appear to have Wizards enabled so I am looking for an alternative.

Below is what we envision it would look like... TYIA

Step 1

find_real_file.png

Step 2: Select Emergency Change

*Would like this question to be a Reference Field or a field that will only accepted incident.priority(1) || incident.priority(2)

What P1/P2 Incident will this resolve?

8 REPLIES 8

conmic
Mega Guru

Hello Tadd,



Interceptors are basically just intercepting a call for a new form, example: change_request.do


Here you can configure a number of links to meet different requirements.



In your case, I'd suggest to create a custom UI page where you can select a priority. This UI page you may then call over a configured link (best use it in a dialog). Once the parameters are confirmed by the user, it takes him/her to the actual emergency change and parses the priority values.



You could also call this UI page via a dialog upon opening a new emergency change request form. Like this you make sure that it happens for each emergency change and not only if users are using the interceptor.



Kind regards,


Michel


tillu
Giga Expert

Hello Tadd,



You can have a UI Page which displays when the change type is Emergency. You can have the Priority selection in the UI Page itself and set it as mandatory.



Or else you can have a business rule which fires when type is Emergency. This depends if you have any additional functionality with the priority selection.



A similar requirement I had was to have a field set as mandatory if the value was "--None--". If you set the priority field as "" from the interceptor and have the priority field mandatory, could be a solution.



Hope this helps.


taddparris
Kilo Expert

UI Pages are basically written in HTML?   So looks like the Interceptor would point to a UI Page and the UI Page will contain the required questions/values.   Once they submit it would open the Emergency change.   I will have to look into this more.   Not great with scripting so we will see.


Be careful with that. Once the interceptor fires, the values in the Target URL will be used. Anything which yo et from the UI Page are lost. I would rather auto open the UI Page from the change itself.