Skip to main content
Participant
Oct 21, 2019 12:21 PM UTC
Question

Leading Zeros in Captivate

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.

    This topic is closed to new replies. Start a new post to keep the conversation going.

    3 replies

    Stagprime2687219
    Legend
    Oct 22, 2019 12:08 PM UTC

    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.

     

    Translate
    Lilybiri
    Legend
    Oct 22, 2019 8:02 AM UTC

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

    Translate
    Stagprime2687219
    Legend
    Oct 22, 2019 12:47 AM UTC

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

    Translate