I have a customer who would like his team to receive the completed LiveCycle Designer Form in a read-only format. To clarify: User A completes the dynamic form fields, uses the Submit by Email button and Team Member B receives the PDF in a public email-box. My customer does not want the employee (Team Member B) to alter any information on that form once it has been received; he wishes that information to be in a Read-Only format. Anyone have any step by step tips?
P.S. in attach my XML form code
that will loop through all the fields on the form and set them to protected
I have added an example of this in the attached PDF...
I have 5 fields on the form. 4 can accept data and 1 is a hidden field (although i have kept it visible for you to see how it behaves). Enter data into the 4 text fields and click on submit. You will see an alert telling you the form is now being locked and an email pops up with the PDF attached and is ready to be sent. If you then save the form and re-open it and you get another popup telling you that the form has been locked.
Basically what happens is when you click submit, the the code loops through all the fields on the form and sets them to protected. Then I populate the hidden field with a 1. The form can now no longer be edited. If the form is re-opened, I check if the hidden field's vale is 1. If so, lock the form immediately to avoid editing.
I'm sure there are more ways to do this, but this is what Ive come up with quick.
I dallas....Thanks for help...!!! And sorry for my english.
So...I have amny questions....why after insert your code I complete all field and
I press the submit button don't open outlook box whit the file.pdf but I look the read only form.
In attach my forum for you.....it's possible to modified for me..???
Thanks....you are a GOD....
Errors in your code which prevents submitting the form through email.
See the attached imaged with error markings.
You are attempting to refer to an invalid field.
FYI: Only your form data(as XML) will be emailed to.. SO even if you try to lock the form, there will be no use.
You could create another form template (With all fields locked) and merge the form with the submitted data.
Hi reperibile, you just need to copy that hidden field (_lockField) to your form as well. Then make it a hidden field. the code references the following structure:
form > Page1 > _lockField
You can either match your form structure the code (because your form has an unnamed page 1) , or change the code to match the form structure. either way it will work.
@ $nith$ - we are attaching a pdf to an email, we're not sending xml.