- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā07-30-2020 07:00 AM
I would like to set the Default behavior for Demand that are Projects to close the Demand On Closure of project, buit there seems to be javascript there and that gives me pause.
Solved! Go to Solution.
- Labels:
-
Demand Management

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā07-30-2020 07:57 AM
Hello Kevin,
I understand now. That JavaScript calls a Script Include called DemandUtil that sets the default for Close Demand field. You can change the Default to on_close_project like the picture below . I tested this out and it work, still closes the demand when the project is closed.
Or you can modify the Script include and set the choice value in there like the Picture below. To replace on_creating_project to this value - on_closing_project. This also works when a Project is closed.
I would change the script IMO.
Before
After

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā07-30-2020 07:07 AM
Hello Kevin,
What do you mean by giving you pause? Are not OK with the JavaScript? IS there is issue / error with the JavaScript?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā07-30-2020 07:21 AM
I don't really know how or what to change in the script and do not want to cause an issue or error
This is the default value space
javascript:DemandUtil.getCloseDemandOption(current);
On other forms for default value, it is most times just the choice name that I would place here, but since this one has javascript I didn't want to change it.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā07-30-2020 07:57 AM
Hello Kevin,
I understand now. That JavaScript calls a Script Include called DemandUtil that sets the default for Close Demand field. You can change the Default to on_close_project like the picture below . I tested this out and it work, still closes the demand when the project is closed.
Or you can modify the Script include and set the choice value in there like the Picture below. To replace on_creating_project to this value - on_closing_project. This also works when a Project is closed.
I would change the script IMO.
Before
After
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā07-30-2020 01:37 PM
Thank you so much Miguel, worked like a charm!