Using the "populate ms word template" to create a mailing address in a word document from a JotForm submission. Using the Plain Text Content Control within my MS Word template.
With two address lines, things are good. When there is only one, how do I get the blank line that would be used for the second address line, to disappear, and present the address properly
Like this:
FirstName LastName
Street1
Tampa FL 33620
not like this:
FirstName LastName
Address1
Tampa FL 33620
Data is coming in via JotForm. Each address piece is a different field.
I've tried using {IF statements, etc.. but since these are not mail merge fields, none of that has been helpful. I tried setting it as a bookmark, and then using IF {REF Bookmark} "" , but only received an error that the condition wasn't found.
Solved! Go to Solution.
Hi @Ken_Short ,
It seems that you want to remove a control if Flow does not fill the control with any values.
I think Flow does not support this function. The work of Populate MS Word template is to fill the corresponding values for the configured controls. It does not support setting or editing the controls stored in the template.
Maybe you could solve your problem by setting up Word Online Templates, please consider submitting your question here to see if you can get the right method:
https://techcommunity.microsoft.com/t5/Office-365/Word-online-Templates/m-p/78748
Best Regards,
Hi @Ken_Short ,
It seems that you want to remove a control if Flow does not fill the control with any values.
I think Flow does not support this function. The work of Populate MS Word template is to fill the corresponding values for the configured controls. It does not support setting or editing the controls stored in the template.
Maybe you could solve your problem by setting up Word Online Templates, please consider submitting your question here to see if you can get the right method:
https://techcommunity.microsoft.com/t5/Office-365/Word-online-Templates/m-p/78748
Best Regards,
@Ken_Short - there's a way to do this by using an array variable in Power Automate and a repeating content control in a Word template.
This will suppress the extra blank Street2 line in your Word document if it doesn't have a value in that column.
User | Count |
---|---|
6 | |
5 | |
5 | |
3 | |
2 |
User | Count |
---|---|
11 | |
9 | |
7 | |
7 | |
4 |