Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Can't view Character counter in a field inside Multifield resource type

Avatar

Level 1

Hi All,

 

I would like to know how to bring up the character count for a text field or rich text field that is available inside a component which uses Multifield resource type.

Eg: the below is a component that uses a Multifield resource type

nivedak83512396_0-1633427152261.png

when i click on Add button, the counter should appear for the Head line field:

nivedak83512396_1-1633427190017.png

 

Actually, I have already added the

maxlength="54"

property in the XML. If i click on the add button the counter does not appear. 

But when i edit the component and save it and reopen the same, the counter appears.

 

PFB:

nivedak83512396_0-1633443718586.png

 

I want the counter to appear as soon as i click on the add button.

Please help. Thanks

4 Replies

Avatar

Community Advisor

Hi @nivedak83512396 ,

           You can add properties to the respective field.

Property name is max-char allowed.

 

Kr,

Sanjay

Avatar

Level 1

Hi Sanjay,

SHould i add the property to XML?

Actually, I have already added the

maxlength="54"

in the XML. If i click on the add button the counter does not appear. 

But when i edit the component and save it and reopen the same, the counter appears.

I want the counter to appear as soon as i click on the add button.

Please help.

Thanks. 

Avatar

Community Advisor

Hi @nivedak83512396 

 

What do you mean by counter? If you want the author to know the number of characters allowed, you can add it in the field description.

 

Thanks,

Kiran Vedantam.

Avatar

Level 1

Hi Kiran, Please check my Initial query. I have updated the screen shots again now. in the XML structure i have already added the Maxlength property for the fields. That does not appear when i click on the add button only. Once i make changes and reopen the component the counter appears as shown in that figure.

 

thanks.