Adding infusion tag depending on input fields