I am not sure whether you are editing the code correctly or not which I gave you. Let me show you an example.
In the below screenshot I have an action field name and contains two values. And the requirement is if I click the success it has to open the other dashboard. And it shouldn't apply to other field values like a failure.
I have used the below code and it's working fine .This will not apply to the entire row. Modify the below one according to your requirment.