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.

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Power Apps Ideas

Changes to Ideas Coming

We are excited to announce a new way to share your ideas for Power Apps!

Top Solution Authors
Top Kudoed Authors
Users online (3,061)