I am writing a zimlet which needs to switch the identity (from field) when a email is composed and populate the other fields if neccessary. I've managed to populate the fields, but switching identities doesn't seem to work.
The code I am trying to execute is:
Code: Select all
var composeView = appCtxt.getCurrentView();
var val = composeView.identitySelect.getOptionWithValue(from);
composeView.identitySelect.setSelectedOption(val);
composeView.identitySelect.updateRendering();
I have also tried using the
Code: Select all
composeView.setAddress("FROM",from);
I have also tried to change the accountName using the Compose Controller but that will send an email on behalf of the account that i wish, which is not desired in my case.
Can you guys help me out switching that value?
Regards,
George.