Adding Errors with JS

Ok. So this is a custom Wizard Step button. You should be able to call the original code posted above without all the stuff I just said :slight_smile: Make sure that when you go to your Page Title component, that its “Unique Id” attribute is set to something like “MyPageTitle”, and that in your code below you are replacing “MyPageTitle” with whatever the Unique Id is set to. Then your Snippet button should be able to access this Component as posted above:

var $ = skuid.$; var pageTitle = $('#MyPageTitle'); var editor = pageTitle.data('object').editor; editor.handleMessages( [ { message: 'This is a regular message, should be in blue' }, // Since this is a duplicate, it should not be displayed twice { message: 'This is a regular message, should be in blue' }, { message: 'This is a Warning message, should be in yellow', severity: 'WARNING' }, { message: 'This is a Error/Fatal message, should be in red', severity: 'ERROR' } ] );