I am populating a field from a couple of drop down list boxes and I want to include this information when the user clicks the Save As button. I can't seem to get the information to remain after the Save As is complete. I have attached my form.
Solved! Go to Solution.
Views
Replies
Total Likes
Ok,
The outputText object has the following in the docReady event, which is resetting the field back to effectively no value ("") when the form is reopened.
outputText.rawValue = "";
Comment that line out and it should work.
Good luck,
Niall
Views
Replies
Total Likes
Hi,
Try setting the preserve script changes from Manual to Automatic (in the File / Form Properties / Defaults tab).
Good luck,
Niall
Views
Replies
Total Likes
It still doesn't save the data to the field upon saveAs.
Views
Replies
Total Likes
Ok,
The outputText object has the following in the docReady event, which is resetting the field back to effectively no value ("") when the form is reopened.
outputText.rawValue = "";
Comment that line out and it should work.
Good luck,
Niall
Views
Replies
Total Likes
That worked. However, I was using that statemenet to get rid of the null value that is added to the field from my
outputText.rawValue += dateSelect.rawValue + " " + shiftSelect.rawValue + " shift\n";
statement, how can I handle getting this field populated prior to the drop down box placing a value there?
Views
Replies
Total Likes
Hi,
One way would be to change the volunteer schedule into a listbox. Then use addItem to populate the schedule. Also added a reset button.
Good luck,
Niall
Views
Replies
Total Likes
I took your suggestions and made the necessary changes. For those of you following along I had to add the following line to the reset button code to clear out the list box field>
outputText.clearItems();
Without this line the field remained populated.
Thank you Niall for all your valuable input. One last request. Can you suggest a good comprehensive book on LiveCycle that would give many examples of real world forms design.
Views
Replies
Total Likes
Hi,
There is a lot of information on the Adobe website and in the forums.
There are free guides on the Adobe web site which cover Acrobat and LC:
http://www.adobe.com/go/learn_lc_scriptingBasics
http://www.adobe.com/go/learn_lc_scriptingReference
http://www.adobe.com/go/learn_lc_formCalc
http://www.adobe.com/devnet/livecycle/articles/Adobe_XML_Form_Object_Model_Refer ence.pdf
http://www.adobe.com/devnet/acrobat/pdfs/lc_migrating_acrobat_xmlform.pdf
And a very handy resource (and while it is for version 6 it is still very good because of the way it is laid out):http://partners.adobe.com/public/developer/en/tips/CalcScripts.pdf
JP Terry's book on LC Forms is very good and we use www.pdfscripting.com (which is a subscription service).
The help file also helps with syntax and LC Designer comes with templates/examples.
Lastly, check out the Developer's Network on http://www.adobe.com/devnet/livecycle/
Good luck,
Niall
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies