Skip to main content
Known Participant
Feb 21, 2023 7:34 AM UTC
Question

How to add the timer into the interface ?

i was creating the question bank application in which i want the particular exam to be end in that specific time so how can i do that ? 

    3 replies

    stefanhelzle0001
    Brainy
    Feb 21, 2023 7:52 AM UTC
    Participating Frequently
    Feb 21, 2023 7:57 AM UTC

    Declare a local variable with the time period and have show when for specific section  in the interface 

    a!localVariables(

    /* specify the time in minutes or hours when you want to end the exam */
    local!flag: now() + minutes * 30,
    local!showWhen: a!refreshVariable(
    value: now() < local!flag,

    /* specify the interval after how many minutes you want to end the exam */
    refreshInterval: 30
    ),
    a!cardLayout(
    showWhen: local!showWhen,
    content:{

    }
    )
    )

    Hope this will work

    stefanhelzle0001
    Brainy
    Feb 21, 2023 7:59 AM UTC

    Give it a try :-)

    Next time, please