PC Review


Reply
Thread Tools Rate Thread

Conditional Appearance of Form Sections Based on Option/Radio Selections

 
 
wordUser
Guest
Posts: n/a
 
      18th May 2010

Suppose I have a form like the one below between the two sets of
double/equal sign lines.

Section 1 asks the user to specify a type from 4 possible options (in an
HTML form, these would be radio-style options).

Section 2 then shows one of four fieldsets, depending on the option
selected in Section 1. These include field labels (like "Equipment
manufacturer name:"), and of course field inputs, some being one- or
multi-line text boxes (perhaps with validation of input), others something
similar to an HTML select element (see the "how many persons..." field),
which when selected/changed, creates another fieldset of controls whose
count is based on the selection.

I am thinking of doing this form up in Word, with appropriate VB code, and
that this form will be set up properly in PDF when rendered. My ability
to code in VB is virtually nil, and I have a passing familiarity with
Adobe Acrobat Javascript (I have no problem with Javascript in HTML
documents).

I am thinking to have this form available in both Word docx form and in
PDF, which is why I want the trouble with Word. Where can I get a quick-
and-dirty tutorial in coding in VB to get form sections to appear and
disappear based on option selections? Will this code be properly set up
in Adobe PDF version of the form, or do I have to play with Javascript?

==================================================================
1. Choose the type of report you are making:

[ ] Equipment broken
[ ] Equipment out of calibration
[ ] Incident/conflict with person
[ ] Dispute or protest about operating policy


2. Please describe

-------------- Option 1 selected ----------
Equipment manufacturer name:
Equipment model/product name and/or number:
Equipment serial number:
Equipment location:
Date and time of defect or break or its first observation:
Short title/description of defect or break:
Detailed description of defect or break:
-------------- Option 2 selected ----------
Equipment manufacturer name:
Equipment model/product name and/or number:
Equipment serial number:
Equipment location:
Date and time when uncalibrated state noticed:
Short title/description :
Detailed description of equipment's uncalibrated state:
-------------- Option 3 selected ----------
Location of incident (if multiple locations, list all):
How many persons were involved in the incident/conflict? [ ]
==> create list count depdending on answer
1. Name:
2. Job title:
3. Description of behavior of this person
Additional Comments:
-------------- Option 4 selected ----------
Institute Policy Details (list title of policy and number, if it has one)
Points of Disagreement (best presentation is bulleted or numbered list of
the separate points at issue):
==================================================================




I can do Javascript (as in Adobe Acrobat), but my ability to code in
VisualBasic is quite stunted.
 
Reply With Quote
 
 
 
 
Doug Robbins - Word MVP
Guest
Posts: n/a
 
      18th May 2010
See the following pages of Greg Maxey's website :

http://gregmaxey.mvps.org/Create_and...a_UserForm.htm

http://gregmaxey.mvps.org/Populate_UserForm_ListBox.htm


--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP, originally posted via msnews.microsoft.com

"wordUser" <(E-Mail Removed)> wrote in message
news:Xns9D7C735DD4231SMH1960@207.46.248.16...
>
> Suppose I have a form like the one below between the two sets of
> double/equal sign lines.
>
> Section 1 asks the user to specify a type from 4 possible options (in an
> HTML form, these would be radio-style options).
>
> Section 2 then shows one of four fieldsets, depending on the option
> selected in Section 1. These include field labels (like "Equipment
> manufacturer name:"), and of course field inputs, some being one- or
> multi-line text boxes (perhaps with validation of input), others something
> similar to an HTML select element (see the "how many persons..." field),
> which when selected/changed, creates another fieldset of controls whose
> count is based on the selection.
>
> I am thinking of doing this form up in Word, with appropriate VB code, and
> that this form will be set up properly in PDF when rendered. My ability
> to code in VB is virtually nil, and I have a passing familiarity with
> Adobe Acrobat Javascript (I have no problem with Javascript in HTML
> documents).
>
> I am thinking to have this form available in both Word docx form and in
> PDF, which is why I want the trouble with Word. Where can I get a quick-
> and-dirty tutorial in coding in VB to get form sections to appear and
> disappear based on option selections? Will this code be properly set up
> in Adobe PDF version of the form, or do I have to play with Javascript?
>
> ==================================================================
> 1. Choose the type of report you are making:
>
> [ ] Equipment broken
> [ ] Equipment out of calibration
> [ ] Incident/conflict with person
> [ ] Dispute or protest about operating policy
>
>
> 2. Please describe
>
> -------------- Option 1 selected ----------
> Equipment manufacturer name:
> Equipment model/product name and/or number:
> Equipment serial number:
> Equipment location:
> Date and time of defect or break or its first observation:
> Short title/description of defect or break:
> Detailed description of defect or break:
> -------------- Option 2 selected ----------
> Equipment manufacturer name:
> Equipment model/product name and/or number:
> Equipment serial number:
> Equipment location:
> Date and time when uncalibrated state noticed:
> Short title/description :
> Detailed description of equipment's uncalibrated state:
> -------------- Option 3 selected ----------
> Location of incident (if multiple locations, list all):
> How many persons were involved in the incident/conflict? [ ]
> ==> create list count depdending on answer
> 1. Name:
> 2. Job title:
> 3. Description of behavior of this person
> Additional Comments:
> -------------- Option 4 selected ----------
> Institute Policy Details (list title of policy and number, if it has one)
> Points of Disagreement (best presentation is bulleted or numbered list of
> the separate points at issue):
> ==================================================================
>
>
>
>
> I can do Javascript (as in Adobe Acrobat), but my ability to code in
> VisualBasic is quite stunted.


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Conditional Selections based on a Field TheDrescher Microsoft Access Form Coding 3 10th Mar 2010 08:38 PM
Query based on two option group selections jonfromdon Microsoft Access Queries 4 7th Apr 2008 03:38 PM
Report based on selections on a form =?Utf-8?B?VFQ=?= Microsoft Access Reports 1 29th May 2005 01:47 AM
selections based on a option button and a combo box. =?Utf-8?B?dGFsa3RvYmF0Y2h1?= Microsoft Access Forms 2 22nd Apr 2005 07:55 PM
Word Form Sections option disabled (grayed-out) Bob Microsoft Word Document Management 1 15th Jul 2004 04:42 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:29 AM.