Forum Discussion

179955's avatar
179955
Icon for Altostratus rankAltostratus
Feb 22, 2021

Automatic Selection in Decision box after a brief amount of time ( 5-10sec) on the Decision Box page

Hello,

 

Below attached my APM workflow.

 

I want F5 APM to automatically choose option 1 in the decision box after the user fails to choose option 1 or 2 in a stipulated time ( as per the diagram) if the user fails to make a decision within the time limit ( 5 seconds).

 

User Login

The user views a beautiful decision box to choose from. (Option 1 or 2)

The user gets confused and rubs his head for 5 or 10 seconds

F5 understands the user is confused and chooses Option 1 on his/her behalf.

The user is happy after seeing the logon page.

User thanks F5

 

 

 

 

  • It works as expected when configured as below. Setting timeout will make sure the decision box 1 is chosen automatically after 10 seconds.

     

    function OnLoad()

    {

      setTimeout( function(){

        SubmitResult(1);

      }, 10000);

      try{

        if ( externalWebHost.hasWebLogonNotifyUser() ){

          externalWebHost.WebLogonNotifyUser();

        }

      }catch(e){};

     

      window.sessionTimeout = new APMSessionTimeout(sessionTimedOut);

    }

     

    function SubmitResult(choice)

    {

      var f = document.getElementById("hidden_form");

      f.my_result.value = choice;

      f.submit();

    }

     

    Regards,

    Azhar

  • Hi Azhar,

     

    if you can change it, you can change it here:

    Access ›› Profiles / Policies : Customization : Advanced >> /Common/YourProfileName >> Access Policy >> Decision Pages >> Decision Box >> decision_box.inc

     

     

    Probably you can do a pre-select there and add a timer. But I am not a developer, I just know the place not code.

     

    Best of luck

    Daniel