Can anyone help me in solving this challenging problem

my objective is by pressing an action button view one attachment which is attached in a hidden Rich text field.

I think only way to do this is as follows:

In a form I have 1 editable hidden text field (h1)and 1 rich text field which is hidden for a particular value of h1. now on click of an action button the following things should happen in order

  1. the value of h1 will be changed so that rich text field become unhidden

  2. focus the rich text field and view the attachment

  3. change the value of h1 again so that the rich text field hides

this form is only available in Notes client

Now I write the formulae like below:

@Command([EditDocument];1);

@SetField(“h1”;“yes”);

@Command([ViewRefreshFields]);

@Command([EditGotoField];“h1”);

@Command([AttachmentView]);

@SetField(“h1”;“no”);

@Command([ViewRefreshFields])

but this is not working

Thank you in advance

Subject: can anyone help me in solving this challenging problem

h1 field - change to computed with default value “yes” Then hide from R4, mobile etc.

RichTextField - hide formula h1 = “yes”

Action button -

FIELD h1 := “no”;

@Command([RefreshHideFormulas])

This is not saving any information to the document, so it will always be hidden.

If you were to save a change, then you need to remember to reset the h1 field when save/closing the document.