Some days ago I came across this requirement. Follow up task is the great tool to create follow up communications immediately, however sometimes it might be the case where in you may want Action or other values of the follow up task to be automatically populated. Below is how you can achieve the same. This blog considers changing the Action of follow up task.
Basically whenever we create new task the page URL will be something like below.
Now if we create follow up task for this task then the URL will be something like below.
In both of the above cases the action value will be the same, but by observation you can find that in first URL you will see “T=newactivity” and this is probably the area of our concern. This is where we get the distinguishing factor to write our scripts on custom content. The script is as follows.