How to complete a user input task automatically ?

Hello,

I wanted to know how a user input task can be completed automatically. This user interface has a message and submit button (value set through submit rule input). By default the submit button (rule input is set as False), trying to find a way to set this as True. I have tried below options/alternatives. Please review and help. Thank you.

1. Set a timer on user input task - this approach works fine but user gets a warning message in browser that task cannot be completed. This message appears when timeout happens. How to get rid off this message ?

2. Tried below code in user interface to set submit as true based on local variable that gets refreshed every minute. With this code local variable gets updated and local!timeout variable changes to TRUE but a!save doesn't work. 

a!localVariables(
      local!startTime:now(),
      local!value: a!refreshVariable(
            value: now(),
            refreshInterval: if(local!enableTimer, 1, null)
        ),
       local!timeOut: if(local!value <= local!startTime,
               false,
               true
       ),
       {
             a!buttonLayout(
                      primaryButtons:{
                                 a!buttonWidgetSubmit(
                                            label:"Click to Homepage",
                                           saveInto:a!save(
                                                      ri!submit,
                                                      local!timeOut
                                           ),
                                        
                                )
                      }
           )
    }
)

Thanks

  Discussion posts and replies are publicly visible