Is there a way to Mask characters in forms so that it is not displayed on the form (example..SSN).instead of showing the characters...show ***-***-****?
Thanks!
Is there a way to Mask characters in forms so that it is not displayed on the form (example..SSN).instead of showing the characters...show ***-***-****?
Thanks!
You can do this using a hidden field and a jQuery plugin called jQuery Mask, which you can get here. Once you have it, put the jquery.mask.min.js file in the following directory on the machine hosting your Forms Server: C:\Program Files\Laserfiche\Laserfiche Forms\Forms\js.
You'll need a single line field for capturing the SSN (class ssn) and another single line field that will be hidden where the value will be stored (class filledField).
$(document).ready(function () { $.getScript('http://formsServer/Forms/js/jquery.mask.min.js', function () { $(".ssn input").mask("999-99-9999"); $(".ssn input").blur(function () { if ($(this).val() != '***-**-****') { $(".filledField input").val($(this).val()); $(this).val('***-**-****'); } }); }); });
Replace formsServer with the name of your Forms Server. Then, you can simply hide the filledField with this CSS rule:
.filledField {display:none;}
Hi Daryl,
Assuming this question is related to the previous one you asked about hiding SSNs, please note that you shouldn't use JavaScript to mask the value in an effort to prevent it from showing up on the TIF/PDF of the form that gets stored in the Laserfiche repository. If the user is using an older browser and/or has JavaScript disabled, this plugin and similar methods won't work.
If your goal is to not have SSNs show up in the form image (that the public can view, in your case), have a second form that uses all field variables from the first one except the SSN field's variable. That way, you can still capture the SNN in the metadata and keep it hidden from the public.