It does not seem possible to include embed code into a form using standard tools. I would like to know, is this possible some other means? For example, the ability to embed a YouTube video as an embed object.

Secondly, is this something that can potentially be added such as a form row for script or embed similar to adding an HTML row?

Never tried it but can this not be done inside an html attribute on the form?

Try this

Create a BO - call it, lets say Standard_text. Attributes Name, Subject,Content.

Make the content plain text and set as html.

Create a new object for standard_text. In the Content attribute, switch to "Source Edit" and in here paste your embed code (here's some you can use)

iframe width="560" height="315" src="//www.youtube.com/embed/UK2XdN50H6M" frameborder="0" allowfullscreen> /iframe

I own this so its ok to use. I've had to strip out the chevrons because it wouldn't post with an embedded iframe - but I'm sure you know how to put them back.

Don't forget to switch back from Source Edit view otherwise it won't save.

You should now see your embedded video inside the content attribute

From here you can do what you want with the BO, even send it as an email to potential customers etc

PS .... better to embed a playlist rather than an individual video off Youtube - otherwise (as you'll see from mine) you'll end up with a tiled list of other peoples crap some of which might be your competitors :oops:

I have no intent of embedding a video. Actually, I'd like to create better help. I'm looking at a help tool called HelpIQ with which I can make help screens in pop-up and lightbox windows. From a design standpoint, I prefer this to simply linking to a help page on the web somewhere. But I think the ability to embed things like this would be a ++.

PPS ...

One of the things you can now do is use the BO Attribute "Content" inside an html attribute on your form, as in

Here is my video <br><br><<Standard_Text.Content >>

All Tested, all working ... Enjoy

Hmmm, well the above methodology works for some kind of embedded objects at least. So you might like to try your own embed code instead of the youtube video

can't use <script> but iframes work.

Hi Kklosson,

I've managed to get modal windows working with buttons in a HTML cell.

Maybe this is something you can use as an alternative.

Cheers

You cannot use the script as is inside any HTML sections in Aware IM.

Please understand that this is NOT plain vanilla HTML but HTML with Javascript that needs to be executed. These snippets of the code that people publish assume that you embed them into standard HTML pages. But Aware IM is not your standard HTML page.

HTML sections in Aware IM such as HTML cells in forms and HTML in visual perspectives can only embed raw HTML - they will not execute Javascript. To execute Javascript you need to either attach Javascript handlers to the onclick event of the HTML elements you are inserting or use the Advance button on forms, form sections etc.

All inclusions of Javascript files (first few lines in your script) need to be added to your AwareIM/Tomcat/webapps/AwareIM/startup.html files. By the way the specific files for jquery and lightbox are automatically included by Aware IM if you use the Aware IM lightbox feature in 5.7

The script in the middle of your snippet needs to be added to the onlick event of the link rather than executed explicitly.

You do need to understand how Javascript works in order to do all of this.

I think the issue is that onclick assumes a manual event trigger (button click), but much of what people might want to do with a script would be nice to have automatically trigger i.e. At render, onload, mouseover, etc. in the original example, he is looking to embed video... So a button kind of defeats the purpose.

That said, i have successfully embeded video <object> and <iframe> So that might work for klosson's need here

Rennur wrote

Hi Kklosson,

I've managed to get modal windows working with buttons in a HTML cell.

Maybe this is something you can use as an alternative.

Cheers

Rennur, how did you set this up? Do you mind sharing "code"?
Thanks

This modal is part of Bootstrap and the modal in the post is used from the website.
http://getbootstrap.com/javascript/#modals

Go to Customize

Tick only:

Common CSS

  • Buttons
    Components
  • Glyphicons
  • Button groups
  • Navs
    JavaScript components
  • Modals
    Utilities
  • Basic utilities
  • Responsive utilities
  • Component animations (for JS)
    jQuery plugins
  • Modals
    Magic
  • Transitions

1) Click on Compile & Download

2) Unzip the files to C:\AwareIM\Tomcat\webapps\AwareIM\modals. (create modals folder)

3) Insert links to locations of the .css & .js files you just unzipped in C:\AwareIM\Tomcat\webapps\AwareIM\Startup.html

4) Insert the example modal HTML into AwareIM HTML cell

Cheers

Thanks for sharing Rennur.

2 years later
10 years later