# Saving and reloading a parameter

**URL:** <https://discourse.slicer.org/t/saving-and-reloading-a-parameter/25408>\
**Category:** Support\
**Created:** [September 23, 2022, 6:00am UTC](https://discourse.slicer.org/t/saving-and-reloading-a-parameter/25408 "2022-09-23T06:00:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![AMK](https://avatars.discourse-cdn.com/v4/letter/a/f0a364/32.png) [@AMK](https://discourse.slicer.org/u/AMK)\
**Post date:** [September 23, 2022, 6:00am UTC](https://discourse.slicer.org/t/saving-and-reloading-a-parameter/25408/1 "2022-09-23T06:00:06Z")

</div>

Hi,

In my slicer module, I have a text box for entering the patient’s serial number. I wanted to know how I could save this value and reload it as I reload the slicer scene on starting it? Similar to the way we can reload the previously saved fiducial points, as they are saved in json etc.

---

<div class="post-metadata">

**Author:** ![jay1987](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jay1987/32/16183_2.png) [@jay1987](https://discourse.slicer.org/u/jay1987)\
**Post date:** [September 23, 2022, 7:38am UTC](https://discourse.slicer.org/t/saving-and-reloading-a-parameter/25408/2 "2022-09-23T07:38:32Z")

</div>

you can write a python script using a button save and load the parameter into a file.
