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.
Can I embed my JotForm in an ASP.NET MVC view?Asked by Avrohom Yisroel Silver on November 13, 2014 at 10:53 AM
I've just come across jotform, and it looks just what I want, but I need to check some details with you.
We're building a web site for a charity, and they want to allow people to apply for an account online. They need people to sign the form, which is where jotform comes in.
At the moment, when someone submits the form, the details are saved in a database. We want to be able to have the signature submitted along with the rest of the form details, so it can be saved as well, presumably as a jpg, png, etc.
Can jotform do this? As far as I can see, you need to create the whole form in jotform, which is not going to work for us. We have built the site with ASP.NET MVC, and are using the form features in that. We can't change this now.
Can we add a jotform widget to our own form to capture the signature?
Please clarify what we should do.
You can use the full source code of your form to achieve this.
In your scenario, you create the complete form using JotForm then you retrieve the full source code and paste it in your MVC view.
The full source code will provide all necessary scripts to make the form run the same way in your website, however you need to consider a few things:
1. Since you'll be capturing the submitted data in your own database then you'll need to adjust the POST method of the form to send the data to your database instead of our system.
2. Every change you made in terms of design using JotForm will not be automatically rendered in your view, which means that you'll need to copy/paste the last version of your form in your view manually.
Please give it a try and if you need further assistance let us know.
Hello, thanks for the reply.
I copied the files and created a form that had nothing but a smooth signature widget. I changed the form method to point back to our local web site, and tried it out. I have two more questions...1) If I don't sign the form, then I see a very brief red warning, but the form is submitted anyway. How do I prevent the form from being submitted if they haven't signed?2) What format is the signature data? I saw a form field named "q1_clickTo1" come in, with a lot of data, but how do I use it? I would like to save this locally as an image.