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

Community site session details

Session Id :
Power Automate - Building Flows
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

I have the same question (0)
  • Verified answer
    leo85 Profile Picture
    607 on at
    Re: Removing unanswered questions from html output

    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 614 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 401 Moderator

#3
chiaraalina Profile Picture

chiaraalina 282

Last 30 days Overall leaderboard