F
Francisco
Hello all,
I have two option buttons (yes/no), that when the users selects "Yes" an
optional section needs to show.
I am using InfoPath 2007. I already got how to get the value selected by
the user using the OnAfterChange function, but now I need to get the part
where the optional selection shows. Any hints will be greatly appreciated.
thank you.
<InfoPathEventHandler(MatchPath:="/my:lw/my:signedData/my:details/my:alcoholServed", EventType:=InfoPathEventType.OnAfterChange)> _
Public Sub alcoholServed_OnAfterChange(ByVal e As DataDOMEvent)
' Write your code here to restore the global state.
Dim strOption As String
strOption =
FirmToolbar.GetNodeValue("/my:lw/my:signedData/my:details/my:alcoholServed")
If strOption = "Yes" Then
' An undo or redo operation has occurred and the DOM is
read-only.
Return
End If
' A field change has occurred and the DOM is writable.
' Write your code here.
End Sub
I have two option buttons (yes/no), that when the users selects "Yes" an
optional section needs to show.
I am using InfoPath 2007. I already got how to get the value selected by
the user using the OnAfterChange function, but now I need to get the part
where the optional selection shows. Any hints will be greatly appreciated.
thank you.
<InfoPathEventHandler(MatchPath:="/my:lw/my:signedData/my:details/my:alcoholServed", EventType:=InfoPathEventType.OnAfterChange)> _
Public Sub alcoholServed_OnAfterChange(ByVal e As DataDOMEvent)
' Write your code here to restore the global state.
Dim strOption As String
strOption =
FirmToolbar.GetNodeValue("/my:lw/my:signedData/my:details/my:alcoholServed")
If strOption = "Yes" Then
' An undo or redo operation has occurred and the DOM is
read-only.
Return
End If
' A field change has occurred and the DOM is writable.
' Write your code here.
End Sub