cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
gennarodp
Post Patron
Post Patron

if function depending on DatacardValue in a EditForm

I would like to know how use if function depending on the value of a datacardValue in a EditForm.

 

The value in this case, is a selected value.

 

Thank you

1 ACCEPTED SOLUTION

Accepted Solutions
Jeff_Thorpe
Super User
Super User

You can add actions and you will need a mail connector to send mail. For example:

If(DataCardValue.Selected.Value = "red", Patch(.....); Office365.SendEmail(.....),  Notify( "There is an error", NotificationType.Error ))

 The ";" between the Patch and SendEmail strings the two action together if the condition is true.



--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

View solution in original post

4 REPLIES 4
eka24
Super User
Super User

You may have to explain further what you want to achieve.

A formula may go like;

If(datacardavalue1.Selected.Value ="ABC", ....,...)

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

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

Jeff_Thorpe
Super User
Super User

Assuming datacardValue is a single select control dropdown or combobox it would look something like this:

 

If(DataCardValue.Selected.Value = "Red", "Yes", "No")

 



--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

This sintax is correct, but i would like to have that if the value is ‘red’, there is an action (patch) and send email, otherwise give me a error notification.

Jeff_Thorpe
Super User
Super User

You can add actions and you will need a mail connector to send mail. For example:

If(DataCardValue.Selected.Value = "red", Patch(.....); Office365.SendEmail(.....),  Notify( "There is an error", NotificationType.Error ))

 The ";" between the Patch and SendEmail strings the two action together if the condition is true.



--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

View solution in original post

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (1,126)