What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.
At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.
We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.
I am trying to prepopulate a price in a Stripe field.Asked by robinconn on April 03, 2016 at 04:31 AM
I am trying to prepopulate a price in a Stripe field. The price I have stored in the form is $90.00. Here is the form.
When I look at the HTML with the price selected, the line of code for the price I want to change is:
I want to use a value I have stored in a database to fill the "Price" on the form via a Querystring URL. I can't figure out the correct format.
This is a re-post of a comment on Prepopulating Fields to Your JotForm via URL Parameters
It looks like you are using regular products in your Stripe payment field, for which prices were set up directly within the form, and the price of such products cannot be prepopulated or changed with URL parameters.
With URL parameters and prepopulation, we can only change the same values that a user can change as well. In other words, we can only possibly prepopulate the quantity of a certain product that is selected, or the amount in the "custom amount payment" field, as in the following demonstration form:
However, we cannot change the price of a product.
If you intend to provide your own custom price to the form from a database with URL parameters, you would need to use a different type of options in your payment tool - the "Custom Amount Payment / Donation" option:
Alternatively, you can also perform your own price calculations directly within the form. This would be done by:
1. Using widgets such as Inventory widget to store your products if they are limited in numbers, or regular Drop Down/Radio Button/Check Box field if your products are unlimited in quantity.
2. Using form calculation fields to calculate the price:
3. Finally, passing the calculated price to the Stripe payment tool for processing:
If you need further assistance, please let us know.