
Hi all,
So with the roll out of the new contextual emails where composing an email from a case or opportunity will instead pop up the email composer box contextually on the case or opportunity record as opposed to the full email.
I've got some javascript that loads upon email form load. I was just wondering how this would work with the new contextual emails. Will I need to change the script in anyway or will it still work as per normal.
If there's any documentation I can read up on the new contextual emails and how javascript would work with it, that would be great!
Kind regards,
Mike
Hi partner,
If you want to trigger the onLoad event JS function on contextual emails, you should add the events on "Enhanced form", adding the code in "Main form" will not run the code.
For example, I added the following code to Enhanced Email form onLoad event to set a default value to Subject.
When I opened the contextual email form from Account, the onLoad event worked well.
Hope it helps.
Best Regards,
Leo