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

Execute Javascript Button to Display Alert that can be Acknowledge Prior to Proceeding

I have a custom javascript button on the Opportunity for "quick-creating" a case with a bunch of information (lookup fields, record type, etc.) pre-filled in on the case creation screen. 

What I am trying to do is have an alert appear upon clicking if it is determined that a case for the same opportunity was opened within the past 'x' days. Ideally, this would then present the user with the option to 'Cancel' or 'Proceed' with the latter click taking them to the case creation/edit screen with the aforementioned values inputted.

My gut is telling me that this is going to require some apex triggers and potentially a VF page, but just wanted to see if there is some other (easier / capable of being done in-house) resources to achieve this. 

Thanks in advance!
NagendraNagendra (Salesforce Developers) 
Hi Brenzo,

May I suggest you please check with below links from stack overflow community which might help you to accelerate further. Best Regards,