+ Start a Discussion
Akis AthanasiadisAkis Athanasiadis 

Custom Button and Return URL on Object with Record Type

I have an object named Maintenance Fees which is a child to Contracts and to Product Assignment. its related list is only under Product Assignment.
This object has also a record type.
I have created a custom button which reads the record types and proceeds to the next page having both Product Assignment and Contracts  lookup fields already filled in. The issue is when I save the record that I go to the home page instead of returning to the maintenance fee record that was just created.
The code that I used is this:


Any Ideas?