# Read, write Tag values

**URL:** <https://forum.inductiveautomation.com/t/read-write-tag-values/68457>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [January 10, 2023, 9:47pm UTC](https://forum.inductiveautomation.com/t/read-write-tag-values/68457 "2023-01-10T21:47:20Z")\
**Posts on this page:** 1\
**Showing post:** 22

<div class="post-metadata">

**Author:** ![amarks](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/amarks/32/45610_2.png) [@amarks](https://forum.inductiveautomation.com/u/amarks)\
**Post date:** [January 16, 2023, 5:54pm UTC](https://forum.inductiveautomation.com/t/read-write-tag-values/68457/22 "2023-01-16T17:54:43Z")

</div>

Start with just getting the output to change first. Then we'll worry about showing/hiding with the submit button.

Make sure your parameters are set up correctly on your embedded view to get the output to change, rather than send a message.

If this is the yes button script

```auto
def runAction(self, event):
	if self.view.params.popup:
		system.perspective.sendMessage("Confirm", payload = {"payloadID":self.view.params.payload_id, "confirm":True})
		system.perspective.closePopup('')
	else:
		self.view.params.output = True		

```

We need to make sure the `popup` parameter is false on the embedded view, otherwise you'll just be sending a message instead of changing the output.  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/d/b/db60b1f82a0e6a3c77259f3fab3d036437484815.png)

Second, we need to make sure the parameter is type `Input/Output`. Right click the parameter in your confirm view and select the Input/Output option from the Input/Output menu.  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/1/3/13361579a5d130da5250b21d2ce9be904b32c8f2.png)

[https://us1.discourse-cdn.com/inductiveautomation/original/3X/c/6/c645ebbc999346a1357a24cf03317b7b5b304c2a.mp4](https://us1.discourse-cdn.com/inductiveautomation/original/3X/c/6/c645ebbc999346a1357a24cf03317b7b5b304c2a.mp4)

---

_[View the full topic](https://forum.inductiveautomation.com/t/read-write-tag-values/68457)._
