Skip to main content
Nintex Community Menu Bar
Question

Wizard Skuid Page Error Issue

  • July 10, 2024
  • 3 replies
  • 8 views

Forum|alt.badge.img+6

Hi,

I have a wizard of 3-steps.

STEP1–>STEP2–>STEP3

I have added the below code (in action snippet for button on step1) to show error message when no row selected for a table in STEP1.

var table = $(‘#CatalogTable’),list,items;var editor = table.data(‘object’).editor;
if (table.length) 
{
   list = table.data(‘object’).list;
   items = list.getSelectedItems();
}

if(!items.length)
{
editor.handleMessages([
        {
            message: ‘Please Select an Offer!’,
            severity: ‘ERROR’
        }    
   ]);
}

else { editor.clearMessages(); }



When I come back to the STEP-1 by clicking on back button from STEP-2, 
still the error message being shown on page.

How could I get rid of this ?


Thanks in advance!

This topic has been closed for replies.

3 replies

Forum|alt.badge.img+17

Can you add a snippet as an action to your back button to clear messages from the editor?


Forum|alt.badge.img+6
  • Author
  • July 10, 2024

Hi Raymond,

var table = $(‘#CatalogTable’),list,items;var editor = table.data(‘object’).editor;
editor.clearMessages();

I added above lines as an action snippet for back button.

It works!!!

I thought there could be some other way (declarative) than having a snippet to clear messages

Thank you!


Forum|alt.badge.img+17

Glad it worked!