How to automatically always choose variant Communication of Activity section in Task

a basic example of js: Client Script

another reference: Client Side scripting - #2 by NCP