Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Truncating Entry

Explorer ,
Jul 18, 2017 Jul 18, 2017

Hi is there a way to truncate an entry made in the text box? For instance, Jane would be J.

227
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 18, 2017 Jul 18, 2017

Are you talking about a Text Entry Box? When would you want truncating to

happen?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jul 18, 2017 Jul 18, 2017

When it passed the variable.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 18, 2017 Jul 18, 2017

??? 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jul 18, 2017 Jul 18, 2017

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 18, 2017 Jul 18, 2017
LATEST

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Help resources