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 / Check Box output to Email
Power Apps
Answered

Check Box output to Email

(0) ShareShare
ReportReport
Posted on by 71

I need help with my check boxes, currently the check box labled no equipment needed when checked and sent into an email just says true if checked and false if not checked. What I want is when the checkbox is clicked it says no equipment needed, if its not checked then display nothing. This will also be for all of the check boxes in the app. I want each one to show up when checked with the name of that check box in the list in the mail Below will be the code, the interface of the app, and how its currently showing up in the email.

 

Office365Outlook.SendEmailV2(
HS_txtinp_Email.Text,
"IT Requirements Request",
HS_txtlbl_EmployeeInformation &
"<br></br>" &
"Employee Name: " & HS_txtinp_EmployeeName.Text &
"<br>Department: " & HS_txtinp_Department.Text &
"<br>Job Title: " & HS_txtinp_JobTitle.Text &
"<br>Start Date: " & HS_dp_StartDate &
"<br>Cost Center: " & HS_dd_CostCenter.Selected.Value &
"<br>Location: " & HS_dd_Location.Selected.Value &
"<br></br>" &
HS_txtlbl_Equipment &
"<br>" & HS_cb_NoEquipmentNeeded.Text &
"<br>Headset: " & HS_dd_Headset.Selected.Value &
"<br>Desktop/Laptop: " & HS_dd_WorkstationSetup.Selected.Value &
"<br>VPN Access: " & HS_dd_VPNAccess.Selected.Value &
"<br>Monitors: " & HS_dd_Monitors.Selected.Value &
"<br>Phone: " & HS_dd_Phone.Selected.Value &
"<br></br>" &
"<br>Applications/Licenses: "
& "<br>" & HS_CB50.Text & "<br>" & HS_CB49.Text & "<br>" & HS_CB48.Text & "<br>" & HS_CB47.Text
& "<br>" & HS_CB46.Text & "<br>" & HS_CB45.Text & "<br>" & HS_CB44.Text & "<br>" & HS_CB43.Text
& "<br>" & HS_CB42.Text & "<br>" & HS_CB41.Text & "<br>" & HS_CB40.Text & "<br>" & HS_CB39.Text
& "<br>" & HS_CB38.Text & "<br>" & HS_CB37.Text & "<br>" & HS_CB36.Text & "<br>" & HS_CB35.Text
& "<br>" & HS_CB34.Text & "<br>" & HS_CB33.Text & "<br>" & HS_CB32.Text & "<br>" & HS_CB31.Text
& "<br>" & HS_CB30.Text & "<br>" & HS_CB29.Text & "<br>" & HS_CB28.Text & "<br>" & HS_CB27.Text
& "<br>" & HS_CB26.Text & "<br>" & HS_CB25.Text & "<br>" & HS_CB24.Text & "<br>" & HS_CB23.Text
& "<br>" & HS_CB22.Text & "<br>" & HS_CB21.Text & "<br>" & HS_CB20.Text & "<br>" & HS_CB19.Text
& "<br>" & HS_CB18.Text & "<br>" & HS_CB17.Text & "<br>" & HS_CB16.Text & "<br>" & HS_CB15.Text
& "<br>" & HS_CB14.Text & "<br>" & HS_CB13.Text & "<br>" & HS_CB12.Text & "<br>" & HS_CB11.Text
& "<br>" & HS_CB10.Text & "<br>" & HS_CB9.Text & "<br>" & HS_CB8.Text & "<br>" & HS_CB7.Text
& "<br>" & HS_CB6.Text & "<br>" & HS_CB5.Text & "<br>" & HS_CB4.Text & "<br>" & HS_CB3.Text
& "<br>" & HS_CB2.Text & "<br>" & HS_CB1.Text

)

 

JaredB_0-1670530447433.png

Employee Name: 
Department:
Job Title: 
Start Date: 
Cost Center: 
Location: 

Equipment
true -------This should say when checked no equipment needed, if not checked then its blank
Headset: 
Desktop/Laptop: 
VPN Access: 
Monitors: 
Phone: 


Applications/Licenses:   -------  none of these have been checked but they are just showing up regardless.
Option
Option
Option
Option
Option
Option
Option
Option
Option
Option
Option
Option
Option
Option
Option
Option
Option
Option
Option
Option
Option
Option
Option
Option
Option
Option
Option
Option
Option
Option
Option
Option
Option
Option
Option
Option
Option
Option
Option
Option
Option
Option
Option
Option
Option
Option
Option
Option
Option
Option

