Visual Builder

Get Involved. Join the Conversation.

Topic

    Christopher Maggiulli
    Using the pattern attribute on oj-input-text element
    Topic posted September 2, 2018 by Christopher MaggiulliSilver Crown: 22,500+ Points, tagged JET, UI, Web 
    50 Views
    Title:
    Using the pattern attribute on oj-input-text element
    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?