Ionic show submit form in iframe

hi guys i want show post form in iframe. this is worked in html page but not working in ionic html page

<ion-content padding>
    <form id="form1" target="myIframe" method="post" Action="https://ikc.shaparak.ir/TPayment/Payment/Index">

        <input  name="token" value="{{pasargadModel.clientToken}}" />

        <input  name="merchantId" value="{{pasargadModel.merchantId}}" />

        <input  name="PaymentId" value="{{pasargadModel.PaymentId}}" />

        <button androidButton class="btn btn-primary nexus" type="submit">
            <i class="fa fa-credit-card"></i>
            اتصال به درگاه
        </button>

    </form>

    <iFrame src="" name="myIframe"></iFrame>

</ion-content>
2 Likes

Hi!

Did you find a way to solve it?

Should the form be inside the iFrame tag if you want the form to be inside the iFrame