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
Ramesh VaratharajRamesh Varatharaj 

Related list button options for LUX

Team, need guidance. We currently have a requirement to allow opportunity creation only from contact related list. By doing so, we are setting lead source and another custom field to map with contact record values. In classic, we were using URL hacks. As the URL hacking does not work in LUX, i am temporarily using below options. Are there any better option?
1) Action button in contact page (not to our liking as we are used to related list buttons, and lead source is a picklist that cannot be mapped directly to related contact's picklist value. So i am using process builder to udpate post the create event)

2) Custom VF button on opportunity with a custom extension class which sets the predefined values as required. SInce the LUX support VF button, this supports our need (but we would prefer a standard page than VF page where ever possible)

Thanks,Ramesh