Highlighted

Leading Zeros in Captivate

New Here ,
Oct 21, 2019

Copy link to clipboard

Copied

Has anyone found a way to keep leading zeros when displaying a variable in Captivate? I've tried everything I can think of from advanced actions, java scripting, etc.

Views

38

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Leading Zeros in Captivate

New Here ,
Oct 21, 2019

Copy link to clipboard

Copied

Has anyone found a way to keep leading zeros when displaying a variable in Captivate? I've tried everything I can think of from advanced actions, java scripting, etc.

Views

39

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Oct 21, 2019 0
Advocate ,
Oct 21, 2019

Copy link to clipboard

Copied

In the past, where possible, I have tried to render the numbers as strings.
Do you have a specific example?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Oct 21, 2019 0
Most Valuable Participant ,
Oct 22, 2019

Copy link to clipboard

Copied

Use JS to convert the number in a string, displaying all characters.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Oct 22, 2019 0
Advocate ,
Oct 22, 2019

Copy link to clipboard

Copied

If you are simply assigning the value - the difference is whether or not you use quotes.

If you want to do some other sort of manipulation with them - that can change things.

That is why I asked for an example so I could try to be a bit more specific.

 

clipboard_image_0.png

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Oct 22, 2019 0