web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How do I populate a wo...
Power Automate
Unanswered

How do I populate a word document that has conditional to show certain fields?

(0) ShareShare
ReportReport
Posted on by 826 Moderator
I already know how to populate a word document template by putting plain text content control and settings its properties. 

My goal is to show certain fields in the document depending on the variable

for example

Is continue? {{continue answer}} <--- these are plain text content control that will be populated 
{{\if "continue answer" = true}} 

content 1 : {{content 1}}  <--- these are plain text content control that will be populated 
content 2: {{content 2}} 

{{\endif "continue answer"}} 

if continue answer is false the fields wouldn't show on the word document. How am I able to achieve this?
Categories:
I have the same question (2)
  • David_MA Profile Picture
    13,912 Super User 2026 Season 1 on at
    The Populate Word Template is limited to populating the fields you have added to the template. It cannot add logic to the Word document.
  • KevinGador Profile Picture
    826 Moderator on at
    David_MA     that is definitely true however what can I do to my word template? Maybe there's something I can do in there

    I've stumbled upon mail merging or field contents which I do not know how to utilize. 

     
  • David_MA Profile Picture
    13,912 Super User 2026 Season 1 on at
    Hello @KevinGador, this forum is for providing solutions using Power Automate. There very well may be some way to do what you want within Word itself, but I don't know how. I would suggest that you post your question in the dedicated Microsoft Word forum at Word | Microsoft Community Hub. You will be more likely to get an accurate answer there if the solution offered by @AlexEncodian​​​​​​​ does not meet your needs.

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.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 262 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 227

#3
Expiscornovus Profile Picture

Expiscornovus 225 Most Valuable Professional

Last 30 days Overall leaderboard