Categories:
  • Verified answer
    WarrenBelz Profile Picture
    156,752 Most Valuable Professional on at

    Hi @JaredB ,

    This is the pattern - you just need to do the others the opposite - (not ! in front)<

    Office365Outlook.SendEmailV2(
    	HS_txtinp_Email.Text,
    	"IT Requirements Request",
    	HS_txtlbl_EmployeeInformation &
    	"<br></br>" &
    	"Employee Name: " & HS_txtinp_EmployeeName.Text &
    	"<br>Department: " & HS_txtinp_Department.Text &
    	"<br>Job Title: " & HS_txtinp_JobTitle.Text &
    	"<br>Start Date: " & HS_dp_StartDate &
    	"<br>Cost Center: " & HS_dd_CostCenter.Selected.Value &
    	"<br>Location: " & HS_dd_Location.Selected.Value &
    	"<br></br>" &
    	HS_txtlbl_Equipment &
    	If(
    		!NoEquipmentNeededCheckBox.Value,
    		"<br>" & HS_cb_NoEquipmentNeeded.Text &
    		"<br>Headset: " & HS_dd_Headset.Selected.Value &
    		"<br>Desktop/Laptop: " & HS_dd_WorkstationSetup.Selected.Value &
    		"<br>VPN Access: " & HS_dd_VPNAccess.Selected.Value &
    		"<br>Phone: " & HS_dd_Phone.Selected.Value
    	) &
    	"<br></br>" &
    	"<br>Applications/Licenses: "
    	& "<br>" & HS_CB50.Text & "<br>" & HS_CB49.Text & "<br>" & HS_CB48.Text & "<br>" & HS_CB47.Text
    	& "<br>" & HS_CB46.Text & "<br>" & HS_CB45.Text & "<br>" & HS_CB44.Text & "<br>" & HS_CB43.Text
    	& "<br>" & HS_CB42.Text & "<br>" & HS_CB41.Text & "<br>" & HS_CB40.Text & "<br>" & HS_CB39.Text
    	& "<br>" & HS_CB38.Text & "<br>" & HS_CB37.Text & "<br>" & HS_CB36.Text & "<br>" & HS_CB35.Text
    	& "<br>" & HS_CB34.Text & "<br>" & HS_CB33.Text & "<br>" & HS_CB32.Text & "<br>" & HS_CB31.Text
    	& "<br>" & HS_CB30.Text & "<br>" & HS_CB29.Text & "<br>" & HS_CB28.Text & "<br>" & HS_CB27.Text
    	& "<br>" & HS_CB26.Text & "<br>" & HS_CB25.Text & "<br>" & HS_CB24.Text & "<br>" & HS_CB23.Text
    	& "<br>" & HS_CB22.Text & "<br>" & HS_CB21.Text & "<br>" & HS_CB20.Text & "<br>" & HS_CB19.Text
    	& "<br>" & HS_CB18.Text & "<br>" & HS_CB17.Text & "<br>" & HS_CB16.Text & "<br>" & HS_CB15.Text
    	& "<br>" & HS_CB14.Text & "<br>" & HS_CB13.Text & "<br>" & HS_CB12.Text & "<br>" & HS_CB11.Text
    	& "<br>" & HS_CB10.Text & "<br>" & HS_CB9.Text & "<br>" & HS_CB8.Text & "<br>" & HS_CB7.Text
    	& "<br>" & HS_CB6.Text & "<br>" & HS_CB5.Text & "<br>" & HS_CB4.Text & "<br>" & HS_CB3.Text
    	& "<br>" & HS_CB2.Text & "<br>" & HS_CB1.Text
    
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

  • JaredB Profile Picture
    71 on at

    @WarrenBelz that didn't work its erroring out.

  • WarrenBelz Profile Picture
    156,752 Most Valuable Professional on at

    @JaredB ,

    What is the error - can you please post that section of the code. It is valid from what I can see, assuming you have used the correct checkbox name. The rest is simply your code that I copied.

  • JaredB Profile Picture
    71 on at

    @WarrenBelz Ah ok I see what you mean, it's working kind of right now, its backwards. So, when the box is checked it shows up like this. So basically its backwards when checked nothing shows up when not checked everything shows up like its supposed to expect it says no equipment needed.

    Employee Information

    Employee Name: Jared
    Department: IT/IS
    Job Title: BSA
    Start Date: 12/9/2022
    Cost Center: 56
    Location: Easley Building 8

    Equipment

     

    When the box is not checked it shows up like this

     

    Employee Information

    Employee Name: Jared
    Department: IT/IS
    Job Title: BSA
    Start Date: 12/9/2022
    Cost Center: 56
    Location: Easley Building 8

    Equipment
    No Equipment Needed
    Headset: Wired $75
    Desktop/Laptop: Desktop & Laptop
    VPN Access: Yes
    Phone: Desk Phone $485/$150 Refurb

  • JaredB Profile Picture
    71 on at

    @WarrenBelz disregard the last message, its working like its supposed to be working, thank you for your help.

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 342 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 271

#3
Mohsin Ali Profile Picture

Mohsin Ali 223

Last 30 days Overall leaderboard