![]() |
|
#1
|
||||
|
||||
![]() It is not possible to conditionally show/hide formfields. Doing that or conditionally enabling/disabling them would require a macro. Also, instead of Yes and No checkboxes, you should consider having a single dropdown with Yes/No choices. That way, there's no risk of both being checked. Field coding can be used to conditional show/hide your 'Bye' & 'Restriction' text.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#2
|
|||
|
|||
![]()
Hi macropod,
Thank you for your replay. I tried to add simple VBA code, however without any success. What I want to do is: when I choose 'A' from 'drop_list' then in 'Text1" should appear text: 'xxx'. I used this code: Sub OnExitCB1B() If ActiveDocument.drop_list = "A" Then ActiveDocument.FormFields("Text1").Result = "xxx" End If End Sub But it doesn't work :-( Could you give an example how could look macro for enabling/disabling formfields? The case is that I have protected form to be filled. To start filling the template/form we have to choose one option from dropdown list. Then we get an info/text in the formfield below. And what is the most important depend by what we choose from dropdown some section in the document should be enabled/disabled to edit. What you can see each text, like 'Hello' or 'Bye' is added as formfield with disabled fill-in option. I was thinking also about adding text next to different heading. E.x.: when you choose 'A' from dropdown next to 'Bye" should appear text -'do not fill this section'. I'm just learning it and for now it is black magic for me ;-) I see that you have large experience in work with MS Word. I would really appreciate if you could show me the road how to solve it. Regards, AttiCuS |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Macro to keep formatted form fields after mail merge or replace text with formatted form fields | jer85 | Word VBA | 2 | 04-05-2015 10:00 PM |
![]() |
PeterPlys | Word VBA | 13 | 01-14-2015 06:41 AM |
![]() |
thpanos | Word | 3 | 02-17-2013 08:49 AM |
![]() |
LAssist2011 | Word | 5 | 12-14-2011 03:02 PM |
autopopulating REF fields + bookmarks | valz | Word | 10 | 09-01-2011 08:18 AM |