You need to sign in to do that
Don't have an account?
Bhargav Surapaneni
Popup alert on team member birthday or anniversary
I want to create an popup alert on team members birthday/anniversary(birthday and anniversary are fields from user object). How to create such popup when we login.
Thanks in Advance
To Create an Automatic Birthday Email Please refer the salesforce help document.
- https://help.salesforce.com/articleView?id=000181218&type=1
- https://success.salesforce.com/answers?id=90630000000gm6hAAA
Hope it will be helpful.Regards
Rahul Kumar
Birthday and anniversay are dates field from user object so for this first using soql query get the both field in one list in apex class.
Create one method and checked if the both field are same as the today date then create one alert message in the method.
Add the class in the vf page and no need to write any code in the vf page.
After that on Home Page Components create one visulaforce component and add that vf page in the component.
Add that component in the home page layout.
So after this when you will login in the org code check the date field and the today date and on the basis of vf page it will call action and show the alert popup or you can create popup in the vf page also.
This is the apporach please let me know if you need any other help.
Regards,
Gyanender Singh
If i had understood your question currently,then you want to open a popup when the current day is user's birthday on opening the vf page
Vf Page:
controller :
For this code , you have to create a custom field called birthday on your user object.
Let me know if you need further help.
Thanks and Regards,
Shiva RV.