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 Apps / Conditional fields in ...
Power Apps
Unanswered

Conditional fields in the email

(0) ShareShare
ReportReport
Posted on by 64

Hi, 

 

I have three Combo box and three Text inputs with values ​​assigned to them.

After selecting the appropriate values ​​from them, after pressing the button, the values ​​from these fields are sent to the e-mail.

 

The button code looks like this:

 

Mjetek404_2-1623840540055.png

 

The completed form looks like this:

 

Mjetek404_3-1623840614089.png

 

The e-mail does:

 

Mjetek404_4-1623840675582.png

 

Everything looks ok and works as it should.
But if I check only the first Combo box and the first value, the message content looks like this:

 

Mjetek404_5-1623840983699.png

 

How can I "invisible" the second and third lines if they have no value?

 

Mjetek404_6-1623841117206.png

 

I would be very grateful for your help 🙂

 

Categories:
  • zmansuri Profile Picture
    6,048 Super User 2024 Season 1 on at

    Once you write normal text like "Second Content" it becomes part of html and can not be removed. i am not sure this will work but try this:

    In your Email body code:  write your body code in if blocks like

    If(IsBlank(ComboBox1) && IsBlank(ComboBox2),

    "write your email code for combobox3",

    If(IsBlank(ComboBox1) && IsBlank(ComboBox3),

    "write your email code for combobox2",

    If(IsBlank(ComboBox2) && IsBlank(ComboBox3),

    "write your email code for combobox1",

    if(IsBlank(ComboBox1),

    "write your email code for combobox2 and 3",

    if(IsBlank(ComboBox2),

    "write your email code for combobox1 and 3",

    if(IsBlank(ComboBox3),

    "write your email code for combobox1 and 2"))))));

     

    I know it look ridiculously long but for now this is the only thing that comes to mind

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 Apps

#1
11manish Profile Picture

11manish 360 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 325

#3
Mohsin Ali Profile Picture

Mohsin Ali 232

Last 30 days Overall leaderboard