0% found this document useful (0 votes)
7 views1 page

Getting The Current or Previous Value of A Drop-Down List: Instructions

This document demonstrates how to get the current and previous values of a drop-down list on a form. It shows scripts that populate text fields with the current selection and previous selections, accessed via different properties.

Uploaded by

Rafael Alonso
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views1 page

Getting The Current or Previous Value of A Drop-Down List: Instructions

This document demonstrates how to get the current and previous values of a drop-down list on a form. It shows scripts that populate text fields with the current selection and previous selections, accessed via different properties.

Uploaded by

Rafael Alonso
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Getting the current or previous value of a drop-down list

This example demonstrates how to obtain the current value of a drop-down list as well as the different ways to access the previous value of a drop down list on a form. In addition to the actual scripts that set the current and previous values, it is important to note that the scripts are located on the change event for the Drop-down List. Open this form in Adobe LiveCycle Designer to view the form properties and specific settings for individual form objects.

Instructions 1. Select a value from the Drop-down List. Note that the Current Value text field displays the value currently selected in the Drop-down List. Each of the previous value text fields displays the value Peach. 2. Select a new value from the Drop-down List and observe the change to the Current Value, Previous Value 1, and Previous Value 2 text fields. Note: Each of the methods for obtaining the previous value of a drop-down list uses a different script. The Previous Value 1 text field is populated by a direct reference to the rawValue property of the Drop-down List, whereas the Previous Value 2 text field is populated using the prevText event. For consistent results, it is recommended that you access the previous value by using the prevText event. Drop-down List:

Peach

Current Value:

[Link] = [Link];

Previous Value 1:

[Link] = [Link];

Previous Value 2:

[Link] = [Link];

Adobe helps people create, manage, and deliver the highest quality digital content in the world. Better by Adobe. Adobe Systems Incorporated 345 Park Avenue, San Jose, CA 95110-2704 USA [Link] Adobe, the Adobe logo, Acrobat, Adobe LiveCycle, Reader, and Better by Adobe are either registered trademarks or trademarks of Adobe Systems Incorporated in the United States and/or other countries. 2006 Adobe Systems Incorporated. All rights reserved.

You might also like