Expand my Community achievements bar.

SOLVED

Regex format not working properly

Avatar

Level 2

I created regex format in textfield and numberfield.In numberfield it works well but in textfield area its not working. i don't know where i did mistake.

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

hi @hagrid,

Can you check the resourceType of textfield ? Is it coralui2 or coral ui 3 ?

You can use colorpicker as well for this instead of regex. Please refer this

Nikita___Garg_0-1670217993782.png

View solution in original post

5 Replies

Avatar

Community Advisor

Hi @hagrid

What is your use case (expectations) .pls explain more .

Thanks

Avatar

Level 2

Hi @KNan Web capture_4-12-2022_122327_localhost.jpeg

I used these properties but i didn't get output in my page.

Avatar

Correct answer by
Employee Advisor

hi @hagrid,

Can you check the resourceType of textfield ? Is it coralui2 or coral ui 3 ?

You can use colorpicker as well for this instead of regex. Please refer this

Nikita___Garg_0-1670217993782.png

Avatar

Employee Advisor

hi @hagrid ,

Please refer to @arunpatidar comments in the post Solved: Touch Ui Dialog || Regex validation of Dialog Fiel... - Adobe Experience League Community - ...

which i have pasted here as well

"Hi,

Please check coral3 properties at TextField — Granite UI 1.0 documentation

Coral 2 at - TextField — Granite UI 1.0 documentation

I don't think so, there were regex validation supported by Adobe for touch UI in coral2.

Could you please share the link where you are referring?

granite:data node is used only to add custom data attribute for touch UI dailog fields.

In coral2, that was achieved by adding properties in field node itself. "

Hoping that this helps.

Thanks,

Nikita Garg