[Solved] Setting button's Additional Info to a field's value

Creating and using forms
Post Reply
cormac
Posts: 2
Joined: Tue Jun 18, 2019 3:02 pm

[Solved] Setting button's Additional Info to a field's value

Post by cormac »

Hello - sorry if this has been asked before, I've searched but may have missed it.

Can I set a button's Additional Information to the value of a field on the form? If so, what's the syntax?

Thanks!
Last edited by cormac on Tue Jun 18, 2019 10:38 pm, edited 2 times in total.
Windows 8.1 OpenOffice 4.1.6
UnklDonald418
Volunteer
Posts: 1544
Joined: Wed Jun 24, 2015 12:56 am
Location: Colorado, USA

Re: Setting a button's Additional Information to a field's v

Post by UnklDonald418 »

If you initiate this macro with an Approve Action event on a push button control you can set the value in the Additional information property.

Code: Select all

Sub SetAdditionalInformationProperty(oEvent as object)
   oEvent.Source.Model.Tag = "SomeTextString" ' or some text field on a form
End Sub
If your problem has been solved, please edit this topic's initial post and add "[Solved]" to the beginning of the subject line
Apache OpenOffice 4.1.14 & LibreOffice 7.6.2.1 (x86_64) - Windows 10 Professional- Windows 11
cormac
Posts: 2
Joined: Tue Jun 18, 2019 3:02 pm

Re: Setting a button's Additional Information to a field's v

Post by cormac »

Great - thank you!
Windows 8.1 OpenOffice 4.1.6
Post Reply