Is it possible insert javascript into HTML document?

If you have questions or if you want to share your opinion about Aware IM post your message on this forum
Post Reply
cishpix
Posts: 183
Joined: Fri Nov 06, 2015 5:07 am
Location: Indonesia

Is it possible insert javascript into HTML document?

Post by cishpix »

I'm still create a HTML document that will send as email. I want to insert a javascript condition to check an attribute. I try like below code but failed

Code: Select all

  # if(data["Attribute2"] <> '') { #
     <<BusinessObjects.Attribute1>>
  # } #
Any ideas?
Regards,

Suwandy
-----------------
Kisaran - Indonesia
aware_support
Posts: 7532
Joined: Sun Apr 24, 2005 12:36 am
Contact:

Re: Is it possible insert javascript into HTML document?

Post by aware_support »

If it's an HTML document you cannot insert Javascript there. But you can insert conditional expressions using Rule Language (referred objects must be in Context):

<<IF Object.Attribute='abc' THEN SHOW SECTION_START>>
HTML code
<<SECTION_END>>
Aware IM Support Team
Post Reply