[Solved] Deactivate XML form list box

Writing a book, Automating Document Production - Discuss your special needs here
Post Reply
nxr
Posts: 2
Joined: Fri Apr 22, 2022 10:11 pm

[Solved] Deactivate XML form list box

Post by nxr »

Hey guys,

id like to deactivate a specifik list box if an other list box got switchen to answer No.
testest.JPG
if choosed no, grey out/deactivate the one below.

is that somehow possible?
Last edited by MrProgrammer on Thu Jun 02, 2022 4:15 am, edited 1 time in total.
Reason: Tagged ✓ [Solved] -- MrProgrammer, forum moderator
windows 10 - OpenOffice 4.1.11
nxr
Posts: 2
Joined: Fri Apr 22, 2022 10:11 pm

Re: Deactivate XML form list box

Post by nxr »

Can nobody help me with this?
windows 10 - OpenOffice 4.1.11
John_Ha
Volunteer
Posts: 9584
Joined: Fri Sep 18, 2009 5:51 pm
Location: UK

Re: Deactivate XML form list box

Post by John_Ha »

I doubt that is something many people have experience of.

I would suggest you check the manual, check Help, and search the forum.

I wonder if you can read the value in the first and hide a section containing the second?
LO 6.4.4.2, Windows 10 Home 64 bit

See the Writer Guide, the Writer FAQ, the Writer Tutorials and Writer for students.

Remember: Always save your Writer files as .odt files. - see here for the many reasons why.
User avatar
RoryOF
Moderator
Posts: 34787
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: Deactivate XML form list box

Post by RoryOF »

John_Ha wrote: Fri May 20, 2022 10:12 pm I wonder if you can read the value in the first and hide a section containing the second?
That would be my approach. Make the code sequential - display Listbox1; if it returns True selected, then display Listbox2.
Apache OpenOffice 4.1.15 on Xubuntu 22.04.4 LTS
JeJe
Volunteer
Posts: 2931
Joined: Wed Mar 09, 2016 2:40 pm

Re: Deactivate XML form list box

Post by JeJe »

The attached writer document has a second listbox enabled or not enabled depending on the first listbox value being changed to "No" or to something else instead. The listbox change event is used to call a one-line macro to set this.
Attachments
enable other listbox.odt
(10.49 KiB) Downloaded 317 times
Windows 10, Openoffice 4.1.11, LibreOffice 7.4.0.3 (x64)
Post Reply