Help with field validation

  • Profile Image
    sbohler
    Asked on May 30, 2014 at 06:46 PM

    Greetings,

    On this form I have validation and input masks.  It works correctly.

    On the same form downloaded and installed on my server it loses input mask functionality.  Validation still seems to work.

    I have another form which loses both masking and validation functionality on my same server.  That one is my real concern, but I'll use the simple form above to work through this.

    Why do the input masks break when installed on another server?  What causes validation not to function?

    Please help asap.  I need my forms to function on non-jotform servers.

    Thank you,

    Scott

  • Profile Image
    jonathan
    Answered on May 30, 2014 at 08:19 PM

    Hi Scott,

    It probably was due to script conflict between those in the form and those in your website.

    Can you please try re-embedding the form using its iframe code embed?

    Follow this user guide -Getting-the-Form-iFrame-Code

    When using iframe code embed, the form will be loaded into its own iframe -- so, there should be no script conflict that will happen.

    Please try this suggestion. Do inform us if issue persist.

    Thanks!

  • Profile Image
    sbohler
    Answered on May 31, 2014 at 05:21 PM

    I'm not using an embedded approach, Jonathan.  I downloaded my form and uploaded it to my server (along with it's files) as a stand-alone form with no other website/page involved.  Embedding isn't an option.

    This should just upload & play, shouldn't it?  I need it to work 100%.

    Please advise.

    Thanks,

    Scott

  • Profile Image
    BryanPaulo
    Answered on May 31, 2014 at 06:03 PM

    Hi Scott,

    I've visited the page where you embeded the test form. Looks like the validation is working. Same goes to the stand alone form. When I input non-numeric value, it's giving me error. Se screenshot below:

    Let us know if you are still having trouble with the validation on your end.

  • Profile Image
    sbohler
    Answered on June 01, 2014 at 10:46 AM

    Yes, but the input masks are broken.

    #######

    and

    @@@@@@@

     

    Please help.

    Scott

  • Profile Image
    Welvin
    Answered on June 01, 2014 at 03:23 PM

    Hi Scott,

    I checked your form and I don't see an Input Masking here. The form only has the following settings:

    -Validation

    -Max Size

     

    The Input Masking is not configured. If there's any, you should suppose to see @ and # signs in the fields while in the form builder, example:

     

    And in the form, you should see an underline to the textboxes, example:

     

    Please edit the form and configure it. After doing the changes, you need to re-download the source codes and use it to your own server.

    Thanks

  • Profile Image
    sbohler
    Answered on June 01, 2014 at 06:43 PM

    Oh... I'm sorry.  I removed the masking to test, put it back, removed it...

    I'll put it back and if it fails I'll post back here.

    Thanks,

    Scott

  • Profile Image
    BryanPaulo
    Answered on June 01, 2014 at 06:45 PM

    Hi Scott,

    Let us know if you are still getting the same problem. Just don't forget to re-embed the form to your test page especially if you are using the iFrame embed method.

    We will wait for your response.

  • Profile Image
    sbohler
    Answered on June 01, 2014 at 07:44 PM

    With field masking:

    At jotform:  http://form.jotformpro.com/form/41496732878975?

    Same form, not embedded but simply uploaded to my server along with it's files.  View the containing folder here.


    All I did was add field masking.  Now neither field masking nor validation work on the uploaded form.  They both work via the jotform link.  I cannot embed.  I need to host my own files.

    Browser: Chrome.

    In Firefox, only email validation triggers and all it does is put a red glow around the field - no instruction text.

    In IE only email validation work upon clicking the button.

    Please help.

    Thanks,
    Scott

     

  • Profile Image
    sbohler
    Answered on June 01, 2014 at 07:52 PM

    A little more clarification:

    In chrome, email validation work when the button is clicked.

    When served via jotform things behave differently (trigger when switching fields) and work perfectly.  I need them to work the same on my own server.

    Please help.

    Thanks,

    Scott

  • Profile Image
    ashwin_d
    Answered on June 01, 2014 at 11:10 PM

    Hello Scott,

    I did check your form and which you have uploaded in your server. It does behaves differently if compared with the version of form if accessed from its direct URL. 

    There seems to be some technical glitch where the form validation behaves differently when form's source code is downloaded. I am reporting this to our back end team. We will get back to you as soon as we have any update from them.

    Thank you!

  • Profile Image
    sbohler
    Answered on June 02, 2014 at 01:28 AM

    Thank you!

    My client, of course, needs it fixed yesterday.  Thanks for your prompt attention.

    Have a great night,

    Scott

  • Profile Image
    ashwin_d
    Answered on June 02, 2014 at 05:18 AM

    Hello Scott,

    I can understand.

    I have already created a bug report and forwarded it to our back end team. We will get back to you as soon as the issue is fixed.

    Thank you!

  • Profile Image
    liyam
    Answered on June 02, 2014 at 11:39 PM

    Hello Scott,

    Here's why your validation isn't working when the form is uploaded on your web page:

    Please check your web page for these missing files.

    Thanks.

  • Profile Image
    sbohler
    Answered on June 03, 2014 at 11:28 AM

    liyam,

    I see!  Thank you!

    The problem is that these files are not included in my jotform dowload.  Can you provide the files for me and fix the download problem?

    Many thanks,

    Scott

  • Profile Image
    EliezerN
    Answered on June 03, 2014 at 01:20 PM

    @Scott

    I was also able to reproduce the issue with one of my forms.

    - Standalone version of the form: http://form.jotform.co/form/41466545853866

    - Uploaded version of the form: https://shots.jotform.com/eliezer/uploaded%20form/Title%20Me.html

    Neither the Validation nor the Mask is working for the Number field.

    So, probably there is something wrong with the files downloaded from the Embed Form wizard. Our developer liyam has received our message and once he has any helpful information, he will update us via this thread.

    Thanks

  • Profile Image
    sbohler
    Answered on June 03, 2014 at 01:37 PM

    Yes, you have the same bad download / missing files problem:

     

    Thanks and I hope liyam can fix it quickly.  I really need a fast solution.  Does liyam have an ETA?

    Many thanks,

    Scott

  • Profile Image
    EltonCris
    Answered on June 03, 2014 at 02:57 PM

    Hi Scott,

    We'll check this and get back to you with a workaround later today while waiting for the developers fix.

    Thanks and apologies for any inconveniences this has caused.

  • Profile Image
    EltonCris
    Answered on June 03, 2014 at 03:08 PM

    Never mind, I think you have managed to correct the problem with all the files. I can see that your field validation is already working here http://www.stbohler.com/xpressdrafts/VALIDATION/VALIDATION.html

    You can also get the files when you preview your form and view its source code. Then open each of the external javascript URLs and manually copy the codes and save it as .js e.g. jotform.js or use "Save Page As" on your browser.

    You can also take all the required js files here https://shots.jotform.com/elton/js.zip.

    Let us know if we can help you with anything else.

    Regards!