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

Question

Question

Token for Signature field filled out

asked on August 19, 2015

We have a form that I would like to do some error checking on with the signature field.

We have a computer use agreement set up for the students in our school district.  We have run across many instances where the form is either filled out wrong or there was an error in the lookup to our student database.  I have a user task  set up in the process modeler that when certain fields are missing or not updated I send it for an approval so I can stop it from being processed and alert the sender to refile the form.  I would like to include one of the signature fields also in that process.  If the parent signature is not there I would also like it to follow the approval process.  Sometimes it is okay for the parent signature not to be there so that one can be approved but if it is needed I need to be able to reject it to have the person fill out the form again.  I cannot find a token to check for that signature like the other fields.  Is there a way to set a value to a hidden field when the parent signature  it is filled out so I can use the process modeler for error checking?

0 0

Replies

replied on August 19, 2015

This has come up in other conversations I have seen as far as accessing information about the signature field using a variable value. I'm sure there are some ways to do things like this using JavaScript, but it would be nice if it was available as a variable value.

2 0
replied on August 26, 2015 Show version history

Hi Dave,

You can set a field value when the document is signed using the following Javascript:

$(document).ready(function () {
  $('.btn.btn-primary.signature-btn.signSignatureBtn').click(function () {
    $('#q1 input').val('Signed');
  });
  $(document).on('click', '.form-sig-remove.lfi.lfi-times', function () {
    $('#q1 input').val('Unsigned');
  });
  $(document).on('click', '.form-sig-edit.lfi.lfi-edit', function () {
    $('#q1 input').val('Unsigned');
  });
})

Change the "#q1" id's to point to your hidden field's id.

Go to Getting Started with JavaScript in Laserfiche Forms for additional information.

Alex

 

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

Sign in to reply to this post.