cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Madi
Level: Powered On

Display success message when submitting.

Hei

I want to display  the message by using Notify() based on status value which user choosed in submitting the form . I have two status "Draft" and "Send". If user saved the project as draft it shud display draft is saved other wise Project is sent .

Is it possible. ? how we get to know which value user has choosed ? 

2 REPLIES 2
h-nagao
Level 10

Re: Display success message when submitting.

How does user set such status value?
If user set it from dropdown control, it may work that set some context variable on DropDown.OnChang property, and depending on its value, switch the action of submit button.
If(ContextVariable = “Send”, send form action ;Notify(.....), send form action)
SanchezCSG
Level 8

Re: Display success message when submitting.

Form: Form1

Status field: DataCardValueX

Status indicator text field: StatusIndicator

 

Add another field with visible "false" with the name StatusIndicator that refers the status field DataCardValueX.Selected.Value

 

Button -> OnSelect

 

SubmitForm(Form1)&&If(StatusIndicator.Text="Draft";Notify("Draft";NotificationType.Information);If(StatusIndicator.Text="Send";Notify("Send";NotificationType.Information)))

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

SecondImage

Follow PowerApps on Twitter

Stay Up-to-Date by following PowerApps on Twitter

Top Community Contributors for July 2019

Top Community Contributors for July 2019

Let's thank our top community contributors

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

FifthImage

Dynamics 365 and Power Platform April 2019 Release notes

Features releasing from April 2019 through September 2019!

Users Online
Currently online: 41 members 4,128 guests
Please welcome our newest community members: