Thomas
March 13, 2023, 6:36am
#1
Hello I want to show email address value in WF email. But it prints just
E-mail: [object Object]
I’ve tried do script:
doo.workflow.runningData.GeneralEmail = doo.model.ADDR_email.value;
and then:
**E-mail:** ${doo.workflow.runningData.GeneralEmail || ''}
But it doesn’t work too.
How can I show email address properly? Thanks.
micu
March 13, 2023, 7:39am
#2
Hi Thomas,
doo.model.ADDR_email.value contains an object. (as you can see in the email)
The object contains a value in href property, so you want to change your code to
doo.workflow.runningData.GeneralEmail = doo.model.ADDR_email.value?.href;
(please do not copy the code from here as it contains some hidden formatting)
You can find data types documentation here:
Regards
Michal
Thomas
March 13, 2023, 3:20pm
#3
Thanks. That works perfectly.