{"action":"opened","issue":{"url":"https://api.github.com/repos/reduxframework/redux-framework/issues/2645","labels_url":"https://api.github.com/repos/reduxframework/redux-framework/issues/2645/labels{/name}","comments_url":"https://api.github.com/repos/reduxframework/redux-framework/issues/2645/comments","events_url":"https://api.github.com/repos/reduxframework/redux-framework/issues/2645/events","html_url":"https://github.com/reduxframework/redux-framework/issues/2645","id":110550373,"number":2645,"title":"Prevent option to be saved (or be able to reset it right after save)","user":{"login":"ckissi","id":5107590,"avatar_url":"https://avatars.githubusercontent.com/u/5107590?v=3","gravatar_id":"","url":"https://api.github.com/users/ckissi","html_url":"https://github.com/ckissi","followers_url":"https://api.github.com/users/ckissi/followers","following_url":"https://api.github.com/users/ckissi/following{/other_user}","gists_url":"https://api.github.com/users/ckissi/gists{/gist_id}","starred_url":"https://api.github.com/users/ckissi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ckissi/subscriptions","organizations_url":"https://api.github.com/users/ckissi/orgs","repos_url":"https://api.github.com/users/ckissi/repos","events_url":"https://api.github.com/users/ckissi/events{/privacy}","received_events_url":"https://api.github.com/users/ckissi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-08T22:01:31Z","updated_at":"2015-10-08T22:01:31Z","closed_at":null,"body":"I'm using checkbox field for resetting data in one of my DB tables.\r\nI'm using this hook:\r\n\r\nadd_action('redux/options/'.$args['opt_name'].'/saved','redux_save_action', 10, 3);\r\n\r\nIt works ok. So after \"Save\" I make required DB changes inside the \"redux_save_action\" function.\r\n\r\nAnd now the issue comes in. I need to reset this checkbox field right after the Save (make it unchecked). \r\n\r\nI was able to do it with this function:  Redux::setOption($opt_name,'db-reset',false) inside the  redux_save_action function I mentioned earlier.\r\n\r\nUnfortunately to make this change visible I have to reload the page first. The issue here is that the Save function uses AJAX to save data and I'm unable to view the checkbox unchecked until I reload the page.\r\n\r\nAny idea how to solve this ?  "}}