You are viewing limited content. For full access, please sign in.

Question

Question

After adding java script and css, form won't save to Laserfiche

asked on January 19, 2017 Show version history

I have a form that saves as a tiff file to my repository. When I add code to javascript and css it suspends at save to repository. If I remove the code, it saves to repository. Is this expected behavior?

 

It appears to be caused by this specific code -

 

$(document).ready(function () {
$.getScript('http://myserver/Program Files/Laserfiche/Laserfiche Forms/Forms/js/jquery.mask.min.js', function () {
$(".phone input").mask("(999)999-9999");
});
});

 

0 0

Answer

SELECTED ANSWER
replied on January 19, 2017

I am guessing you got this from this post. You need to reference the path for the js file as per the web address, not the folder location on the hard drive. It should be http://servernameurl/Forms/js/jquery.mask.min.js.

2 0

Replies

replied on January 19, 2017

Does the script you are referencing actually exist in that location? That path corresponds to the folder path C:\Program Files\Laserfiche\Laserfiche Forms\Forms\js (for default install location) and jquery.mask.min.js does not come with Forms.

1 0
replied on January 19, 2017

I believe your JavaScript is invalid. You are missing a closing ) for the $.getScript(

replied on January 19, 2017

Does the masking itself work correctly in the form?

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.