-
ncaacaAsked on August 17, 2019 at 9:45 PM
I am offering multiple payment methods on Literature Order Form https://form.jotform.com/92236039601149
The thank you page passes the total to a payment form such as Credit
Card Payment https://form.jotform.com/92243652580154However, the total is not read only and the user could change it. How do I keep that from happening.
It is on my site at www.dc-aca.org/holding
-
Jed_CReplied on August 18, 2019 at 1:22 AM
What you need to do is pass the value to a Form Calculation widget first and get the value of that Form Calculation.
ex.
The last step is to set the form calculation widget as read only.
ex.
Once you do that, your "Total" Stripe field won't be editable. Try that and let us know if you have any questions.
Looking forward for your response.
-
ncaacaReplied on August 18, 2019 at 1:05 PM
I am passing it through url parameters. It cannot be on a single form since I am giving the option of multiple payment methods. I have not found a way to have multiple payment methods on a single form. How can we keep them from changing the payment amount.
please see my example dc-aca.org/holding
-
John_BensonReplied on August 18, 2019 at 2:19 PM
You need to set the "Total" field (Form Calculation Widget) as read-only. Here's how:
1. In the Form Builder, select the widget and then click the Widget Settings. After that, click the "More Options" icon.
2. Go to the "Options" tab and enable the "Result field is read-only" option.
3. After that, click the "Back" button and then the "Save" button.
You can pass that "Total" field in the payment integration and based on my test, it cannot be changed as well. Here's a guide: How-to-Pass-a-Calculation-to-a-Payment-Field.
Hope that helps. If you have any questions, let us know.
-
ncaacaReplied on August 18, 2019 at 3:32 PM
That did not work. I'm not sure how you tested it, but not only does it not work on my live form dc-aca.org/holding. It does not work in preview. It is still changeable on the second payment for regardless of choosing the result for is read only.
-
John_BensonReplied on August 18, 2019 at 4:13 PM
This form (Literature Order Form) is embedded on this webpage (https://www.dc-aca.org/holding).
I've cloned this form and I can see that the Thank You Page will be redirected to this form (9224365258015) which doesn't exist.
It is possible that this is the form (Credit Card Payment) you're referring to. Here's the correct link: https://www.jotform.us/form/92243652580154.
On the Literature Order Form, the Total field is not yet set as read-only. May I verify if this is the field you want to pass to another form?
If yes, then you need to insert a Form Calculation widget field inside the Credit Card Payment who will receive the value.
So here's how it looks like:
You also need to set this widget as read-only. After that, you can hide that widget and then make sure to pass that to the payment field.
Let us know if you have any questions.
-
ncaacaReplied on August 18, 2019 at 4:53 PM
John thanks for getting back to me
1. I see your screen shot but the jotform number was right when I looked at it. Besides it had to be because it did call up the right form. Don't know why it did that for you. I can say sometimes before I hit the pencil to edit the rule the form number is truncated, but just because it is truncated in that view, it should not affect anything. Maybe the clone did not work right? Regardless it is a non-issue
2. I am finding myself sometimes having to save 2 and 3 times to get changes like the read only on the calculation widget to take. I have to verify by going out of the form and back in to see if it really took. Annoying, don't know why it is happening, but I can deal with it because it always eventually takes.
3. Your idea of passing it to another calculation field is fantastic. I can make that calculation field hidden as well so it is not a duplicate for users (as the total is again listed below in the stripe widget).
It is unfortunate but your colleagues have been previously telling me to pass it directly to the payment field.
Thanks for getting a solution that works.
Brad
-
David JotForm Support ManagerReplied on August 18, 2019 at 6:25 PM
1) "I can say sometimes before I hit the pencil to edit the rule the form number is truncated, but just because it is truncated in that view, it should not affect anything. Maybe the clone did not work right?"
I assume that you are referring to using custom links, no, it should not affect anything. The form ID never changes, so the form will load through the custom link or default link(the one that shows the form ID).
2) In regards to the saving issues, probably it is related to browsers cache issue. Try clearing it, or using a different browser. As well, you can try clearing forms cache: https://www.jotform.com/help/229-How-to-Clear-Your-Form-Cache
If you see such a behavior more often, please open a separate forum thread to report it, so we can investigate further.
3) Glad to know that my colleagues idea worked for you.
Open a new forum thread if you need anything else, we will be glad to assist you.