integrating a 3rd pary validating system

  • awmalik
    Asked on November 19, 2016 at 6:49 AM

    Hi Guys, due to a number of false telephone number submissions i have recieved, i have decided to use a 3rd party validation software to help eliminate this.

    However, i am not a developer and really don't know how i can integrate this code into your awesome form. Can you please help me?

     

    BTW - I love JotForm! You gurs are #1 and really awesome, especially for a layman.

     

    Here is what i got from the 3rd party:

    Below is from our technical team...

    the javascript method would require using the onblur method, for example

    <input type="text" id="phoneNumber" onDISABLEDblur="callMobileVerification()" />

    The callMobileVerification method would then be an ajax call passing in the phone number from the text field to your server side logic, which would in turn make the request to MobileVerification, you would then return the response from MobileVerification back to your HTML/Javascript page and update the page accordingly. If the response from MobileVerification is an error you may decide to disable the form submit button and display an error to the user. If the response from MobileVerification is not an error and the rest of the form passes your other validation checks you may then choose to submit the form data to your server side code to be handled.

    The code to make the AJAX call would be within your landing page. The event code would be attached to your input fields directly, like in the example above, or using something like jQuery (see below). The call to MobileVerification would be make within whatever server side framework or technology you are using, e.g, PHP, .NET etc

    Alternatively you could instead hook up the onblur method without attaching directly to the text fields, using something like jQuery. You can also use jQuery to handle the AJAX call as well.
  • liyam
    Replied on November 19, 2016 at 10:28 AM

    Hello,

    What you can do is get the full HTML source code of your form as the steps provided from this guide: https://www.jotform.com/help/104-How-to-get-the-Full-Source-Code-of-your-Form

    Then, place the code in a separate file or any page of your website. By having the full HTML source, you can have the capacity to modify or add functionalities in it outside the limits of JotForm. Although please do not modify the ID and name of the fields. So you can then insert or modify your code to conform to the existing codes in the form and make it work the way you like.

    But in order for us to be able to see how your feature should work, do you have an existing form (not necessarily from JotForm) so we can see and test how it can be integrated to your form?

    Thanks.

  • awmalik
    Replied on November 19, 2016 at 1:09 PM

    Hi Liyam,

     

    I still dont understand. If i download the full source code I dont have the ability to host it myself.

    I am really stuck.

  • liyam
    Replied on November 19, 2016 at 3:37 PM

    Hello,

    My apologies of my response was quite a bit vague. But to re-explain:

    Unfortunately, the problem on your case is that you want to implement a functionality on a specific field. And based on how you have explained, you need to insert the onDISABLEDblur="callMobileVerification()" attribute in a field. However, this cannot be done while you want to run the form and still have it hosted in JotForm. So the only solution you have is to get the full HTML source and then have the form hosted somewhere else. 

    There are free webhosting services available such as:

    https://x10hosting.com/

    https://www.000webhost.com/

    You can also search via Google other free webhosts.

    Just create an account with your preferred free hosting service and then I believe we can start creating a test form there with our assistance. 

    Also, it would be great if you can share with us the script so we can also make a test to see how it works.

    We'll look forward to your response.

    Thanks.