Dim ws As New NotesUIWorkspace
Dim uidoc As NotesUIDocument
Set uidoc = ws.CurrentDocument
Call uidoc.FieldSetText("iLagi","2")
Call uidoc.Refresh
Call uidoc.RefreshHideFormulas 'if you need
End Sub
The event is triggered if you leave the field or recalculate the document after changing the content of the field.
I’m trying to do something similar, I want to modify enter a value into two fields based on the OnChange of a Radio Button.
One needs to be populated with today’s date
The other needs to populate with the users name (variable, depending on user i.e., who pushed the button).
The method in this thread seems to only provide a fixed text output. Can you do a date? Can you do a variable text field? Can we add in an If/Then arguement to make it conditional on what the Radio button is changed to?
I want to enter a value into two fields based on the OnChange of a Radio Button.
One needs to be populated with today’s date.
The other needs to populate with the users name (variable, depending on user i.e., who pushed the button).
The method in this thread seems to only provide a fixed text output. Can you do a date? Can you do a variable text field? Can we add in an If/Then arguement to make it conditional on what the Radio button is changed to? I’m trying to do something like this: @if(StatusDR := “Completed”; CompDateDR := @date(now);””); @if(Status DR := “Completed”; CompByDR ;= @Name([CN]; @UserName;””);
I managed to get this to populate my name:
Sub Onchange(Source As Field)
Dim ws As New NotesUIWorkspace
Dim uidoc As NotesUIDocument
Set uidoc = ws.CurrentDocument
Call uidoc.FieldSetText(“CompByDr”,“Clayton”)
Call uidoc.refresh
End Sub
But the user changes so this isn’t sufficent. Any help you could provide would be appreciated. Thank you.