Write an OnChange Client Script in UI Page

Dolly M
Tera Guru

Hi all, 

 

On Incident form we need to display a Popup on click of custom "Create SR" UI Action. The popup should contain data as below -

 

Business Service : REF FIELD (auto-populated from Inc record)

Tier 1 : REF FIELD (custom table)

Tier 2 : REF FIELD (custom table)

Tier 3 : REF FIELD (custom table)

 

Now these tier values have a top-down dependency. For ex:

Tier 1 is dependent on selected service

Tier 2 is dependent on Tier 1 + service

Tier 3 is dependent on Tier 1 + Tier 2 + service

 

I've achieved this part using <g:evaluate> tags. 

I am now stuck during change of "Service". When popup displays first time, it takes "service" value from INC record, then Tier 1 gets populated correctly. But no data is shown in Tier 2 and Tier 3 reference fields because there is no OnChange written for Tier 1 and Tier 2. 

 

Can someone please guide ?

0 REPLIES 0