1.I have used the oledb connection for populating data in the editable form. For one Instance that form needs to be editable and for another instance or another time that form need to be read only. I don't know for doing this is possible or not.
2. I have used the oledb connection for connection SQL SERVER database. When I open the pdf file after saving from livecycle it shows the message "Connection failed due to Environment is not trusted".
I made a editable pdf and put it online for people to fill out the form and email me back in pdf format, but when I get the email it still allows me to edit the pdf, I just want to be able to get the pdf back save it and print it without accidently messing it up, is there a way around this?
You could change each field on the form to readOnly when they hit the mail button (programmatically of course)....if you post your email address I will send you a sample on how to do.
Here is a function that will lock all fields on the form for you. Simply put it in a scripting object and call it (passing in the root node of your form and it will lock everything).
If you create a script object called myScriptObject then calling this woudl be like this:
I created a script object for a form that I want to lock using the script you showed above; however, I don't know anything about Javascript, so I doubt I did it correctly. If I email you the form, could you open it in LiveCycle and let me know if I did it right?
Basically, I'd like the form to be uneditable once we receive it through email.