Hello guys,
I need to find a way to change the form action at runtime.
The screen WebScreen5 is created by default like this:<form method="post" action="./WebScreen5.aspx" onsubmit="javascript:return WebForm_OnSubmit();" id="WebForm1" name="WebForm1">I need to change it to:<form method="post" action="https//www.google.com" onsubmit="javascript:return WebForm_OnSubmit();" id="WebForm1" name="WebForm1">I've tried using the AddPostProcessingFilter action but it seems to only work on the "HEAD" section, not the "BODY". Is there a replacement method?regards
I found that I can do this just by executing some javascript, after the screen has rendered:var thisForm = document.getElementById("WebForm1"); thisForm.action = "https://www.google.pt";
And how did you implement this with OutSystems? I think you can do something with an External URL
I really need to manipulate the body of the html.It's not just a simple navigation that I need.