The title is basically the question. I know that you can have signatures in laserfiche forms but is there a way to have an initial instead?
Thanks
The title is basically the question. I know that you can have signatures in laserfiche forms but is there a way to have an initial instead?
Thanks
Hi Charlie,
You can always rename a Signature block to "Initials".
You can also place the following code in the JavaScript section of the CSS and Javascript tab in the Form Editor to replace mentions of "Sign/Signature" with "Initial(s)" in Signature blocks.
$(document).ready(function () { //Signature button label $('.Sign_Sig').attr('value','Initials'); //Signature modal header $('#form-signature-dlg > div > div > div.modal-header > div').text('Initial Document'); //Prompt text in the "Type" field $('#typeSignature').attr('placeholder','Type your initials here'); });
Hi, this works great but this is my scenario: I have 2 places that need initials and 1 place where someone will need to put in a signature. Can someone show me how to code the signature line?
Thanks!
I'm having a problem with this code. I have a place where I need 2 initials and then one signature box. here's what I have:
$(document).ready(function(){ $("#sigNav a:eq(1)").hide(); $("#form-signature-dlg").on("shown.bs.modal", function(){$("#sigNav a:eq(0)").click(); }); /*Initial instead of Signature */ $(document).ready(function(){ //Signature button label $('.myInit').find(".Sign_Sig").val("Initials"); //Signature modal header $('#form-signature-dlg > div > div > div.modal-header > div').text('Initial Document'); //Prompt text in the "Type" field $('#typeSignature').attr('placeholder','Type your initials here'); }); }); $(document).ready(function(){ $("#sigNav a:eq(1)").hide(); $("#form-signature-dlg").on("shown.bs.modal", function(){$("#sigNav a:eq(0)").click(); }); /*Signature instead of Initial */ $(document).ready(function () { //Signature button label $('.mySign').find(".Sign_Sig").val("Signature"); //Signature modal header $('#form-signature-dlg > div > div > div.modal-header > div').text('Sign Document'); //Prompt text in the "Type" field $('#typeSignature').attr('placeholder','Sign here'); }); });
the first portion of the code hides the "Draw" option. One section is for Initials and the other section is for Signature.
When I run it the initials show up on the box (below), but the modal header and the "Type" prompt doesn't show (2nd pic)
Any help would be greatly appreciated.
Hi Donnie,
What version of Forms are you using?
@████████, after Donnie replies with the Forms version, could you take a quick look at the code?
@████████, the code you are using will not work because you have to realize there's only one signature dialog that is shown whenever signature button is clicked.
The best and simplest way is to keep the buttons events independent so you can control the dialog appearance whenever the button is clicked. So something like this:
$(document).ready(function(){ var whichButton = 0; $('.Initials1 input').val('Initials 1'); $('.Initials2 input').val('Initials 2'); $('.Initials1').click(function() { whichButton = 1; }); $('.Initials2').click(function() { whichButton = 2; }); $('.Signature').click(function() { whichButton = 3; }); $("#form-signature-dlg").on("shown.bs.modal", function() { if (whichButton==3) { // Signature? $("#sigNav a:eq(1)").show(); $("#sigNav a:eq(1)").click(); $('#form-signature-dlg > div > div > div.modal-header > div').text('Sign Document'); //Prompt text in the "Type" field $('#typeSignature').attr('placeholder','Sign here'); } else { // Initials $("#sigNav a:eq(1)").hide(); $("#sigNav a:eq(0)").click().blur(); $('#form-signature-dlg > div > div > div.modal-header > div').text('Initial Document'); $('#typeSignature').attr('placeholder','Type your initials here'); } }); });