These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Sequencing dropdown lists

JuneeGirl
Registered: Nov 17 2009
Posts: 3

Hi - I am struggling as a novice to Livecycle and Javascript and hope someone can help (I have scoured many references and forums without success so far and have decided to just ask!)

In the referral form I am designing, I have set up two dropdown boxes - one with a list of all available Clinics and the other with the names of all Specialists employed in the hospital.

A script links each Clinic with the specialists who work in that area eg. select "Respiratory" as the Clinic and only the Respiratory physicians appear as choices in the second box.

This works properly if the user completes the form in this intended sequence and doesn't change his mind. If he does, he can go back to the Clinic dropdown box, choose another Clinic such as "Cardiology" and the Respiratory physician's name will remain in the second box.

If the user is navigating with a mouse, he can just click on any other field and continue entering other data on the form, leaving incorrectly matched Clinic and Specialist.

I have included an instruction on the form to choose Clinic first but who knows how effective that will be in avoiding this potential problem.

Any ideas for controlling the sequence or making the dependant selection disappear if the user goes back and changes the first one?

My Product Information:
LiveCycle Designer, Windows
pforms
Registered: Nov 17 2009
Posts: 87
Use a Reset Button to erase selected options
JuneeGirl
Registered: Nov 17 2009
Posts: 3
Thanks for your response, pforms.

I had tried using a reset button, thanks to a script I found in an earlier posting to this forum:

[click event]
{
ClinicName.rawValue = "";
SpecialistName.rawValue = "";
}

...and that did work. However, f I made a second selection and then hit the reset button again, on the third attempt at selection, it didn't offer the full set of options in the dropdown boxes anymore.

Is there a way to amend the script so that it keeps operating? Or should I have more confidence in my users!!

On the other hand, maybe I just need to find a way to prevent selection of Specialist before Clinic is selected as a way of solving my problem - in which case, that is off thread and I can post it to the forum separately.

Cheers.