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.
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.
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
Maybe this asset/component can work for you
https://www.outsystems.com/forge/component-overview/7239/injecthtml
Kind Regards,
Márcio
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