Set field value false on outage form when change state is not in scheduled else true
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-19-2024 11:41 PM
I need to set outage form having active field to value true when Change request state changes to scheduled and set outage to active false when not in scheduled state.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-19-2024 11:58 PM
Here's how to set the field value using a
Step-1)business rule:
- Navigate to System Definition > Business Rules.
- Click New.
- Table: Select the table of your outage form (e.g., Incident).
- Name: Give the rule a descriptive name (e.g., Set Outage Flag Based on State).
- Advanced: Check this box.
- Script: Paste the following script:
Step-2) Use client script:
- Navigate to System Definition > UI Page.
- Open the form for your outage table.
- Click the Client Scripts tab.
- Click New.
- Name: Give the script a descriptive name (e.g., Set Outage Flag on State Change).
- Trigger: Select "onChange" of the "Change State" field.
- Script: Paste the following script:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-20-2024 12:04 AM
I have to set value of outage based on change request state "scheduled"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-20-2024 12:44 AM
hi @omkar_jadhav_ I have custom field Active on outage form. It should be set false when change request is not in scheduled or changes from scheduled state. Active field is true only in scheduled state.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-20-2024 12:05 AM
Hi @raju51 there is no active field in Outage, do you have any custom field created?
Harish