intouchsystems
asked on
How do you refresh fields on keyword change for a text field in Lotus Notes
Hi Experts.
I have a form that I want people to fill in which contains text fields, once they have entered some text in there I want a button to appear for them to be able to submit. I dont want the button to appear until they have entered text in there.
I have it all up and running but at the minute you have to save the form and go back in for the button to appear, or else press F9 to refresh the form and then the button appears. I know that if it was a radio button under options you can tick a box to refresh on keyword change, but this is not availble on text fields. Does anyone of a way round this?
Thanks
I have a form that I want people to fill in which contains text fields, once they have entered some text in there I want a button to appear for them to be able to submit. I dont want the button to appear until they have entered text in there.
I have it all up and running but at the minute you have to save the form and go back in for the button to appear, or else press F9 to refresh the form and then the button appears. I know that if it was a radio button under options you can tick a box to refresh on keyword change, but this is not availble on text fields. Does anyone of a way round this?
Thanks
You could put code in the exiting event of the field, to refresh hide formulas in the uidoc.
ASKER
Thanks for the comment gingerdeb. Can you elaborate a bit on that and maybe give me an example?
Do you mean code on the text box or the button I am trying to hide/unhide?
Do you mean code on the text box or the button I am trying to hide/unhide?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
In the Exiting event of the particular field that you want to test for a value and dislay a button, you could put something like:
Dim ws as New NotesUIWorkspace
Dim uidoc as NotesUIDocument
Set uidoc = ws.CurrentDocument
If Not (uidoc Is Nothing) Then
If uidoc.FieldGetText("Nameof Field") <> "" Then
uidoc.RefreshHideFormulas
End if
End If
Dim ws as New NotesUIWorkspace
Dim uidoc as NotesUIDocument
Set uidoc = ws.CurrentDocument
If Not (uidoc Is Nothing) Then
If uidoc.FieldGetText("Nameof
uidoc.RefreshHideFormulas
End if
End If
Glad to help.
ASKER
The only issue with the Automatically refresh fields option I have found is that you need to move to the next field or press refresh manually (F9) for it to work
That would require type ahead. This is only available in the limited selection fields. Combo, name, author...
The only other time I have seen this as an issue is when there is a custom save, print or other button. The user can type in the field, then press this button before tabbing out. The refresh is not done and the other fields are not updated. Add a refresh command to the button, if this is the case.
The only other time I have seen this as an issue is when there is a custom save, print or other button. The user can type in the field, then press this button before tabbing out. The refresh is not done and the other fields are not updated. Add a refresh command to the button, if this is the case.