Forum Discussion
Create 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.
Is there way to insert some HTML dynamically based on the contents of an iRule or iFile? I dont see messageboc or decision box helps here because I need this to be enabled as a warning pop up.
Thanks.
-Jinshu
6 Replies
- Tosin_Omojola
Altostratus
Hi Jinshu, What version of APM are you using? I've seen this on 11.4 - 11.6 (those I've worked on) In the VPE, click the + before the Logon Page select the General Actions (I'm sorry I don't remember the exact tab name but it's the last tab on the right "General Something") tab. In the list of actions on that tab, you would find Decision Box, Message box and other items there. Cheers!
- Jinshu
Cirrus
Hi,
F5 is running with 11.5.3 version.
is it possible to create it an separate action rather than the decision box? I think decision box is something populated in the form field. I might need this to be populated in the centre of the page.
-Jinshu
- Tosin_Omojola
Altostratus
Well, the info displayed in the decision box is displayed as is, on the left column. I wouldn't know if you could have it show up in the center of the page. Check Access Policy --> Customizations for a list of preferences you could customize to your taste on the APM. And, I don't think you can publish anything separately to show up on the page in the course of execution of the access policy. it has to be within the Start --- End (Deny/Allow) line in the VPE
- Jinshu
Cirrus
Hi,
I would be needing something like this. This should be some text in the right-hand pane of the initial screen with an ”OK” button below it. Forgive the artwork/colours, but this sort of thing...
-Jinshu
- Seth_Cooper
Employee
Would it work if you have a logon page with the legal text on the right but on the left you had the username and password fields along with a checkbox that says "I agree with the Legal Notice"? The user would have to check the box along with provide their username and password to be allowed to proceed further. If the check box isn't checked then the go directly to a "DENY" page.
Would this work?
Seth
- Seth_Cooper
Employee
I 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
* 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
