We have a requirement where we have to automate record type selection of child objects based on the record type of master. For example there is an object X (master) with 3 record types (r1,r2 and r3). The child object(Y) has similar record types i.e r1, r2 and r3. Now if an user creates a record in X of recordtype r1 and goes on to create a record on Y using the new button on the related list then the record selection page shouldn't be displayed and the user will be taken straight into the specific page for the particular record type i.e r1.
How can we achieve this?