# Getting confirmation from a user in perspective?

**URL:** <https://forum.inductiveautomation.com/t/getting-confirmation-from-a-user-in-perspective/30494>\
**Category:** Ignition\
**Tags:** ignition80\
**Created:** [December 6, 2019, 3:06pm UTC](https://forum.inductiveautomation.com/t/getting-confirmation-from-a-user-in-perspective/30494 "2019-12-06T15:06:31Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [December 6, 2019, 3:23pm UTC](https://forum.inductiveautomation.com/t/getting-confirmation-from-a-user-in-perspective/30494/2 "2019-12-06T15:23:53Z")

</div>

Perspective provides a lot more flexibility here.

Here are the basic steps, which you could make as complicated or logic-heavy as you’d like:

1. Create a View which contains a Label or Markup Component with your “Prefill form” text, and both a “Confirm” and “Cancel” button.
2. This View should also accept a param of `id`.
3. The “Confirm” button should include an onClick Event which invokes a script action (if you’re following my instructions from this [thread](http://forum.inductiveautomation.com/t/making-a-multi-page-single-view-form/30436/3?u=cmallonee), then this Script Action should set the session properties which your form fields are bound to).
4. The “Confirm” button’s script should also include `system.perspective.closePopup(id=self.view.params.id)` as the final line (this is why the Popup needs to accept a parameter which defines the id of the Popup.
5. The “Cancel” button should use the same `closePopup()` function as the “Confirm” button, but that should be all the logic it needs.
6. Use a valueChanged Event on a field of your choosing to invoke `system.perspective.openPopup(view=<a_configured_view>, id=<some_unique_value>, params={"id:":<the_same_unique_value>}, modal=True)`

Using these steps should provide your user with a Modal Popup which includes both a confirm and cancel button, where when the Confirm button is clicked you perform your form fill-in logic and then close the Popup, or if "Cancel: is clicked, the Popup will just close and do nothing.

---

_[View the full topic](https://forum.inductiveautomation.com/t/getting-confirmation-from-a-user-in-perspective/30494)._
