Copy link to clipboard
Copied
Please help. I am creating a conditional advanced action for two buttons. It's set up to hide a knowledge check (quiz) button until the two learning paths have been completed. I create the advanced action. and save it. The action and script saves. As soon as I hit the close button the variable selected for the increment command goes blank on both the IF and ELSE statements, which makes this advanced action unable to execute. Why does this keep happening. Is there something I am doing wrong or is there a bug in the conditional advanced actions?
Copy link to clipboard
Copied
Hello !
I think you have to change either the name of the variable or of the state object which have the same name ? (var_Product_Button)
😉
Copy link to clipboard
Copied
I agree with Dirlo that you should never have an object and a variable use the same name.
However, I would also suggest that you use the Assign action and set the variable value to something that clearly indicates the visited status of the button. Using the Increment action can sometimes cause you grief because there may be times when the variable value doesn't turn out as you expect.