


Views
Replies
Sign in to like this content
Total Likes
Please send one to me too, thank you! --Elaine
Views
Replies
Sign in to like this content
Total Likes
I posted it in the previous reply ....is it not there for you?
Paul
Views
Replies
Total Likes
I apologize. I'm getting used to the new forums... Thanks Paul!
Views
Replies
Sign in to like this content
Total Likes
Views
Replies
Total Likes
Views
Replies
Total Likes
Would you mind sending me that script aswell to wilenco@gmail.com that would be appreciated
Views
Replies
Sign in to like this content
Total Likes
Its posted in this message thread 3 messages up from this one.
Paul
Views
Replies
Total Likes
Hello Paul, would you mind emailing me the script as well.
acespiritu@gmail.com
I appreciate your assistance.
Thank you
Views
Replies
Sign in to like this content
Total Likes
Hello Paul,
I would also like you to email me the script: jkeyzerandre@gmail.com
Thanks!
Views
Replies
Sign in to like this content
Total Likes
Its already attached in this thread!
Paul
Views
Replies
Total Likes
Hi Paul,
I have just sent you a PM with a link to my form, and am hoping that you may be able to assist me?
I really need to use this lockdown all fields, but am getting strange results...
I made a test form to try this on, and it all worked as it should.
I then tried to add it, to the "live" form that I am working on, but it only locked the first page.
I then added extra lines to the click even of the button, specifying the other pages in my form.
This appeared to work. You can populate the form and then click the button to lock all the fields.
The fields all lock. If you then save the form, and re-open it, all the fields are editable again, and are not read only?
Any help greatly appreciated.
Thanks
Views
Replies
Sign in to like this content
Total Likes
I did not recieve anything .....you woudl be better off emailing it to LiveCycle8@gmail.com
Paul
Views
Replies
Total Likes
mail sent.
Many Thanks for your help!
Views
Replies
Sign in to like this content
Total Likes
Hi Paul,
I'm new to this forum. And i've read the entire thread. I also need help on our Department's application form to be locked. Our form includes a date that automatically generates the current date and time everytime it is opened. My problem is that when the form is submitted to me through email, when I open it, it will still generate the current time I recieve it, and not when it was submitted. Does the script works on locking with that as well?
And also, i'm having problems viewing the script. Where can I view it? And where should I copy paste it? I'm using Adobe Acrobat 9 Pro and I also have the Adobe LiveCycle Designer 8.2.
I hope you can help me with this. I'm such a newb but I really need to get this done. And I'm willing to learn anything.
Thanks!
P.S. I was going to attach the document so you can take a look at it but i didn't see an option to attach a file.
Views
Replies
Sign in to like this content
Total Likes
fiel2003,
There is nothig attached. The locking of the fields that is in that script only stops the users from interacting with the field. Any scritp scan still access the fields. I think that you will want to wrap your code around a test to see if th efield is populated already. If it is then you know that the date was already set. Something like this:
if (this.rawValue == null) {
execute your code to populate the field
}
The script is in a scripting object called myScriptObject in the sample that is provided. There is a function in that scripting object called LockAllFields that has the code that you are after.
paul
Views
Replies
Total Likes
If I need to exclude a button from locking, where abouts would I put the following code: MailButton.access = "open";
function LockAllFields(myParentObject){
var allChildElements;
var intNumElements;
var currentElement;
var j;
//Get all the child nodes of the parent element
allChildElements = myParentObject.nodes;
//Total number of element in the object
intNumElements = allChildElements.length;
//Loop through all the child elements
for(j=0; j< intNumElements;j++){
currentElement = allChildElements.item(j);
//If the element is another subform we'll recusively call the function again
if(allChildElements.item(j).className == "subform"){
LockAllFields(currentElement);
}
//If the objects are fields and they are set to mandatory (validate.nullTest) then we will set the border.fill.color - dependant on object type
else if(currentElement.className == "field"){
currentElement.access = "readOnly";
}
//Check for exclusion groups - Radio Buttons
else if(currentElement.className == "exclGroup"){
for(k=0; k< currentElement.nodes.length;k++){
if(currentElement.nodes.item(k).className == "field"){
//set the color for the radio buttons individually
currentElement.access = "readOnly";
}
}
}
}
}//end function
Thanks!
**Update: I have now worked this out. Thanks
Views
Replies
Sign in to like this content
Total Likes
Hi - I have the same requirement as you, and you say you figured this out. Where did you put the code to keep certain buttons open - mine are SaveAs, Print, Email and Reset. Your help would be much appreciated.
Views
Replies
Sign in to like this content
Total Likes
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Replies
Sign in to like this content
Total Likes