Is there any way to show the data in a link field based on a condition

This will also require scripting to make it work. Have you written any? If yes, please share it here.