cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Ken_Short
Frequent Visitor

How to remove second address line if empty

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.

 

address.JPG

 

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.

1 ACCEPTED SOLUTION

Accepted Solutions
v-bacao-msft
Community Support
Community Support

 

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,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-bacao-msft
Community Support
Community Support

 

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,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (1,048)