Make a script only target a specific form view
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-08-2015 05:36 AM
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.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-08-2015 06:12 AM
Hi,
are you on fuji?
I faced issues in view when we upgraded to fuji.
Amit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-08-2015 06:13 AM
We are on Eureka release
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-08-2015 06:14 AM
was it working earlier?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-08-2015 07:23 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-08-2015 06:31 AM
A read ACL might work here....had i been you that is the thing i would try