I have a page which has an edit button. Now what i want to achieve is that if an Id belongs to the Hr department it should direct to a certain page and if an Id belongs to Finance department it should direct to another page (when the user clicks on this same edit button).
How can i do this?
Thank you in advance