hcl-bot
1
Hi, I have a button next to a RT field. The RT field has an attachment in it. The button has this formula behind it:
@Command([EditGotoField];“RTField”);
@Command([EditSelectAll]);
@Command([Clear]);
When I, the user, press the button, I get prompted with the all-to-familiar:
“This operation cannot be undone. Do you wish to proceed? Y/N.”
Is there any way I can suppress this prompt and force it carry out the ‘Clear’?
hcl-bot
2
Subject: @Command([Clear]);
@PostedCommand([EditGotoField];“RTField”);@PostedCommand([EditSelectAll]);
@PostedCommand([EditInserttext]; " ");
@PostedCommand([EditSelectAll]);
@PostedCommand([EditClear])
hcl-bot
3
Subject: RE: @Command([Clear]);
I don’t understand why that works, but, as a Notes developer, i’ve seen crazier things.
I just had to change the last line to [Clear] instead of [EditClear].
Thanks so much Paul! 
hcl-bot
4
Subject: @Command([Clear]);
My preferred way of doing this is:
document.forms[0].RTField.value = “”;
No prompt whatsoever.
hcl-bot
5
Subject: RE: @Command([Clear]);
Thanks again Harkpabst, i’ll probably use your code in future, but in this particular instance, this has to be in Formula.