Items API Events
masking:changed
Fires when masking mode is toggled on the Question.
You would want to be notified about this event firing, because you may want to update your application interface to reflect the current masking state, for example.
Examples
itemsApp.question('[my_response_id]').on('masking:changed', function (state) {
console.log('Masking mode is now:', state);
});
Callback arguments
-
state boolean
The new masking state.
truemeans that masking mode has been enabled.falsemeans that masking mode has been disabled.
Versioning
Version added: v2026.2.LTS
Related articles
- The
masking()method, which toggles the masking state. - The
isMasking()method, which returns the current masking state.