There are no any scripts on torm level. User manually select one form. Then he opens the view with the same records and select any of the records from the list.
When record form is loaded it is not the same form that the user have previously selected. The system is always loading the first form from the forms list, but that is not the form which user has selected last.