Similar ref logic for parent form input