Technical Forum
Ask questions. Discover Answers.
cancel
Showing results for 
Search instead for 
Did you mean: 

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

179955
Altostratus
Altostratus

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

 

 

0691T00000CBQWhQAP.jpg 

 

3 REPLIES 3

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

 

0691T00000CBVCSQA5.png 

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

179955
Altostratus
Altostratus

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

thank you for sharing