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

Basic Design question by dummy!

BasildonPete
Registered: Sep 12 2011
Posts: 1

I am non-scripting-literate, non-IT person trying to design forms for use within a hospital.
 
What I want to do is have a form which has two radio buttons at the top; "Inpatient Referrals" and "Outpatient Referrals". When a doctor selects one of them, I want different fields to appear below which the doctor can then fill in via the computer before printing.
 
What I think is that I need to create subforms which then appear according to the radio button selected, but I cannot work out how this function works.
 
Can anyone please point me in the right direction using as much laymans speak as possible?
 
Thanks
 
Pete
 

My Product Information:
LiveCycle Designer, Windows
Dimitri
Expert
Registered: Nov 1 2005
Posts: 1389
Hi BasildonPete,

Have you checked out the On-Demand e-seminars here at AUC? There are several videos that cover how to set up the subforms and how to get the dynamic form features you want. This would be the best place for you to start, then try out what is shown in the videos and if you have a specific issues come back to the forums with what you have tried that isn't working.

http://acrobatusers.com/events/2008/04-0
http://acrobatusers.com/events/1840/creating-interactive-forms-livecycle-designer-windows-only
http://acrobatusers.com/events/49326/tech-talk-developing-flowable-form-content
http://acrobatusers.com/events/1836/extending-livecycle-forms-javascript-and-formcalc
http://acrobatusers.com/events/1651/advanced-forms-and-livecycle-designer

Hope this helps,

Dimitri



Eamy
Registered: Sep 6 2011
Posts: 4
If you can't follow some of the tutorials, you could use subforms and set their presence to hidden, then by your doctors selecting either 'Inpatients' or 'Outpatients', you can show or hide the subforms. for instance, if you create two subforms, called them 'in' and 'out', put what ever you need to be seen in them, i.e. fields etc.

Then use someting like the following script on the Change event ensuring you select Javascript and not Formcalc.

if (xfa.event.newText=="Inpatient")
form1.subform1.in.presence="visible";
else form1.subform1.in.presence="hidden";

if (xfa.event.newtext=="Outpatient")
form1.subform1.out.presence="visiible";
else form1.subform1.out.presence="hidden";

Don't forget to set the two subforms to hidden before running the form.

Let me know how you get on.

Eamy

Overworked and Underpaid

Eamy
Registered: Sep 6 2011
Posts: 4
Oops

Forgot to say, create the options of Inpatient and Outpatient in a drop list box.

Overworked and Underpaid