function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
b-Forceb-Force 

Showing Custom Modal Dioloug box when Use Login

Guys,

I want to show one Modal Dioloug box (Based on certain conditions) when Any user  login to salesforce Org using Standard Login Page

Bussiness need some thing like that

1) User goes to login.salesforce.com link and enter creditials

2) We want to Show some Modal Dioloug  box like Accept Terms and Conditions  , If he agree then we want to redirect him to INSIDE

ELSE

redirect to /logout.jsp

 

I tried following Approach

Load a frame [Visual force page ] on Home page component and show some modal box,

But it takes some time to load the frame after login (few seconds....)

Inbetween If user click else where (like any Tab ) then he will enter in side the system

 

Please let me know if any other approach for it,

 

 

Thanks in Advance,

Bala

 

 

Best Answer chosen by Admin (Salesforce Developers) 
b-Forceb-Force

Solution Approach,

 

Create a VF page do your functionality in that page

Create a web tab for this page

Add this tab in the User's Default App

Edit the App and set this Tab as Default Landing page

 

 

Thats All,

Bala

All Answers

werewolfwerewolf

You can't really make it show a modal dialog box when you login per se (and that's really annoying by the way), but you can embed a Home Page Component that shows a Javascript alert box (maybe first checking on the session ID cookie so it doesn't show this modal dialog box every time you click the home tab, just when you first log in).  That should accomplish the goal I think.

b-Forceb-Force

that's really annoying ???????

I dont think so..........

 

 

Finally I get it done after spending  weekend into it,

see this demo page http://ba-developer-edition.ap1.force.com/apex/welcome2

It is just demo for you.

 

when user login to our Organization this Type of Modal box will apear .....

 

Let me know if you are interested in code behind ....

 

Thanks,

Bala

b-Forceb-Force

Solution Approach,

 

Create a VF page do your functionality in that page

Create a web tab for this page

Add this tab in the User's Default App

Edit the App and set this Tab as Default Landing page

 

 

Thats All,

Bala

This was selected as the best answer
studzeystudzey

Hi there,

 

It's like this has been sent to me! 

 

b-Force. Is there any chance that you could pass me some of your code so that I can work from it??

 

Thanks (and much appreciated)

 

Regards,

 

STadler

 

ForceDeveloper.orgForceDeveloper.org
@b-Force - I know this is an old post, but I would be interested in the code behind that demo if you have it available to share.
Joachim RahlfJoachim Rahlf

@b-Force - I would also be interested, maybe you can publich or send by E-Mail ? ufo@scsoft.de
ForceDeveloper.orgForceDeveloper.org
One recent update I have found are Login Flows. There is more here - https://developer.salesforce.com/page/Login-Flows and there is also a sample pack available here https://login.salesforce.com/packaging/installPackage.apexp?p0=04to0000000WA6J that contains an Accept Terms of Service login flow.