I'm trying to pre-populate fields on a custom object that I made. I tried passing the values through the url using a button link, overriding the default new button and providing the ids of the fields on that page, which works in my original org. However when migrating the changes to another org, the ids don't sync up, causing the fields not to populate.
Is there an easy way to pass arguments through the url more generically, other than hard coding values to page element ids?