I need some urgent help with linking drop down list choices on LiveCycle Designer ES.
I have bulit two separate drop down list with the following entries. I want to be able to link the Yes/No in one drop down list with the entries in another drop down list. Please see below an example.
DropDown1:
Data Not Collected
Yes Data Collected w/ PEEP
No Data Collected w/ PEEP
Drop Down2:
Data Not Collected
PEEP >8
SAS >5
FiO2 >2
Vasopressor Use
If user selects "Yes" in DropDown1 then in DropDown2 all the options except for "Data Not Collected" should be UNAVAILABLE.
If user selects "No" in DropDown1 then in DropDown2 all the options except for "Data Not Collected" should be AVAILABLE
Thank you in advance for your help!!
Solved! Go to Solution.
Views
Replies
Total Likes
Ven-
If you're asking what I think you are, there's nothing pre-built into the palettes that you can select for list linking in this way. Srini wrote a custom JavaScript macro in order to achieve the results you wanted. If your LiveCycle is still set to default, you can see the program script:
1. Select the drop-down object
2. Look at the top of the screen for a small long narrow window that says "Show" and probably has "initialize" selected.
3. Select "exit" from this drop-down menu.
4. Expand the viewing area of this window, and the script program will be visible to you.
The way to expand your selection is to add the additional options to the scripting. If you're not familiar with JavaScript language, I'm afraid you're out of luck on this one.
Views
Replies
Total Likes
Views
Replies
Total Likes
Srini,
This is exactly what I am looking for - THANK YOU!!! I have no idea how you did this - do you mind telling me what you did on the back end? I would greatly appreciate it if I could get a response quickly.
To be brief, I summarized the question earlier and there are several other items I need to add to drop down list.
Drop Down List 1 (the list is called SBT)
Data NOT collected
Yes pt was switched to PS6 PEEP5
No pt was NOT switched to PS6 PEEP5
Drop Down List 2 (the list is called SBT Contraindications)
Data NOT collected
Patient already on PS6 PEEP5 at 8 AM
Vasopressor in use
PEEP > 8
FiO2 > 0.5
SAS > 5
Patient ventilated for more than 21 days
No SBT Exclusions
If user selects "Yes" in DropDown1 then in DropDown2 all the options except for "Data Not Collected" should be UNAVAILABLE.
If user selects "No" in DropDown1 then in DropDown2 all the options except for "Data Not Collected" should be AVAILABLE
Views
Replies
Total Likes
Have a look at the Exit event code for Dropdown1 field..
I have added the possible entries for Dropdown2 in a two dimensional array and the used the value of the Dropdown1 in the First dimension. Second dimension is the actual array starts with 0 and goes on 1,2,3 etc..
After you choose the value from the Dropdown1, I am passing the selected value in the first dimension and then looping thru the number items that matches with the Dropdown1 value.. Inside the loop I am using the addItem method for Drodown2 to add the items..
Hope this helps..
Thanks
Srini
Views
Replies
Total Likes
Srini,
Your response is above and beyond how much I know about livecycle designer. Any chance you can dumb it down for me? Can you direct me as to what I need to select to do this in version ES 8.2. I just don't know where to start but if you give me some guidance on what to select to get to this point, I can take it from there.
Thank you very much for your help!!
Views
Replies
Total Likes
Ven-
If you're asking what I think you are, there's nothing pre-built into the palettes that you can select for list linking in this way. Srini wrote a custom JavaScript macro in order to achieve the results you wanted. If your LiveCycle is still set to default, you can see the program script:
1. Select the drop-down object
2. Look at the top of the screen for a small long narrow window that says "Show" and probably has "initialize" selected.
3. Select "exit" from this drop-down menu.
4. Expand the viewing area of this window, and the script program will be visible to you.
The way to expand your selection is to add the additional options to the scripting. If you're not familiar with JavaScript language, I'm afraid you're out of luck on this one.
Views
Replies
Total Likes
Thank you so much!! That's all I needed to know...I figured it all out!!!!
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies