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

Using the pattern attribute on oj-input-text element

edited Sep 2, 2018 8:39PM in Visual Builder

Summary

Is there any support for the pattern attribute for text inputs

Content

HTML5 introduced the attribute pattern for text (and other) input types.  It takes a regular expression then validates the form accordingly (similar to required attribute).  I see it mentioned https://docs.oracle.com/middleware/jet202/jet/reference-jet/oj.ojInputText.html#pattern but it doesn't seem to work with an <oj-input-text> tag.  Instead I had to create a custom validator.  

 

I have two questions.

1. Is this attribute going to be supported in the future

2. What is the harm in me changing the <oj-input-text> tag with a normal Oracle Jet tag so I can take advantage of this attribute?

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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