Hi Hilary,
Thanks for your response.
I did exactly as you mentioned in your response.
But I am getting an error(screenshot attached) while submitting this InfoPath form to SharePoint Online Document Library.
Also, the Form compatibility is set to "Web Browser Form".
I want to save the data in repeating table which is ...