Multi step wizard Step Identifications and best event to use

Hi everyone.

I have a multi step form, and I want to trigger some events like calculating final prices based on virtual select options on previous step. I am struggling with couple things. Bringing the value of the select field from the previous step, and triggering the event on the right step.

sc_get_wizard_step() == ‘’ seems to work for the last step, and can work with onRefresh or OnScriptInt.

sc_get_wizard_step() == 0 also seems to work onLoad event.

But if I want to trigger the event on sc_get_wizard_step() == 2, it is not working for me. Even doing a simple echo “some text” is not getting triggered on the right step.

What am I doing wrong? Please any help is very much appreciated. Thank you!

I put it in onValidate event