Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 01-07-2024, 12:48 PM
rodymary rodymary is offline Trouble in Word Forms when mixing native and activeX controls Windows 10 Trouble in Word Forms when mixing native and activeX controls Office 2021
Novice
Trouble in Word Forms when mixing native and activeX controls
 
Join Date: Jan 2024
Posts: 2
rodymary is on a distinguished road
Default Trouble in Word Forms when mixing native and activeX controls

Hi



I'm trying to design a form using different kind of controls, like simple text fields (these directly present in the developer tab) and some activeX controls like option buttons.



Here my simple form in example :



Once "restrict Editing" is set to "Filling in forms" only, i've got a strange behavior :
you're able to modify all the text fields, until you click an option buton, and then the text fields will become unchangeable

Please have a look at the video a made here
Sorry, word is in french but you'll understand my problem

Or just play with my word file, see attached.

I managed to get the textbox editable again by pressing SHIFT+TAB to higlight the textbox. Looks like a "focus" problem.

I must say that if I deactivate the editing restriction, it is working fine that way.

If you have an idea, I looked through different forums but couldn't find anything that explains this behavior.

Thanks
Rod
Attached Files
File Type: docx word form.docx (22.8 KB, 2 views)
Reply With Quote
  #2  
Old 01-07-2024, 03:30 PM
Guessed's Avatar
Guessed Guessed is offline Trouble in Word Forms when mixing native and activeX controls Windows 10 Trouble in Word Forms when mixing native and activeX controls Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 3,977
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

I tested your form and used tab and spacebar to select/unselect an option and it worked fine so I was wondering what was different. Then I found that using the mouse to move around in the fields when leaving the option buttons is where the problem arises. So I agree with you that it appears to be a focus problem and I don't know if there is a fix without using macros.

Instead, I would recommend you replace the ActiveX option buttons with the Content Control alternative - a Dropdown List Content Control is the most similar in functionality. I have no idea why Microsoft hasn't implemented an Option button equivalent in Content Controls - it seems like it would make a lot of sense for them to do so.
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote
  #3  
Old 01-08-2024, 12:03 PM
Charles Kenyon Charles Kenyon is offline Trouble in Word Forms when mixing native and activeX controls Windows 11 Trouble in Word Forms when mixing native and activeX controls Office 2021
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,140
Charles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant future
Default

Try the attached. I changed the protection. Removed the Filling in Forms protection (which in my opinion should seldom be used with anything except legacy forms) and instead selected everything and applied a Group Content Control from the Developer Tab.

Seems to work fine.


The following references may be helpful but do not refer to your problem directly.

If you need password protection (which is not that strong anyway) you could also have it set for No Changes, with exceptions for your option buttons and your Content Controls.
Attached Files
File Type: docx deleteme word form.docx (23.1 KB, 2 views)
Reply With Quote
  #4  
Old 01-08-2024, 02:41 PM
Guessed's Avatar
Guessed Guessed is offline Trouble in Word Forms when mixing native and activeX controls Windows 10 Trouble in Word Forms when mixing native and activeX controls Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 3,977
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

I can confirm that Charles' solution works for me too so that gives you a solution that better aligns with your original request and doesn't require any form redesign. However it has a secondary effect that you may want to consider. It doesn't allow the user to use Tab or Shift-Tab to move between form fields.

So I guess you need to decide if the majority of your users move around the form with Tab or with the Mouse.
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote
  #5  
Old 01-09-2024, 07:24 AM
Charles Kenyon Charles Kenyon is offline Trouble in Word Forms when mixing native and activeX controls Windows 11 Trouble in Word Forms when mixing native and activeX controls Office 2021
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,140
Charles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant future
Default

Quote:
Originally Posted by Guessed View Post
I can confirm that Charles' solution works for me too so that gives you a solution that better aligns with your original request and doesn't require any form redesign. However it has a secondary effect that you may want to consider. It doesn't allow the user to use Tab or Shift-Tab to move between form fields.

So I guess you need to decide if the majority of your users move around the form with Tab or with the Mouse.

This is an artifact, at least, in part, of using a Rich Text CC rather than a plain text CC. Rich Text controls capture the tab as a character inside the control.
Reply With Quote
  #6  
Old 01-11-2024, 09:43 AM
rodymary rodymary is offline Trouble in Word Forms when mixing native and activeX controls Windows 10 Trouble in Word Forms when mixing native and activeX controls Office 2021
Novice
Trouble in Word Forms when mixing native and activeX controls
 
Join Date: Jan 2024
Posts: 2
rodymary is on a distinguished road
Default

Thank you guys for this collegial response, it will do the job perfectly !
Rod
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Trouble in Word Forms when mixing native and activeX controls ActiveX Controls not showing when pasted from Word to Email Body Skahtn Word 1 09-06-2017 02:41 PM
Trouble in Word Forms when mixing native and activeX controls Word VBA: ActiveX Controls Revert to Design Mode? wlcdo2 Word VBA 3 01-23-2017 10:26 PM
Trouble in Word Forms when mixing native and activeX controls ActiveX controls on Worksheet stopped working Johauuez Excel Programming 10 12-12-2014 08:57 PM
Word Forms - Active X Controls - Drop Down Menu Value Assignments AMackenzieFFCU Word 0 01-04-2013 08:25 AM
Need help with placeholder text in ActiveX controls in Word mhellerstein Office 0 11-02-2011 12:31 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 07:04 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft