how to restrict by creating new project task on the project forn when the state filed value changes to published or retired ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2022 12:15 AM
Hi All,
I have requirement that , how to restrict by creating new project task on the project forn when the state filed value changes to published or retired ?, we have new state filed on the form , if the value changes to "published or retired" then in , project task under related list, need to restrict creating new tasks?
Please help to achieve
Thanks
Hemachandra
- Labels:
-
Project Portfolio Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2022 05:51 AM
you just need to add it in the List control script shared. Modifying it again and sharing it below to include this condition as well:
if(parent.u_view_name == 'planning_console' || parent.FIELDNAME == 'Put your value here'){ // Replace "planning_console" with your custom View Name
answer = true;
}else{
answer = false;
}
Replace your Field Name and Value for which you want to hide the New button.
Hope this helps. Please mark the answer as correct/helpful based on impact.
Regards,
Shloke
Regards,
Shloke
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2022 06:17 AM
Hi Shloke,
Thanks for this
I tried this whole script to restrict but its not works for me, i don't know where should i wrong?
Thanks
Hemachandra
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2022 08:27 AM
Works for me in my PDI. Can you share the details as comapared to what I have given above so that I can see and assist you further?
Have you created the Field?
Have you created the Business Rule and Client script? Is the value in View field getting set correctly?
Please share to assist you further.
Regards,
Shloke
Regards,
Shloke
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2022 04:31 AM
Hi All,
Please help me on this?
Thanks