# Require Confirm - One Shot Buttom - Input

**URL:** <https://forum.inductiveautomation.com/t/require-confirm-one-shot-buttom-input/59450>\
**Category:** Ignition\
**Tags:** scripting, perspective\
**Created:** [May 11, 2022, 12:40pm UTC](https://forum.inductiveautomation.com/t/require-confirm-one-shot-buttom-input/59450 "2022-05-11T12:40:21Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thiago\_Vilela](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/thiago_vilela/32/37352_2.png) [@Thiago\_Vilela](https://forum.inductiveautomation.com/u/Thiago_Vilela)\
**Post date:** [May 11, 2022, 12:40pm UTC](https://forum.inductiveautomation.com/t/require-confirm-one-shot-buttom-input/59450/1 "2022-05-11T12:40:21Z")

</div>

Hello.

I’m using (Require Confirm - One Shot Buttom - Input) and the user needs to click in Yes or No to allow to go to the next step (unhide other parts). I need to get the confirmation “YES” for that. How can I get this “Yes” click?

![buttonConfirm](https://us1.discourse-cdn.com/inductiveautomation/original/3X/a/7/a7fe205bd8d3ab7ad3a36022755046b3abc7eddd.png)

Thanks.

---

<div class="post-metadata">

**Author:** ![pascal.fragnoud](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pascal.fragnoud/32/24728_2.png) [@pascal.fragnoud](https://forum.inductiveautomation.com/u/pascal.fragnoud)\
**Post date:** [May 11, 2022, 12:43pm UTC](https://forum.inductiveautomation.com/t/require-confirm-one-shot-buttom-input/59450/2 "2022-05-11T12:43:52Z")

</div>

I believe the `onActionPerformed` event is triggered when “yes” is clicked. Put your logic there.

---

<div class="post-metadata">

**Author:** ![Thiago\_Vilela](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/thiago_vilela/32/37352_2.png) [@Thiago\_Vilela](https://forum.inductiveautomation.com/u/Thiago_Vilela)\
**Post date:** [May 11, 2022, 1:25pm UTC](https://forum.inductiveautomation.com/t/require-confirm-one-shot-buttom-input/59450/3 "2022-05-11T13:25:25Z")

</div>

Sorry, but how can I use event to get the yes answer?  
Could you give me an example (event.)?

```
if event.confirm == 'Yes':
	self.getChild("TestLabel").props.text = self.props.value
```

---

<div class="post-metadata">

**Author:** ![pascal.fragnoud](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pascal.fragnoud/32/24728_2.png) [@pascal.fragnoud](https://forum.inductiveautomation.com/u/pascal.fragnoud)\
**Post date:** [May 11, 2022, 1:30pm UTC](https://forum.inductiveautomation.com/t/require-confirm-one-shot-buttom-input/59450/4 "2022-05-11T13:30:32Z")

</div>

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/5/e/5e8230a6db8c19aafcf2dbdfaaa2933c84a63dd7.png)

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/1/c/1c21b8af17420e7f3baacbc94535255945f2b9f8.png)

---

<div class="post-metadata">

**Author:** ![Thiago\_Vilela](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/thiago_vilela/32/37352_2.png) [@Thiago\_Vilela](https://forum.inductiveautomation.com/u/Thiago_Vilela)\
**Post date:** [May 11, 2022, 1:36pm UTC](https://forum.inductiveautomation.com/t/require-confirm-one-shot-buttom-input/59450/5 "2022-05-11T13:36:13Z")

</div>

It was simpler than I thought  
Thanks.
