Copy link to clipboard
Copied
Hi is there a way to truncate an entry made in the text box? For instance, Jane would be J.
Copy link to clipboard
Copied
Are you talking about a Text Entry Box? When would you want truncating to
happen?
Copy link to clipboard
Copied
When it passed the variable.
Copy link to clipboard
Copied
??? You mean after the TEB is validated or after having clicked the Submit button? You would be able to change the value of the variable (with JS) but it will not be relfected in the TEB field. That is an old pain, I am only aware of being able to do that for HTML5 output with the CpExtra widget by InfoSemantics.
Copy link to clipboard
Copied
Yes, is there a reference for JS for captivating? I've only seen js for alert boxes, but no example for manipulating graphics or variables. Ideally, whatever they input, it would just appear as the first letter after they click submit. Because in our live system Jane Smith appears as Smith, J. Is this what the widget does? But if it doesn't work in flash, it might not be enough.
Copy link to clipboard
Copied
For JS: Learn about the Common JavaScript interface for Adobe Captivate
You could try to hide the TEB and replace it by a Text container which has the value of the variable, after truncating it with a JS function.