The Zurich release has arrived! Interested in new features and functionalities? Click here for more

Make a script only target a specific form view

palmen
Tera Guru

We have a resolve dialog to be able to close mutliple incidents at the same time.

The form view for this has 5 fields you need to fill in.

In the field Ticket type I want to hide one of the values. Is this possible to do?

I've tried to make a client script like this, but it doesn't work.

Active: True

Global: False

View: resolvedialog

Type: onLoad

Table: Incident

function onLoad() {

    //Type appropriate comment here, and begin script below

    g_form.removeOption('u_ticket_type', 'srq')

}

If I try the same script but make it global, it'll remove the option srq for all views so the actual script seems to be working, it's just not targeting the form view I want.

18 REPLIES 18

aksinghal
Kilo Contributor

Hi,



are you on fuji?


I faced issues in view when we upgraded to fuji.



Amit


We are on Eureka release


aksinghal
Kilo Contributor

was it working earlier?


We had our release yesterday and this is new functionality. Before the release everything was working fine since we didn't have any dependancy on the close code field.


We added the ticket type to the incident form and made the close notes dependent on the ticket type.



We want different close codes depending on what ticket type you set on the incident.


A read ACL might work here....had i been you that is the thing i would try


-Anurag