Dynamic form elements using attrs