496
Views
4
Comments
Solved
How to load a html content on Outsystems Page load
Question

I have a requirement to load and submit a form on Outsystems Page Load .

I have seen that It can be done with Http request Handler Run JavaScript, the same is not working on a Reactive web Data Action(Server Action).
Tried Implementing it on Render but no help.

2025-03-19 01-45-51
Sandeep Kumar Kolli
Solution

Hi @Srinivasa ,

as you included form you might not get this done with some of the components , also you need to submit the form with your HTML content so you need to replace everything in the existing form, try with the below code snippet.

var rawHTML = document.open("text/html", "replace");

            rawHTML .write($parameters.SourceURL);
           rawHTML .close();


With Regards,

Sandeep.

2025-01-15 08-35-04
Vignesh Sekar

Hi Srinivasa ,

We can use JavaScript for load html content to out systems UI in reactive

1. drag and drop empty container where ever you want.

2.assign the name for that container

3. on initialize or any client action  drag and drop the JavaScript

4.pass your container id as input of that JS.

4.$("#"+your_container_id).append("<h1>your html</h1>");


Hope you got an basic idea for HTML Load

thanks,

Vignesh S

2021-06-02 20-50-04
Márcio Carvalho

Maybe this asset/component can work for you

https://www.outsystems.com/forge/component-overview/7239/injecthtml

Kind Regards,

Márcio

2021-09-30 18-38-59
Nuno Ricardo Rodrigues

Hello Srinivasa,

If look on the forge, you have this component:

https://www.outsystems.com/forge/component-overview/145/html-utils

Hope it helps.

Best Regards,

Nuno R


2025-03-19 01-45-51
Sandeep Kumar Kolli
Solution

Hi @Srinivasa ,

as you included form you might not get this done with some of the components , also you need to submit the form with your HTML content so you need to replace everything in the existing form, try with the below code snippet.

var rawHTML = document.open("text/html", "replace");

            rawHTML .write($parameters.SourceURL);
           rawHTML .close();


With Regards,

Sandeep.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.