You need to sign in to do that
Don't have an account?

Custom alert for custom object
I need to a way to have a field on custom objects for an alert that will popup when the record is opened.
What is the best way to go about this?
What is the best way to go about this?
This process will be achieved using a custom field with datatype as a check box and a visualforce page. Please follow the below reference link.
https://www.salesforcetutorial.com/alert-salesforce-standardcustom-object-page-layouts/
Thanks,
Tabrez
All Answers
Can you elaborate on your ask. What is the expected functionality of the field when the alert is popped up?Thanks
This process will be achieved using a custom field with datatype as a check box and a visualforce page. Please follow the below reference link.
https://www.salesforcetutorial.com/alert-salesforce-standardcustom-object-page-layouts/
Thanks,
Tabrez
please follow the links
https://www.salesforcetutorial.com/alert-salesforce-standardcustom-object-page-layouts/
https://trailhead.salesforce.com/trailblazer-community/feed/0D54S00000A9AXxSAN
thanks!!
In addition I created a text field called alert message for the users to enter the text they want to display.
<apex:page standardController="Customobj__c" showHeader="false">
<script>
window.onload = function()
{
if('{!Customobj__c.Alert_Message__c }'!='')
alert('{!Customobj__c.Alert_Message__c }');
}
</script>
</apex:page>