Remove selected Item from the list

In my doctype Iam having many task.Its litle field shows all the task.
my questian is:

  • after selecting one item(ie TASK00002) .that will not be in the that list to avoid redundency
    how is it possible
    please helpme

You can add validation on it to avoid repetition of a Task. Refer given code -