How to keep state of custom field in panel after page reload

Does this help?