Skip to main content

handleChangeComplete

{ powrComponent: PowrToggle, passedProps: {

label: sc('formbuilder.settings.customize_submission_notification'),
namespace: 'customAdminEmails',
helpText: sc('formbuilder.settings.customize_admin_emails_help'),
addFormElementPadding: true,
handleChangeComplete: (value, observableStore) => {
// do something with observableStore and value here
},

}, },

var someFunction = (value, observableStore) => { // do something with observableStore and value here }

Case B: passed handleChangeComplete variable function { powrComponent: PowrToggle, passedProps: {

label: sc('formbuilder.settings.customize_submission_notification'),
namespace: 'customAdminEmails',
helpText: sc('formbuilder.settings.customize_admin_emails_help'),
addFormElementPadding: true,
handleChangeComplete: someFunction

}, },

Case C: no handleChangeComplete passed { powrComponent: PowrToggle, passedProps: {

label: sc('formbuilder.settings.customize_submission_notification'),
namespace: 'customAdminEmails',
helpText: sc('formbuilder.settings.customize_admin_emails_help'),
addFormElementPadding: true,

}, },

Case D: not a powr component, does not support handleChangeComplete { powrComponent: 'div', passedProps: {}, innerComponents: [ ] }