Electric_Soul Posted May 19, 2022 Posted May 19, 2022 (edited) Hello I managed to insert fieldnames into a word file, which MBS is able to find using the "WordFile.FieldNames" function. However if I want to set a value into one of those fields, MBS throws the following error "[MBS] Failed to find field: Test03". I also tried combing controlfields(this is what the MBS plging is calling fieldnames) with "text form fields". But nothing,..... Questions How do I have to setup a word file, in order to effectively use the "WordFile.SetFieldText" function correctly? Is it possible to set a "true" value for a checkbox using fieldnames? If so... please tell me too Thank you Have a nice day Robert Edited May 19, 2022 by Electric_Soul
Electric_Soul Posted May 24, 2022 Author Posted May 24, 2022 It looks like the MBS plugin does not work with all content controls. With the following Word Version this text control works. But you must name the control here.
Electric_Soul Posted May 25, 2022 Author Posted May 25, 2022 (edited) Ok... so I managed to set checkboxes too :=) First of all. Do not use leagcy controls. If you need to set a checkbox, use the WordFile.SetFieldText function, to obtain the value from a already set checkbox. MBS plugin has an example fmp12 files, to help out. However setting checkboxes seems flawed. If you open a word file that was manipulated with MBS and you click on a checked checkbox, you'll notice than the checkbox is not being unchecked. Only if you click twice. You could also set any characters into the checkbox field. If you'd click on those characters, then they'd be replaced with the checkbox sign. I'd say this basically means, that the checkbox is not being set at all. But it looks like it. So... not ideal, but enough for my purposes. Edited May 25, 2022 by Electric_Soul
Recommended Posts
This topic is 1248 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now