Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-26-2025 10:22 AM
When the UI Action is selected, the state field changes to review, then changes again to the next state. Does not stay in the review state. Any help is appreciated
Solved! Go to Solution.
1 ACCEPTED SOLUTION
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-26-2025 11:09 AM
Try:
current.u_state = 'review'; //set state to Published when button is clicked
action.setRedirectURL(current);
current.setWorkflow(false);
current.update();
current.setWorkflow(true);
Hope that helps!
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-26-2025 11:09 AM
Try:
current.u_state = 'review'; //set state to Published when button is clicked
action.setRedirectURL(current);
current.setWorkflow(false);
current.update();
current.setWorkflow(true);
Hope that helps!
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-26-2025 11:56 AM
Thanks Vishal, that worked!