Solved

Skip pages in multi page form based on multi-select choice field?



Show first post

27 replies

Userlevel 5
Badge +13

Hey Thomas,

Perhaps I've done something incorrectly, as it's not working for me:

I was able to get an actual value by storing client ID in javascript variable and then .val() that, but then I'm not sure how to translate that back into changing the css of the field and highlighting it in red. Also, even though it gets a value, it didn't advance the page (though I can see in the logging that valid = true).

Badge +5

Sorry for super late reply. Just got back from holiday. You may have already found a solution for this. 

The one other thing i can see i missed out the return statement for validLandingPage. 

The best way to debug is to bring up developer tool by hitting F12 and set breakpoints so you can see where it has failed. Let me know how you go.

function validateLandingPage()
{
  var validLandingPage=true;
 
     if(!validateText(".mandatoryTextControl_1"))
     {
          validLandingPage=false;
     }
    
     if(!validateText(".mandatoryTextControl_2"))
     {
          validLandingPage=false;
     }
    
     //Insert all other mandatory controls for this page
     return validaLandingPage;
}‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍

Reply