Using Regular Expression Validators in Visual Builder by Shay Shmeltzer


Oracle JET offers a set of validators that you can use to do client side validation on data the user is entering in a form. In this short blog I’ll show you how to use it in a Visual Builder form. You can learn more about JET validators looking at the JET cookbook – for example here. Before you go too deep looking into the JET code samples, make sure you are using the correct cookbook for the JET version used in Visual Builder. Right now (Jan 2020) VB is using JET 7.1.1 (you can see this in the about box in Visual Builder). So you’ll want to look at the parallel JET version of the cookbook, which you can find here (play with the version number in the URL to get to other versions such as 720).

Now you can look at the JavaScript piece of code to see how a validator component is constructed. For example in the regular expression validator you’ll see a piece of code that looks like this and returns a validator type object: Read the complete article here.

Developer Partner Community

For regular information become a member in the Developer Partner Community please register here.

clip_image003 Blog clip_image005 Twitter clip_image004 LinkedIn image[7][2][2][2] Facebook image Meetups

Technorati Tags: PaaS,Cloud,Middleware Update,WebLogic, WebLogic


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.