How can I post to an external website and pass values?
Hi,
We have a requirement to have a seamless sign on to an external vendor and pass in 3 parameters.
The vendor did supply the following html for posting - I have it saved as an HTML object, MY_HTML_POST:
<form name="UserCheck" id=”UserCheck” action="https://www.vendorurl.aspx" METHOD="POST">
<input type="hidden" name="key" value="somevalue">
<input type="hidden" name="pwd" value="somevalue">
<input type="hidden" name="uid" value= %bind(:1)>
</form>
I created a page containing a hyperlink (Go To Vendor Website) and with a peoplecode fieldchange event:
ViewContentURL(GenerateScriptContentURL(%Portal, %Node, Record.WEBLIB_MYLOGIN, Field.ISCRIPT1, "FieldFormula", "IScript_MY_HTML"));