Post Closed
6801
Views
9
Comments
How to add custom HTML code to the OutSystems WebPage
Question

Hi I am new to the OutSystems. Is it possible to add our custom html code directly to the OutSystems web page, by copy and paste?. If possible , kindly guide me with the procedures.

2020-09-15 13-07-23
Kilian Hekhuis
 
MVP

Hi Prakash,

It is possible to add HTML code (see below), but I'd urge you to be careful with it, as it can screw up the generated HTML code. Why do you have the need to add custome HTML?

As for how it's done: add an Expression at the location you want the HTML added. Set its Escape Content property to False. Set the HTML code as Value (or a Text variable that contains the HTML code).

2022-01-17 05-19-27
Kavita

external-html-page.png
2021-05-21 09-12-32
Purva Kumbhar

Hi ,


so can we use here <html> to </html> All tags?

2020-09-15 13-07-23
Kilian Hekhuis
 
MVP

Hi Purva,

Of course not, you cannot just create an entire custom HTML page. It would defeat the purpose of using OutSystems.

Also, you replied to a four year old topic, which you really shouldn't do. I'm going to close it now.

2018-08-06 13-40-17
Ramakrushnarao Seera

Yes, you can do just write your html stuff into expression and make "escape content" property to No. and replace double quotes with single codes. then that should be works fine 


Thanks,

Rocky

2018-08-26 20-34-32
Pankaj pant

Prakash Ramasamy wrote:

Hi I am new to the OutSystems. Is it possible to add our custom html code directly to the OutSystems web page, by copy and paste?. If possible , kindly guide me with the procedures.


Hi Prakash, 


Try to use as much as an outsystems widget, for example, you need a div use container instead of  HTML code why I am telling this bcoz if you use an expression for your HTML code you are not supposed to see the visual in service studio so I will recommend you to use the widget.


if you are not really looking for visuals try to use any HTML code inside the expression and replace all the double quotes to single quotes. but it will render only at the run time  you will not see the actual result at service studio


Regards,

Pankaj Pant

2018-11-06 14-26-44
Suraj Borade

Hi Prakash,

Is your problem solved or do you need more help?

2020-01-31 12-59-29
Hafiz Shaheed

not working like image any buddy have a video HTML template used on outsystems 

Shaheedkhan336@gmail.com

2020-03-01 17-52-33
Nikhil Gaur

Hafiz Shaheed wrote:

not working like image any buddy have a video HTML template used on outsystems 

Shaheedkhan336@gmail.com

Image posted by Kavita has everything mentioned in it. Just make sure that you follow each step correctly. Also please double check that you add you string in double quotes inside expression and if your help also has double quotes then use escape characters for them otherwise it will break the string which will lead to error.