how to restrict by creating new project task on the project forn when the state filed value changes to published or retired ?

hemachandra2
Tera Contributor

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

8 REPLIES 8

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

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke

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

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

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke

hemachandra2
Tera Contributor

Hi All,

Please help me on this?

Thanks