Question
JPMC
IN
Last activity: 18 Oct 2024 3:05 EDT
Way to customize OOTB character count
If section is configured with text area and under presentation tab we have Display character counter option selected as Yes. We will have remaining characters text displayed with configured max characters as follows (For 1999 Max character configured text area)
Is there any way to customize the character count calculation to support Unicode text calculation i.e. multi language length calculation.
-
Reply
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Eclatprime Digital Private Limited
AU
Hi @SanthoshRanga,
I think You can enhance the functionality of the character counter in the section by including custom JavaScript to override or extend its existing behavior
.I hope it works
Thanks
Raja
Updated: 24 Sep 2024 4:42 EDT
JPMC
IN
@Koti Raja Are you aware of java script function that needs to be overwritten or extended, as OOTB function needs to be skipped from being called and custom function needs to be used.
Eclatprime Digital Private Limited
AU
Hi @SanthoshRanga,
Sorry, I didn't get an opportunity to work on this requirement, I will check and give you the code. If worked.
If you know any java developer ask him the code and use it.
Thanks
Raja
JPMC
IN
@Koti Raja We are not looking for java code, we are looking for rule/file that needs to be overiden.
We have the code ready. Just need place to plugin.
If you come across any, let me know. Thanks in advance.
Truviq Systems
IN
Hi @SanthoshRanga,
There is one OOTB Function named pzGenerateTextArea.
You need to customize the above-mentioned function.
Thanks,
Yaswanth
JPMC
IN
@Yaswanth Manda Thanks for the pointer.
Able to find the line of code which needs an update
assembler.addCode("\n\t\tint remCharCount = " + pyMax + " - activeValue.length();");
But rule seems to be internal and final one with pz name. Not sure on how to move forward on this.
Truviq Systems
IN
@SanthoshRanga Create a new control and function according to your requirement utilizing the Out-Of-The-Box (OOTB) code.
Updated: 25 Sep 2024 8:29 EDT
JPMC
IN
@Yaswanth Manda I don't find any trigger point of the function pzGenerateTextArea that you have specified. Its neither mentioned in text area control nor any stream rules.
Updated: 18 Oct 2024 3:05 EDT
JPMC
IN
Still looking for an update on this use case