Hello everbody,
first of all I don't know the exactly names of the elements in english, because I'm german and using the german version of Infopath. I started yesterday with using Infopath for adding listitems in Sharepoint. Now I would like to make an info-section(name=info_1), which is normally disabled. If the user clicks on the Button (name=info, text=show info) this info-section should be opened and the button-text should be changed to "hide". And if the user clicks again, the section should be disabled and the text should be "show info. I would like to do that with the help of VBscript, but I don't know how to make it. Could you maybe help me?
I started with using this code, but it doesn't work. :) I never worked with a programming language, so I would be very happy if you can help me.
Sub CTRL98_OnClick(eventObj)
XDocument.DOM.selectSingleNode("/my:meineFelder/my:info_1").visible=true
End Sub
thank you
Daniel