- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-07-2024 09:58 AM
Hello,
Is it possible to use a business rule to change a state on the form view? The business rule is working as intended on the list view, but not on the form itself. The script is written in a PDI.
When the if statement is true, I want the state to change back to the previous state from "Released" state on update/form refreshed. For example, if there are any SAFe stories associated with the SAFe Feature that are not Complete or Cancelled, and the user tries to change the state to "Released" on Save/Update, the state will revert back to the previous on page reload.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-21-2024 03:33 PM
Hello Everyone,
Thanks for your advice. The issue was resolved by increasing the order of the business rule.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-07-2024 11:34 AM
Hi Terry,
Try:
var previousState = previous.getValue("state");
current.setValue("state", previousState); //replace your line 12 with this two lines
hope that helps!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-21-2024 03:33 PM
Hello Everyone,
Thanks for your advice. The issue was resolved by increasing the order of the business rule.