Currently, I had create a flow & word template, and with the flow I'm populating the field in the word. but the thing is when there is no data in the form, it doesn't populate any data, and it create empty space when viewing the file in pdf, so I want to remove the unwanted spaces dynamically
There is no native feature in Power Automate + Word Template that automatically removes an empty paragraph, empty table row, or collapses whitespace when a content control is populated with a blank value. To fix this you can create the entire section/row as a Repeating Section Content Control and pass:
An array with data > row is created.
An empty array ([]) > no row is created.
This will prevent blank space from being generated in the first place.
Was this reply helpful?YesNo
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.