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?