Hi I was hoping you can help me with the following.
Users can add or edit records for the category table, these 2 actions are happening in different pages, when the user submits ether the add or update page, they will be redirected to a page where all the categories are shown.
The view all categories page has a URL parameter ?actev= and depending whether it was a new entry or an update the value will be successNew or successUpdate.
I have 2 notifications set up like this:
<dmx-notifications id="AlertSucess2" align="full" opacity="1.8" timeout="25000" closable success-background="#3B851E" dmx-hide="query.actev == successUpdate" role="alert" offset-y="95"></dmx-notifications>
`<dmx-notifications id="AlertSucess" role="alert" align="full" offset-y="95" opacity="1.8" success-background="#3B851E" dmx-hide="query.actev == successNew" closable></dmx-notifications>`
And I am using a dynamic event to load the message like this
<body id="AdminCheckPointsCategoryViewAll" is="dmx-app" dmx-on:load="AlertSucess.success('You have successfully added a new category.');AlertSucess2.success('You have successfully updated a category.')">
The problem is that both notifications are being shown regardless of the parameter value.
What can I do to ensure only the notification with he correct value for the parameter shows?
I will appreciate any help; I have been working on this for days.
Thanks
Juan
Last updated: