I have a form that is used to track PPE item replacement requests. Whenever a requested item is available, the employee comes in and the Replacement Rendered section is completed for the item being given to the employee. However since not all items come in at one time, the form maybe submitted and then the opened again later when the other items come in. The signature obtained for the previous item is lost whenever the form is re-opened. Has anyone figure out how to mark a signature field display-only using JavaScript? Ideally upon the form loading, if the corresponding date field next to the signature field is not blank then I would like the JS to make the signature field display-only (see image below, the highlighted signature field should be marked display-only using JS).
Question
Question
How can I make a signature field Display-only based on whether another field is blank?
Replies
I think the first thing to figure out is why the signature is being lost. If it was filled out in a previous step and submitted, then the signature should still be present on the form when you open it again.
Hi Jason,
It was filled out in a previous step and submitted. However in the case where some of the PPE items are not available when the others are, the form is reassigned back to the supervisor to open again when the remaining PPE items come in. Ideally, the employee will initial and date next to each requested PPE item as the are rendered to them. This means the same form maybe opened, initialed, dated, and submitted numerous times. From what I understand, if the field is not marks as display-only the signature is lost each time it is opened (see an old post link below). I am hoping that someone has figured out how to mark a signature field display-only using JavaScript. This way as the form loads any signature field that was previously signed can have the attribute read only added to it and the signature image will show.
https://answers.laserfiche.com/questions/64696/Forms-92-Signature-Not-Carrying-Through-Steps
I see, that makes more sense now.
Unfortunately, from what I understand about the Display Only option, it does things on the back end that you can't replicate from the client side JavaScript.
From what I can tell, the signature value isn't even passed to the client-side form unless that field is marked as Display Only in the designer.
Okay, thanks for your help Jason.