Hi,

Yes , it is in the related list tab > change task New Button.

find_real_file.png

Use list control method I supplied above and then this script in "omit new condition" field:

var answer;
if (parent.type == 'standard') {
    answer = true;
} else {
    answer = false;
}
answer;

Please mark reply as Helpful/Correct. Thanks!


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

Script like this, use my instructions above around getting to configure > list control:

var answer = false;
if (parent.type == 'standard') {
    answer = true;
}
answer;

Please mark reply as Helpful/Correct, if applicable. Thanks!


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

View solution in original post

After adding this above script .New button is invisible for Normal and Emergency change also.

And there is one more condition we need New button to be hidden. All change type with state != Closed or Standard changes

Hi,

I'm unsure of your scripting knowledge and was hoping to provide a pretty good example for you to then improve upon, which I did above. That gives you good baseline to work from.

Please ensure you logout/log back in and perhaps clear your instance cache by typing: cache.do and pressing enter in left-hand nav.

The code I provide does work as I'm using it in my instance right now:

Standard change:

find_real_file.png

Normal and other change:

find_real_file.png

Did you need more assistance than that? You did not state the additional state requirement in your original question. Please ensure you include everything so that we can help accordingly. Otherwise, we work on it work for to help, you add more piece by piece, which isn't very fair to others helping.

So now you're saying:

"And there is one more condition we need New button to be hidden. All change type with state != Closed or Standard changes"

So you want to hide the new button for all change requests that are not closed...so they can only open a change task if the record is closed? That doesn't sound right to me.

Please take time to fully describe what you need assistance with as your original question has been answered by my instructions and script above.

Thank you so much!


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!