Is it possible to execute a form post to an external site from an aura component that is exposed in a community page?
Our aura component looks like this
<aura:component implements="forceCommunity:availableForAllPageTypes" access="global">
<aura:handler name="init" value="{!this}" action="{!c.init}" />
<lightning:flow aura:id="flowData" onstatuschange="{!c.handleStatusChange}" />
<form name="paymentForm" aura:id="paymentForm" action="https://..." method="POST">
<input type="hidden" name="ccId" value="123" />
</form>
</aura:component>
and we'd like to do something like this; set our form variables using the output variables from the flow before submit
handleStatusChange : function (component, event) {
if(event.getParam("status") === "FINISHED") {
var outputVariables = event.getParam("outputVariables");
//set form variable using output variables from flow
component.find("paymentForm").submit();
}
}