Is it possible to utilize radio buttons in a writer document without the need of macros?
Ultimately, I am looking to implement conditional text based upon a simple Y/N variable. I can do this simple enough with a user field where the user types in 'Y' or 'N' and then reference that field for the conditional text, but was looking to simplify and make the document/form a bit cleaner by using a radio button group where the user simply selects Yes or No instead of needing to type to a variable.
This would seem a simple enough task, and have tried referencing the name of the button group within the conditional text formula but get no result. I've done some searching and most things I find are expecting to tie the document/form to a database (which I am not looking to do) and otherwise default to using macros for obtaining the group value.
I guess I am looking to tie the radio button group to a Y/N variable within the document so that I can then reference that value for further functionality within the document without the use of a macro. Perhaps this is not possible though.
Or if there is another form control that can be utilized in this way without macros, please let me know.
Thanks,
A.Fish
[Solved] Radio buttons & variables without macros
[Solved] Radio buttons & variables without macros
Last edited by MrProgrammer on Sat Sep 28, 2024 4:13 pm, edited 1 time in total.
Reason: Tagged ✓ [Solved] Q: Radio button w/o macros; A: No; Workaround suggested -- MrProgrammer, forum moderator
Reason: Tagged ✓ [Solved] Q: Radio button w/o macros; A: No; Workaround suggested -- MrProgrammer, forum moderator
Windows 10
OpenOffice 4.1.12
OpenOffice 4.1.12
Re: Radio Buttons & Variables
I don't see that the form controls know anything about the field variables [edit: or vice versa] and you have to use a macro.
A different approach might be to have the user delete or hide the choice they don't want. Or you could have something like below where "yes condition is met" has the hidden character attribute
A different approach might be to have the user delete or hide the choice they don't want. Or you could have something like below where "yes condition is met" has the hidden character attribute
Then the user treble clicks to select paragraph and clicks on a default formatting button to show the hidden text.Item:
Item: yes condition is met
Windows 10, Openoffice 4.1.11, LibreOffice 7.4.0.3 (x64)