Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
SOLVED

What property do I need to add to enable the coral characterCount with a textfield?

Avatar

Level 5

Hi guys,

I would like to add coral-CharacterCount with maxLength or minLength with a coral textfiled. Could you please help me and let me know what properties do I need to add in textfield to enable the character count?

Coral UI CharacterCount: https://helpx.adobe.com/experience-manager/6-3/sites/developing/using/reference-materials/coral-ui/c...

Thanks!

Rashid

1 Accepted Solution

Avatar

Correct answer by
Level 10

They stated you can use a JSP to use this API.

Reply:

Ah ok, it shouldn’t be a big deal putting it in a jsp.. although I don’t have a post on this

View solution in original post

4 Replies

Avatar

Level 10

Here is the granite/coral text field ref docs - TextField — Granite UI 1.0 documentation

This is the resource type you should use in AEM components - like a component dialog.

Avatar

Level 10

We are checking too internally to see if there are samples of using the main Coral API within an AEM dialog for example.

Avatar

Correct answer by
Level 10

They stated you can use a JSP to use this API.

Reply:

Ah ok, it shouldn’t be a big deal putting it in a jsp.. although I don’t have a post on this

Avatar

Level 5

Thanks Scott,

This is all being generated using CSS. And I think there should be a property to handle this functionality with textfiled, similar to like filedDescription which provide tooltip. It will be really helpful if you consider to fix this in your future release.

Thanks!

Rashid