我如何编写代码来完成 "When i click cancel in options windows , that field will hide."

How can i write the code to do "When i click cancel in options windows , that field will hide."

我在Notes文档中有一个字段,字段名称是"reason"。 如果我单击一个按钮,将显示一个选项 windows ,并且该字段将显示出来。 现在我需要知道如何编写代码来完成 "when i click cancel in options windows , that field will hide."。 选项 windows 是 PROMPT_OKCANCELLIST。 以下代码是我在按钮中写的:

If uipr.FieldGetText("TRACK_MARK") = "" Then
    Call uipr.FieldSetText("TRACK_MARK" , "Y")
End If
askme = ws.prompt(PROMPT_OKCANCELLIST,"Track Reason","Please choose reason..." , data(0) , data())
If askme = "" Then
    If uipr.FieldGetText("TRACK_MARK") = "Y" Then
        Call uipr.FieldSetText("TRACK_MARK" ,"")
        Exit Sub
    End If
End If

在带有“原因”字段的表单中,您需要 select 您希望隐藏的段落,然后在“属性”框中,select 如果公式是,则隐藏段落true,然后输入 TRACK_MARK="Y" :

一旦 TRACK_MARK 设置为 "Y",这将隐藏该段落。