To open a different Client Email Templates through different buttons(UI Macros)

urmilla
Kilo Guru

Hello,

What I essentially need to implement are multiple buttons within the same form next to different sets of fields to send emails , each of which should open a specific email template.

Although I can provide conditions on the email client templates to have certain values from the form to determine which email template should be opened. But this will get implemented across the other buttons aswell.

I am looking at possible solutions which will enable me to open a template from the button and it being independent of any field values.

I am using   popupOpenEmailClient . Is there a way to embed the email template within this?

Thanks,

Urmilla Dhar

17 REPLIES 17

Code.JPGHi.



PFA code.


Sam179
Tera Contributor

I have two buttons and two templates.

template_1: it has email_field set to "To" field in the email template

template_2: it has dest_email set "To" field in the email template

how can I call templates in the url? I have onclick() working and emailpopup working but can't set the "To" field. Can you please help?

now_dev
Mega Expert

Thanks Urmilia for quick response.


I believe the way I declared condition in my client template is incorrect as nothing is coming in logs. Would it possible for you to share your client template as well.



Thanks a lot


Can you share how you have declared the condition? There is a condistions filter in the client template which can be used as is used n other forms.


now_dev
Mega Expert

I am unable to see any condition field. Below is the condition I have written but template is getting open.


Below is the field I have created u_action_type with values 'Forward' and 'Send'



find_real_file.png



Below is the screenshot for client template.





find_real_file.png



I have tried using condition field also but still my template is coming blank. Thoughts?