You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

How to call event.preventDefault() to stop selecting a step in Train component in VBCS?

edited 3:04PM in Visual Builder

Summary:

I am trying to use a Train component with some validations in train steps. If the validation gets failed at any step then it should not allow user to select next step. I have tried to follow the below cookbook but is is throwing the below error. Need some guidance to implement this feature. Attached is the action chain and function code for your reference.

Error: Chain TrainBeforeSelectChain failed. TypeError: Illegal invocation

https://www.oracle.com/webfolder/technetwork/jet/jetCookbook.html?component=train&demo=validation

Content (please ensure you mask any confidential information):


Version (include the version you are using, if applicable):

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!