Featured Categories
-
Lectora®
Lectora® is the most trusted authoring tool in the world. Rock out your creativity! Author courses any way you like. Lectora adheres to best practices for Accessibility and Web Content Accessibility Guidelines (WCAG), offers responsive authoring for eLearning, and publishes to any LMS (Learning Management System).
-
CenarioVR®
Experience virtual reality through CenarioVR®, our training and virtual reality (VR) authoring software that allows you to create immersive learning in minutes! No coding required!
-
Rockstar Learning Platform®
Our Rockstar Learning Platform® has all the features you’ll love. Help your employees be better at their jobs, more valuable to your company, and most effective in servicing your customers.
-
The Training Arcade®
Level up your learner engagement with the Training Arcade®! The Training Arcade is a library of fun, mobile-ready, casual games that can be rapidly customized with your content to create effective gaming!
-
ELB Learning Content
Did you know that our AssetLibrary™ has over 120 million engaging, interactive, and awe-inspiring templates and assets to help you become an eLearning Rockstar®?
Character Counts in Entry Fields

https://www.trivantis.com/blog/lectora-advanced-adding-character-counter-entry-field/
Some of our students are bypassing this character count; we are getting multiple "null" entries in our xAPI results. For testing purposes, I added this character count variable to my screen, so that I could watch the variable change as I typed. (Yes, our students have figured out that they can type 300 letter z's and move on. This is not the issue.)
Problem: If you use Wendy's suggested method - create a separate character count variable - it doesn't matter WHERE I type on the screen. That character count variable is changing. I can click anywhere on the Lectora screen OUTSIDE the entry field, and just poke keys at random. The entry field is empty - but that count is moving - and the page unlocks. This means - I could 100% send an empty Entry field to the LRS... giving me a "null" in my reports. This doesn't happen often - but it happens.
My question!! If Lectora is able to set a maximum character count on an Entry field, WHERE is Lectora saving THAT count? I want the characters to count based only upon what the user actually types IN the field. I want this ONE variable to control them all...yes, like Highlander.
Am I making any sense to anyone?

Comments
-
Try this. Although it doesn't accommodate all the possible keystroke possibilities including arrow keys, backspace, delete, etc ... it will count only changes to the entry field. I'm using a character count of 10 rather than 300 in this example.
Create a variable to hold your character count, i.e. c1 with an initial value of 10.
Add the following actions to your Entry Field:
Trigger: Select/Change
Action: Modify Variable
Target: C1
Type: Subtract from Variable
Value: 1
If: C1 Not Equal To 1 (C1 equals 1 when the learner type the 10th keystroke)
Else: enable the 'Next' button or whatever you want to happen when hitting the keystroke threshold
Like I noted, this won't allow for every possible keystroke but it will force the learner to type in the Entry Field. Unfortunately the triggers available when adding an action to an Entry Field are limited.
0 -
Thank you, Brian!
I think this just may work! I will test to see if I am able to add/subtract certain keystrokes.
Casey0 -
My question!! If Lectora is able to set a maximum character count on an Entry field, WHERE is Lectora saving THAT count?
The maximum length is a property of the field, it's not a variable.
It may be easier to use the length of the entry, instead of counting keystrokes and cope with all the different keys.1 -
*Nerd Alert*
I have to share. I just had a major geek moment. "Tim K replied to my question!" Hahaha!! Every time I have had an issue, I log on to the Forum, and something Tim K writes is very helpful!!
I will open this file, and let you know what I find. Brian's way above is better than what I have been doing, but I would like to avoid having to think about the minutiae of every keystroke. Thank you!!0 -
I need to extend the number of characters. The current limit for number of characters is 2048. I need to extend that. How can I do that? Please help0
-
I would suggest you make this a separate question, rather than adding onto this old thread.mhyden3234 said:I need to extend the number of characters. The current limit for number of characters is 2048. I need to extend that. How can I do that? Please help
0
Categories
- 35.9K All Categories
- 110 ✫ Announcements
- 33.2K Lectora®
- 31.1K Lectora Discussions
- 29K Lectora Desktop
- 2K Lectora Online
- 2K Lectora Feature Requests
- 71 Lectora User Groups
- 27 ELB Learning Content
- 27 ELB Learning Content Discussions
- 343 CenarioVR®
- 204 CenarioVR Discussions
- 139 CenarioVR Feature Requests
- 44 Rockstar Learning Platform®
- 41 Rockstar Learning Platform Discussions
- 108 CourseMill®
- 108 CourseMill Discussions
- 48 ReviewLink®
- 48 ReviewLink Discussions
- 7 The Training Arcade®
- 7 The Training Arcade Discussions
- 938 All Things eLearning
- 39 eLearning Development
- 546 Learning Management System (LMS) Integration
- 333 Web Accessibility
- 1.2K ♪ The Green Room
- 9 Additional Learning Products