Fields not populating on the textbox field based on conditions