Revert to new option on change form
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-23-2024 03:42 AM
Revert to New option on change :
When create a New change, we get choices in state field "New/Assess/Canceled".
Once change move to assess, If I click on revert to new option, it go to New state again and showing choices in state field "New/Assess/Authorize/Implement/Review/Closed/Canceled"
I want to modify this choice to "New/Assess/Canceled" to Revert new option as well.
OR
State field should be non-editable in all phases
AND Approvals should be triggered again when click on revert to New.
I tried to make field non editable using below client script but this is not working as expected.
function onLoad() {
//Type appropriate comment here, and begin script below
var pk=g_form.getTableName();
if(pk=="change_request")
{
g_form.setReadOnly('state',true);
}
}
This script is well working PDI. but not in company environment.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-23-2024 02:53 PM
Hey @Madhura Ambede
Writing a script on state field is not recommended because it's extends from TASK table. Instead, create a dictionary override on state field for change_request table to make a filed read-only.
Steps:
Open any change record and click on configure dictionary on STATE field. Open existing dictionary override record if any under related lists and make the changes like below image:
Post here if any questions. Happy to help:)
Murthy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2024 09:41 AM - edited 03-25-2024 10:35 AM
@Murthy Ch
Thank you for your solution and it is working for making the state field un-editable.
But previous approvals should be move to cancelled and it should be re-triggered. This is not happening right now.
Kindly assist.