- gmdpickettAsked on July 08, 2010 at 02:26 PM
I am just wondering if there are any plans to introduce ajax functionality to Jotform. This would really make this the best option for forms.
- JotForm FounderaytekinAnswered on July 12, 2010 at 09:49 AM
JotForm has many AJAX powered features. Such as auto-complete tool, captcha, validations. Can you provide more details about what you mean when you say "ajax functionality"?
- everythinginkAnswered on July 12, 2010 at 10:30 AM
My apologies for not being more specific. It's possible that the function is already there and I just don't know how to enable it.
I am looking for the AJAX refresh without page load. What I mean is that when a user submits the form the form sends but doesn't need to redirect to another page it simply updates the form with a "message sent" message.
- JotForm FounderaytekinAnswered on July 12, 2010 at 10:56 AM
So, you would like to keep the form on the page but just add a "message sent" message.
I am not sure how good this is for usability. If the user does not see or understand the "message sent" message she will think the form is broken.
If you need them to re-fill the same form again and again, then you should probably have a Thank You page and then automatically redirect back to the form after 3 seconds.
- everythinginkAnswered on July 12, 2010 at 11:04 AM
Thank you for the response. I will have to look for another option for forms then. I have a couple of clients that want this functionality - they have single page websites and have seen this on other websites and have requested this for their forms.
- JotForm FounderaytekinAnswered on July 12, 2010 at 11:38 AM
I think you should convince them this is not a good idea. Because it really is not. Users expect forms to take them to another Thank You page. They do not except the form to stay still as if nothing has happened and just show a "message sent" message. Those messages are usually used for warnings and error messages. Not for success messages.
- everythinginkAnswered on July 12, 2010 at 12:09 PM
I normally use something that lets the user know that the message has been sent and that someone will respond.
You can't honestly tell me that you think having a client get sent to a different page and then reload or click back to the main page makes for a better user experience.
Again - I appreciate your input although I don't think that I'll be posting to forum anymore as I was simply asking if this fucntion was available. I was not asking for a useability lesson or to be told that I shouldn't be utilizing a feature that is being used by thousands of websites on the web as it is.
- JotForm FounderaytekinAnswered on July 12, 2010 at 12:21 PM
No, you don't have to send the user to another page. You can just replace the form with a Thank You message. JotForm has that. In fact, JotForm works that way by default. Please see and make a test entry on our contact form:
Maybe that's what your client's asked for. Because I have not seen any good examples of sites that keep showing the form after it is being submitted.
Sorry, if I came across as giving a usability lesson. I was just trying to help. Those are my humble opinions. Take care. :)
- everythinginkAnswered on July 12, 2010 at 12:53 PM
Thank you. This is exactly what I was looking for.
- soulshipAnswered on May 24, 2011 at 10:00 PM
So I would have to agree with the comments here from everythingink. I don't want to get a page refresh or have the user sent anywhere either. Ideally the form should submit and I should get back a 200 if everything went OK and then I can inform the user that the form was submitted successfully with a success div and a success message response. So long story short. Is this possible or not?
- JotForm SupportliyamAnswered on May 25, 2011 at 01:36 PM
On the technical sense, this is not how the forms here in Jotform are made to do. By looking closely into the source code, the form's action is pointed to submit.php. So it has to go out on that page to process the information submitted.
But, with Jotform's flexibility, you can get the source code, modify it to your preference such as adding PHP's cURL functions. This way, the form gets submitted to submit.php without your page leaving the form. It then returns with the response such as a thank you message. You also won't need AJAX. On your webhost, all you need is have the cURL enabled (which normally paid web hosting services provide).
I have tried doing this but it's quite unfortunate that I only have an account with a free PHP webhost so it does not have cURL enabled. If you're interested, I can share with you the script, upload it to your local server or web host and see it in action.
- soulshipAnswered on May 25, 2011 at 01:42 PM
Wow Liyam. That would be awesome. I will definitely try it out. I always work from the source when I can. Sometime the use of prototype makes it less than ideal, but in this situation I have to work through any script conflicts anyway. I would love to try your script. Thanks for going the extra mile for me! myusername at gee ma il dott comm. (you know what that means :)
- JotForm SupportliyamAnswered on May 25, 2011 at 03:47 PM
In my script there are two files:
index.php - the page to viewer
noredirectformlib.php - my supposed to be library reference script
Here's the link: http://liyam.freeweb.pk/jotform/noredirectpagesubmit.zip
Apologies on how my script was formed. That was a quick pour of information from my head without cleaning and fixing the code properly. I'm sure it can be created in a better way.
If you have questions or concerns, just let me know.
- soulshipAnswered on May 25, 2011 at 03:48 PM
Great. Thanks! I can clean it up, just need that kickstart. Cheers!