Actions
reset-state
3min
reset state action is typically used to reset the state of the key inside the {{jig}} file and can be used further to reset the state of ui components and forms to understand how to use states, see state docid 0js3trstyj4kcu6vviv1y configuration options configuration options there are multiple ways to set up a reset state reset state action within a {{jig}} as onfocus action that will be executed as onrefresh action that will be executed as the main action on the {{jig}} , and when you press the action, the reset state action will be executed the onpress and onchange actions will be executed when you trigger the onpress or onchange event examples and code snippets examples and code snippets reset state onfocus/onrefresh reset state action is used when the onfocus/onrefresh event is triggered to reset the component's state or key you can specify instanceid, this will be the name of the ui component and you need to specify the key, which will be the value of the ui component or the name of the key that you want to reset example see the full example in github onfocus jigx onfocus type action reset state options state =@ctx solution state onfocus key onrefresh jigx onrefresh type action reset state options state =@ctx solution state onrefresh key reset state as action reset state action is used as the primary action on the jig, to reset state of the component in the jig and its value you can specify instanceid , this will be the name of the ui component and you need to specify the key , which will be the value of the ui component that you want to reset example see the full example in github action jigx actions \ children \ type action reset state options title reset state of the form state =@ctx components form state data reset state onpress/onchange reset state action used on the list as onpress or onchange action, to reset state of the component you can specify instanceid, this will be the name of the ui component and you need to specify the state , which will be the value of the ui component that you want to reset example see the full example in github onpress jigx onpress type action reset state options state =@ctx solution state onpress key onchange jigx onchange type action reset state options state =@ctx solution state onchange key