Skip to main content

#Salesforce Developer  #Integration

 

Hi all,

 

there is an Iframe in SF which is not working any more. Normally the Iframe opens the app with some data and then it'll do some actions if the data is submitted.  Now, I would like to replace it with an external URL but I'm not sure how to send the token and some data with it instead.

 

this is the current code.  Can you please help me to solve this question? 

 

thank you!

 

<aura:if isTrue="{!v.selectedOption== 'xxx'}">

<span id="plainFormData" style="display:none;"><aura:unescapedHtml value="{!v.salesWrapper.plainFormData}"></aura:unescapedHtml></span>

<form id="nonjava" name="nonjava" method="post" action="{!v.sw.xxx.Endpoint__c}" target="formContainer">

<input name="postdata" id="nonjavapostdata" type="hidden" value="{!v.sw.formData}"/>

</form>

<div class="slds-align_absolute-center">

<iframe id="formContainer" name="formContainer" width="100%" height="400px;" hidden="true"/>

</div>

<div class="slds-align_absolute-center">

<input id="formSubmitButton" class="slds-button slds-button--brand" type="button" value="Select" onclick="{!c.submitForm_c}" />

</div>

</aura:if>

1 个回答