-
jlabonte76Asked on August 19, 2014 at 9:24 PM
I am attempting to a add a paypal button to my jot form (http://form.jotformpro.com/form/42254955015958) because I don't like how the widget works. The code I past comes directly from the paypal website after creating the button. When I click on the paypal button in the Jot form editor, it takes me to the correct url. But when I pull up the actual form and click on the paypal button, it submits the jot form instead. I have found that the editor is changing my html code after I click "complete." This is extremely frustrating. Please help.
This is the original code:
<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="RMX7N76KHE2WE">
<table>
<tr><td><input type="hidden" name="on0" value="Lab Location/Date">Lab Location/Date</td></tr><tr><td><select name="os0">
<option value="Springfield, IL - 01/25/15">Springfield, IL - 01/25/15 $550.00 USD</option>
</select> </td></tr>
</table>
<input type="hidden" name="currency_code" value="USD">
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_cart_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!0">
<img alt="Html textbox changes the code I entered Image-1" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>This is the code that the html box saves:
<form action="https://www.paypal.com/cgi-bin/webscr" method="post"> <input name="cmd" type="hidden" value="_s-xclick" /><input name="hosted_button_id" type="hidden" value="RMX7N76KHE2WE" />
<table>
<tbody>
<tr>
<td><input name="on0" type="hidden" value="Lab Location/Date" />Lab Location/Date</td>
</tr>
<tr>
<td><select name="os0"><option selected="selected" value="Springfield, IL - 01/25/15">Springfield, IL - 01/25/15 $550.00 USD</option></select></td>
</tr>
</tbody>
</table>
<input name="currency_code" type="hidden" value="USD" /><input alt="PayPal - The safer, easier way to pay online!0" name="submit" src="https://www.paypalobjects.com/en_US/i/btn/btn_cart_LG.gif" type="image" /><img src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" border="0" alt="Html textbox changes the code I entered Image-1" width="1" height="1" /></form> -
Elton Support Team LeadReplied on August 20, 2014 at 2:00 AM
Hi,
Sorry but you can't inject form source code within form. It would obviously cause conflict since a form can't be embedded within form. It will probably be stripped off. A possible workaround is to embed your Paypal code into a plain html file and embed it as iframe within your form or use this Iframe Embed Widget. http://widgets.jotform.com/widget/iframe_embed
Hope this information helps!