Show AirAlert Success Message Only When Changes Made

Hi,
How can I trigger the success alert only when the element within a field is changed?

I want the success message to trigger only when someone makes changes to the fields in their profile info and clicks Save Changes.

If I understand your post correctly, let’s say a user’s profile has three fields… first name, last name, and date of birth. You want a success alert to be shown when the Save Changes button is clicked only when the value in any one of those fields has been changed, correct?

If that’s what you are shooting for, you will have a workflow step on the Save Changes button that shows the alert message only when the value in the first name input field is not the same as the value in the db for that user or the value in the last name input field is not the same as the value in the db for that user or the value in the date of birth input field is not the same as the value in the db for that user.

Just a thought… if you want to show a success message only when something has changed, I might suggest you disable the Save Changes button until the user has made a change to something on the page. Then, when the button is clicked, you know a change has been made (because the button only becomes enabled if a change has been made), and you can show the success message without having to check every field to see if something has changed.

Hope this helps.

Best…
Mike

Yes, thats exactly what I’m looking for.

How do I set up a condition of this sort
" the value in the first name input field is not the same as the value in the db for that user or the value in the last name input field is not the same as the value in the db for that user or the value in the date of birth input field is not the same as the value in the db for that user."

It’s impossible to tell you exactly how to set up the condition without knowing how you have certain things configured. If you include some screenshots or show the condition you have tried to set up, it would be much easier to help you.

That being said, the Only when condition is going to be something like profile first name's value is not Current Page User's Profile's first name or profile last name's value is not Current Page User's Profile's last name or profile date of birth's value is not Current Page User's Profile's date of birth value .

The part before each is not is the name of the input field on the page, and the part after each is not is the field in the db to which you want to compare it.

Best…
Mike

1 Like

Thanks a lot for all your help :heart:
It worked but the or function didn’t work.
It forced all the fields to be different to enable the Save Changes Button.

If one field was different from current users value it didn’t show the Save Changes button

I used the and instead of or & it worked.
Shouldn’t “or” be the right one to use?

Happy to help… and yup, that is the very definition of or. :slight_smile:

I’m not sure why it didn’t work… no way to know without seeing exactly how you have things set up.

Best…
Mike

This topic was automatically closed after 70 days. New replies are no longer allowed.