I have bulleted details as per below.
The condition works, but it leaves behind a blank line.
I am using the Populate Word Document and have the Remove Empty Paragraphs set to true.
Is there a way to remove a blank line?
I have bulleted details as per below.
The condition works, but it leaves behind a blank line.
I am using the Populate Word Document and have the Remove Empty Paragraphs set to true.
Is there a way to remove a blank line?
Hi,
Looking at your template example; as both statements are testing the same value the easiest way to remove the blank line would be to merge your two IF statements into a single one.
depending on preference this can also be written
This will then use the single bullet point to show either Planner or Job Management depending whether Planner is true or false.
Hi Jo Hall
Thanks for the idea. I like the outside-the-box thinking. However, looking back, I may have given a poor example. What if it was the following? How would you suggest achieving the removal of the blank line?
Bullet lists like this are all throughout the document, and many of them will or will not show based on the user's selection from within a Power App.
Thanks,
Hi,
Your latest example can be achieved using control characters.
The "populate" actions honour all the formatting within the document itself i.e spacing, line/paragraph breaks, colour or in this case bullet points.
The bullet points you have created are not part of the tag; which is why regardless of the result of your If statement the bullet point will be on the document.
You can achieve the result by doing the following:
Change your template to look something like this (the If statement is one continuous statement it has just naturally wrapped itself due to length)
This is the same thing with formatting (as you can see there is a paragraph break at the end of every line)
A paragraph break in word after a bulleted line, tells word to create a new bullet point. Having the If statement as part of the last bullet point row you definitely want to show means the next bullet point is only created if it is needed.
This results in.
Planner = false
Planner = true
Hi Jo,
Thanks for your help on this. I got it working with your above suggestions.
Cheers,