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

Question

Question

JQuery Library Question

asked on May 1 Show version history

I am using the Modern Form Designer and needing to use JQuery for masking. This is the code I was given to achieve that.  We know where the library needs to be stored on our Forms server, we are questioning, however, where the proper place is to download it from.  Below is the code as well as a possible location we found. Could someone from Laserfiche confirm this for us or provide the correct location, please? 

$(document).ready(function () {
$.getScript'http://OUR SERVER/Forms/js/jquery.mask.min.js' function () {
$(".phone input").mask("(999)999-9999");
});
});

https://github.com/igorescobar/jQuery-Mask-Plugin

 

We are on Laserfiche Forms Professional Version 11.0.2307.40547 and will not be updating version 11 as we plan to upgrade to version 12 in late summer. I know some masking features will be there when we upgrade, for now, I need an alternative. 

0 0

Replies

replied on May 1

You should upgrade as soon as possible because you won't be able to use jQuery masking directly in the form designer. You could reinvent the wheel but that would not be worth the struggle.

1 0
replied on May 1

I'd love to, but we can't upgrade until late summer.

Is there any code at all that will work currently on the version of Forms that we are on to mask phone/SSN on the Modern Form Designer?  The JavaScript code I used for Classic does not work and there is not built-in functionality either (on this particular update of V11). If we don't use this jquery solution, does that mean there is none? 

0 0
replied on May 1

Depending on your experience levels with JavaScript you could write a simple phone mask by listening to the onFieldChange event and modifying the value of the field with setFieldValues based on your masking criteria.

 

Or you could mirror the input of the form field to an input you create/mask with the plugin within the JS sandbox and replay the characters into the input and then relay the masked values back to the form field

0 0
replied on May 2 Show version history

Hi Vikki, 

Since you are in Forms 11 and using the new modern format on a Single Line field, why not use the option that comes in the Advance tab to use the mask option? And when you update to 12 hopefully it will pick it up as well. Here is a picture. Make sure you only use zeros in the mask.

Phone Mask.png
Phone Mask.png (32.66 KB)
0 0
replied on May 2

The update of 11 we are on does not have this option, unfortunately. And we are not going to apply another version 11 update now as we are upgrading to 12 in late summer. 

0 0
replied on May 2

Ahhhhh, I see. So sorry!!!

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

Sign in to reply to this post.