- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-01-2020 04:48 AM
Hello Team,
I have created new custom table in that I have added state field with below choices
New, In progress, On Hold, Resolved, Closed & cancelled. Here I have trying to add buttons on the form
Resolve, Reopen, cancel & close. I have tried to create Resolve button on the form button it's not changing the state field value I have written below script include and Script in ui action as well but didn't worked and I have checked state model it's fine.
Can anyone help me where I went wrong.
Thanks,
Chaitanya
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-01-2020 06:25 AM
It will appear as you are just changing the tranistion here and allowing the ticket to move to resolve state from new state.
You can check the condition in the ui action to appear in the states.
Can you try putting the condition in the ui action to appear in the new state. ti will work.as we are just changing the transition into the ui action condition

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-01-2020 04:52 AM
Hi,
In you ui action add simple one line.No need to write Script include and also no need to check client check box in ui action
current.state='4';
Thanks,
Dhananjay.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-01-2020 04:58 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-01-2020 05:18 AM
Hi Dhananjay,
Thanks I have tried it will set state to resolve but I wanted here the flow has to work same as change right when we click request approval on change form state changes to Asses then when it's approved state changes to Authorize and when we click on implement then state changes to implement same as this I'm trying to set state field based on button we click.
If I click on resolve state has to change to resolve and resolve button shouldn't visible it's still visible on the form. I have created state model on this custom table when state is new the resolve is visible when in click on resolve button it's not working in state model I have kept new state transitions condition empty
Thanks
Chaitanya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-01-2020 05:23 AM
If you want to hide button then you need to add conditions accordingly.
In UI action condition field is there.
e.g-
current.state=='closed'
If you add above condition in ui action , whenever record is in closed state only that time button will be visible.
Accordingly in which state you want to make visible you have to add conditions.
sample condition - current.state=='closed'||current.state=='pending'