# Message 'Action Denied'

**URL:** <https://forum.inductiveautomation.com/t/message-action-denied/78097>\
**Category:** General Discussion\
**Created:** [August 18, 2023, 6:30pm UTC](https://forum.inductiveautomation.com/t/message-action-denied/78097 "2023-08-18T18:30:11Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kaloyan\_Radomirov](https://avatars.discourse-cdn.com/v4/letter/k/47e85d/32.png) [@Kaloyan\_Radomirov](https://forum.inductiveautomation.com/u/Kaloyan_Radomirov)\
**Post date:** [August 18, 2023, 6:30pm UTC](https://forum.inductiveautomation.com/t/message-action-denied/78097/1 "2023-08-18T18:30:11Z")

</div>

Hi all,

Can We have message 'Action Denied' to be auto hide or background dismissible?  
On a touch screen is hard to close it due to small 'x' in the corner.

Thanks.  
 ![denied](https://us1.discourse-cdn.com/inductiveautomation/original/3X/6/5/6503712b2c0429ac01604ffabc504aaa7603ff48.png)

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [August 18, 2023, 6:55pm UTC](https://forum.inductiveautomation.com/t/message-action-denied/78097/2 "2023-08-18T18:55:41Z")

</div>

It is best to **disable** a button whose action will be denied, so the user simply _cannot_ click on it.

---

<div class="post-metadata">

**Author:** ![Kaloyan\_Radomirov](https://avatars.discourse-cdn.com/v4/letter/k/47e85d/32.png) [@Kaloyan\_Radomirov](https://forum.inductiveautomation.com/u/Kaloyan_Radomirov)\
**Post date:** [August 18, 2023, 6:58pm UTC](https://forum.inductiveautomation.com/t/message-action-denied/78097/3 "2023-08-18T18:58:59Z")

</div>

Yeah, usually I do that. Thanks

---

<div class="post-metadata">

**Author:** ![Kaloyan\_Radomirov](https://avatars.discourse-cdn.com/v4/letter/k/47e85d/32.png) [@Kaloyan\_Radomirov](https://forum.inductiveautomation.com/u/Kaloyan_Radomirov)\
**Post date:** [August 18, 2023, 7:01pm UTC](https://forum.inductiveautomation.com/t/message-action-denied/78097/4 "2023-08-18T19:01:48Z")

</div>

But...

the idea is that when I press the button, I run a popup with detailed information... which is somewhat important to me.

yes, I can put the button on the popup and disable it there or not, but I use the popup for various info messages

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [August 18, 2023, 7:06pm UTC](https://forum.inductiveautomation.com/t/message-action-denied/78097/5 "2023-08-18T19:06:57Z")

</div>

> [@Kaloyan\_Radomirov](#):
>
> I use the popup for various info messages

Pass a "buttonEnabled" parameter to the popup.

---

<div class="post-metadata">

**Author:** ![Kaloyan\_Radomirov](https://avatars.discourse-cdn.com/v4/letter/k/47e85d/32.png) [@Kaloyan\_Radomirov](https://forum.inductiveautomation.com/u/Kaloyan_Radomirov)\
**Post date:** [August 18, 2023, 7:17pm UTC](https://forum.inductiveautomation.com/t/message-action-denied/78097/6 "2023-08-18T19:17:46Z")

</div>

![Capture](https://us1.discourse-cdn.com/inductiveautomation/original/3X/e/d/eda773ee81abcd2f918f599a8cbcb7aede981a4b.png)

and Im doing what in popup with parameter enable/disable btn?

---

<div class="post-metadata">

**Author:** ![Kaloyan\_Radomirov](https://avatars.discourse-cdn.com/v4/letter/k/47e85d/32.png) [@Kaloyan\_Radomirov](https://forum.inductiveautomation.com/u/Kaloyan_Radomirov)\
**Post date:** [August 18, 2023, 7:21pm UTC](https://forum.inductiveautomation.com/t/message-action-denied/78097/7 "2023-08-18T19:21:18Z")

</div>

On click btn, I have

1. Open PopUp with some info (the button deletes the selected row in the table, the info message is detailed about the deleted row)
2. run script if you are loged (in the security settings options)

I need this message "Action Denied", but if it's auto dissmisible.

![script](https://us1.discourse-cdn.com/inductiveautomation/original/3X/9/c/9c4f9bc77aeece5e85e576015794647218bf19f2.png)

---

<div class="post-metadata">

**Author:** ![Kaloyan\_Radomirov](https://avatars.discourse-cdn.com/v4/letter/k/47e85d/32.png) [@Kaloyan\_Radomirov](https://forum.inductiveautomation.com/u/Kaloyan_Radomirov)\
**Post date:** [August 18, 2023, 7:23pm UTC](https://forum.inductiveautomation.com/t/message-action-denied/78097/8 "2023-08-18T19:23:26Z")

</div>

ok,

I will do all in one script.  
onClick:

1. script - If logged do: real job , if not open popUp.

that is a way for now  
Thanks

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [August 18, 2023, 7:44pm UTC](https://forum.inductiveautomation.com/t/message-action-denied/78097/9 "2023-08-18T19:44:26Z")

</div>

![Vision popup button enable](https://us1.discourse-cdn.com/inductiveautomation/original/3X/3/a/3ab3f286bbe81b88f7c69d65f57b76ae5f57713a.gif)

_Figure 1. Passing the buttonEnabled parameter to a popup._

 ![Vision open popup parameter](https://us1.discourse-cdn.com/inductiveautomation/original/3X/1/1/11c3f11c43117f0f464b47f3be441864e8eeddc5.png)

_Figure 2. On main window's open popup button (or whatever) configure a parameter to be passed to the popup. Bind it to whatever determines whether or not the popup's button should be enabled or not._

 ![Vision popup customizer](https://us1.discourse-cdn.com/inductiveautomation/original/3X/1/1/1175e3ca36a698925ab6356a78afadab730aada4.png)

_Figure 3. On the popup's root container create a custom property._

 ![Vision button enabled binding](https://us1.discourse-cdn.com/inductiveautomation/original/3X/2/c/2c55324b94c180665af7ee289bf2e2ff4148902f.png)

_Figure 4. Creating a binding to the buttonEnabled parameter on the button's Enabled property._

---

<div class="post-metadata">

**Author:** ![Kaloyan\_Radomirov](https://avatars.discourse-cdn.com/v4/letter/k/47e85d/32.png) [@Kaloyan\_Radomirov](https://forum.inductiveautomation.com/u/Kaloyan_Radomirov)\
**Post date:** [August 18, 2023, 7:48pm UTC](https://forum.inductiveautomation.com/t/message-action-denied/78097/10 "2023-08-18T19:48:24Z")

</div>

Thanks for the effort, but...

I know what you're telling me before you made a detailed manual  
You didn't understand me, I don't want extra buttons on the popup just ok and close  
The button on the page has finished its work if you were logged..  
My btn is not for open popUp only, its for delete selected table row, and open popUp with varius Info.  
For varius info message I use parameter and dont want more.

Thank you again,but Im lookin for answer:  
Can We have message 'Action Denied' to be auto hide or background dismissible?

---

<div class="post-metadata">

**Author:** ![lrose](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/lrose/32/62724_2.png) [@lrose](https://forum.inductiveautomation.com/u/lrose)\
**Post date:** [August 21, 2023, 1:39pm UTC](https://forum.inductiveautomation.com/t/message-action-denied/78097/11 "2023-08-21T13:39:15Z")

</div>

> [@Kaloyan\_Radomirov](#):
>
> My btn is not for open popUp only, its for delete selected table row, and open popUp with varius Info.

IMO, this is an anti pattern. A button should have a _single_ well defined function. Anything that occurs outside of that function is a _side effect_ and should be refactored into a different location.

All that being said, the answer you came to above is IMO the only answer.

I will, however, agree that on a touch screen buttons should be appropriately sized for use, and that much at least, is worth a feature request.

You may be able to resize the X to be more appropriately sized with CSS.

---

<div class="post-metadata">

**Author:** ![Kaloyan\_Radomirov](https://avatars.discourse-cdn.com/v4/letter/k/47e85d/32.png) [@Kaloyan\_Radomirov](https://forum.inductiveautomation.com/u/Kaloyan_Radomirov)\
**Post date:** [August 21, 2023, 2:39pm UTC](https://forum.inductiveautomation.com/t/message-action-denied/78097/12 "2023-08-21T14:39:30Z")

</div>

Stay calm my friend.  
The button performs its functions perfectly.  
In an onclick event, you can do a number of things that otherwise wouldn't have a place there.  
He deletes a row from the table and a pops up with info, what exactly he deleted, etc. details on...  
That's not my question.  
Stick to the point please.

---

<div class="post-metadata">

**Author:** ![lrose](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/lrose/32/62724_2.png) [@lrose](https://forum.inductiveautomation.com/u/lrose)\
**Post date:** [August 21, 2023, 2:52pm UTC](https://forum.inductiveautomation.com/t/message-action-denied/78097/13 "2023-08-21T14:52:43Z")

</div>

> [@Kaloyan\_Radomirov](#):
>
> Stick to the point please.

I did.

> [@lrose](#):
>
> All that being said, the answer you came to above is IMO the only answer.
> 
> I will, however, agree that on a touch screen buttons should be appropriately sized for use, and that much at least, is worth a feature request.
> 
> You may be able to resize the X to be more appropriately sized with CSS.

> [@Kaloyan\_Radomirov](#):
>
> In an onclick event, you can do a number of things that otherwise wouldn't have a place there.

Just because you can do something, doesn't mean you should do it.

I understand your question perfectly.

Can the 'Action Denied' message be hidden automatically or be background dismissible. The answer is no. You're welcome to put in a feature request for this, I doubt it will go anywhere. The option you have is to not attempt to execute the "denied action" unless needed.

You said that you can do this:

```auto
if logged:
   #do real job
else:
   #open popUp

```

This suggests that the button is doing something unrelated to the popUp.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [August 21, 2023, 2:54pm UTC](https://forum.inductiveautomation.com/t/message-action-denied/78097/14 "2023-08-21T14:54:51Z")

</div>

> [@Kaloyan\_Radomirov](#):
>
> That's not my question.  
> Stick to the point please.

We aren't "sticking to the point" because you are asking for something that is almost certainly not possible, and _ **should not be necessary** _. We're volunteers here. You don't get to insist that we answer your precise question instead of helping you solve the real problem.

If you don't want a **working answer** , then that's on you.

For a precise answer to your question, you should ask for formal IA support, which **not** this forum.

---

<div class="post-metadata">

**Author:** ![Kaloyan\_Radomirov](https://avatars.discourse-cdn.com/v4/letter/k/47e85d/32.png) [@Kaloyan\_Radomirov](https://forum.inductiveautomation.com/u/Kaloyan_Radomirov)\
**Post date:** [August 21, 2023, 2:57pm UTC](https://forum.inductiveautomation.com/t/message-action-denied/78097/15 "2023-08-21T14:57:50Z")

</div>

On click:  
if logged:  
....do real job  
....open popup info msg: what work is done!  
else:  
...open popUp with info msg: why you can't do the job and what level of security you need!

and it works now. 😝

What's wrong with it?

If we have a new operator he needs to know why he can't use the button otherwise I'll go down 2 floors every time I explain to him  
"Capish"?

---

<div class="post-metadata">

**Author:** ![Kaloyan\_Radomirov](https://avatars.discourse-cdn.com/v4/letter/k/47e85d/32.png) [@Kaloyan\_Radomirov](https://forum.inductiveautomation.com/u/Kaloyan_Radomirov)\
**Post date:** [August 21, 2023, 3:10pm UTC](https://forum.inductiveautomation.com/t/message-action-denied/78097/16 "2023-08-21T15:10:53Z")

</div>

I have nothing against you, you already answered the question correctly, why are you affected?  
It's just that the submitted solutions are very far from what I'm looking for.  
And people make efforts that don't serve me.  
what I want is already done the way I want it, I don't want 100 popups with various buttons.  
This is an informational popup with a text message parameter  
only One.  
I try to keep project simply and clean.

If you're not logged in, you can't delete, and this is reported to you  
if you are logged in, you can delete and you will be told what has been deleted.  
It's so simple.  
I only wanted to use the system message ( 'Action Denied') if it was auto hiding.  
That's all.  
Thanks.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [August 21, 2023, 3:24pm UTC](https://forum.inductiveautomation.com/t/message-action-denied/78097/17 "2023-08-21T15:24:38Z")

</div>

> [@Kaloyan\_Radomirov](#):
>
> why are you affected?

Because I care about this community. Which is a community of **volunteers**. While IA employees pop in here often, it isn't official support. You are treating people who are trying to help you as if they **owe you** their help, and precisely the way **you** want it.

Many participants here are in positions where they cannot push back against such behavior. I don't want lurkers to think it is appropriate on this forum.

---

<div class="post-metadata">

**Author:** ![Kaloyan\_Radomirov](https://avatars.discourse-cdn.com/v4/letter/k/47e85d/32.png) [@Kaloyan\_Radomirov](https://forum.inductiveautomation.com/u/Kaloyan_Radomirov)\
**Post date:** [August 21, 2023, 3:40pm UTC](https://forum.inductiveautomation.com/t/message-action-denied/78097/18 "2023-08-21T15:40:12Z")

</div>

You can delete me or delete the topic. You decide.  
On my project - I decide. Only there... and in my house of course 😉  
My project will work anyway, even if I write it in Django, as I did before we had the wonderful Ignition perspective. Where many things are sometimes solved with one click  
For that I wanted to use the existing one 'Action Denied'.

//a disabled button does not work because it does not explain to the operator why it is disabled and what level of security is required to use it.

I'm impulsive, in a hurry to get work done, and I'm busy when someone explains something I'm not looking for...aah and...boom.Iit's part of my character. I'm trying to fix it, but...

Nice day.
