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
SjaleelSjaleel 

Custom Button related

Dear Developer,

 

I have a standard page for my object  Utilization Report, its has got a custom button that generates a document report. The button is executed by Java srcipt. The condition set for the button to generate the report is that the status on the UR page should be set to approved.

I need to add one more condtion to it that is Utilization Report is the parent  obeject for Utilization Report List Item. This list Item has few list values and data associated to it eg. Engine, APU, Landing gear,..etc. An error should be generated if the user does not create a URLI for the engine hours/cycles, APU hours/cycles, Landing gear hours and cycles, if the button is clicked . Or  is there a way to hide the send email button if no URLI was created?

 

Regards and thanks in advance

Safiya

 

Andy BoettcherAndy Boettcher

Hiding the button - not really through native code.  I would attack that one through checking for your business logic via APEX and changing record types - one layout with the button, one without.

 

-Andy