Forum Discussion
Jinshu_134425
Nimbostratus
Sep 21, 2015Create a Warning message box in APM policy before Logon Page
Hi,
I would like to display some static text upon the logon page to our users. Sort of a warning that if they proceeded with their logon the site should be compliant with the company policies. ...
Seth_Cooper
Employee
Sep 22, 2015I looked at this again and I have it where when you click "Logon" then you get a javascript popup that asks "Do you Accept the Terms?" and then depending on if you click OK or Cancel you either get the form submitted or the form doesn't submit.
You can take the function below and replace it in your logon.inc in the advanced customization section for your policy. Modify the "confirm" and "alert" boxes as needed. This is from an 11.6.0 HF-5 box.
function masterSubmit(form)
{
if(confirm('Do you Accept the Terms?')) {
alert('You are very brave!');
if( !verifyNewPassword() /* || ... */){
return false;
}
OnSubmit(); // this required by edge
if (globalRestartOnSubmit) {
try {
window.external.WebLogonAutoLogon = (("" != globalInputs[0].value) && ("" != globalInputs[1].value));
}
catch (e) {}
// restart session
window.external.WebLogonResetSession();
return false;
}
disableSubmit(form);
return true;
} else {
alert('A wise decision!');
return false;
}
}
Let me know if this will work for you or not.
Seth
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects
