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!

Power Apps Community Call Jan. 2022 768x460.png

Power Apps Community Call

Please join us on Wednesday, January 19th, at 8a PDT. Come and learn from our amazing speakers!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Top Solution Authors
Top Kudoed Authors
Users online (1,861)