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 / Removing unanswered qu...
Power Automate
Answered

Removing unanswered questions from html output

(0) ShareShare
ReportReport
Posted on by

I have created an MS Form that has numerous branching within so not all answers within the form are always answered. Once submitted i take the answers and using a Compose Action tag them into an HTML document.  The HTML doc has been setup to cater for all questions within the form so depending on what questions the customer is asked to complete means some areas of the HTML doc are empty. I was wondering if there is a way to make the html code dynamic so the relevant sections only appear if the answer has been provided.

 

For example

coxycox8_0-1640182644730.png

I have setup the html doc to tag in the Customer Number and Original Invoice Number answers.  If the Invoice Number is not answered within the MS Form is there a way for <td>Original Invoice Number</td> to not appear on the html doc?

 

coxycox8_1-1640182889398.png

 

Thanks in advance for any response

 

Simon

Categories:
  • Verified answer
    leo85 Profile Picture
    635 on at

    Hi @coxycox8 ,

    I guess this is more of an HTML question. If you can control the TD or TR tags, you can add a style reference <td style="display:none;"></td>. This should hide an element.

     

    Otherwise, you could try to not to add elements to the output with expressions when you build the HTML output. A bit like this.

    if(equals(FormElement()?['value'],''),'','YOUR HTML CODE')

     

    Regards,

    Leo

     

    -----------------------------------------

    If my answer solved your issue, please mark it as answered.

    If what I wrote was helpful, please give it a thumbs up.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 299

#2
11manish Profile Picture

11manish 274 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 119

Last 30 days Overall leaderboard