UI Macro(button) Opening a new record?

urmilla
Kilo Guru

Hi All,

We have a requirement to dynamically display buttons based on conditions.

Steps we have performed to get this done.

1)Created a UI Macro & Formatter

2)Created client templates based on conditions.

3)Opening the Email Template using popupOpenEmailClient.

However, whenever the email client window opens onclick of the button, a new record for the table is opened thereby the field where we set values which in turn should open the correct template gets reset.

I figure there is something wrong with the macro code I have chalked up. Kindly guide. Attaching the code snippet.

find_real_file.png

1 ACCEPTED SOLUTION

damianjeszka
Giga Contributor

Hi,



Try this:


onclick="send_san(); return false;"



Regards,


Damian Jeszka


View solution in original post

2 REPLIES 2

damianjeszka
Giga Contributor

Hi,



Try this:


onclick="send_san(); return false;"



Regards,


Damian Jeszka


Thank You Damian. This worked.