Unable to set the route options

Hi everyone, I’m trying to set the route options for a field from one doctype through selecting a button…i am getting the response message in console and also it navigates to that page but it is not set in that field…any idea?