Client Script - "Click' Button on Purchase Order - Specify "To Contact" or "To Supplier"

Client Script - "Click' Button on Purchase Order - Specify "To Contact" or "To Supplier"

The send email button is unique on the purchase order in that is has an additional submenu to send email "To Contact" or "To Supplier"

It appears that the "click" event in Client script doesn't work correctly, probably because the button click didn't specify which submenu item to use.

Does anyone know how to specify that in Client Script?

var sendEmail = ZDK.Page.getButton('send_mail_related_mod').click();

This works for normal records, but not for a purchase order. The documentation does not specify how to handle this specific button click action on the Purchase Order detail page.

    Nederlandse Hulpbronnen