I have a button in the body of an email message. I would like to delete the button once the user clicks it. This is necessary so that the user does not click it a second time. Any advice on how to do this? We are using various R5 and R6 clients. Thanks
Subject: Remove a Button from Rich Text Field
Quick and dirty - put a hide-when on the paragraph the button is in based on a field (call it HIDE_BUTTON say)Have the button create and populate that field.
This might not work if the document is in read mode though.
Subject: RE: Remove a Button from Rich Text Field
Thanks for the reply. I am going to store the form in the document and use a mail-in database instead. I will have a lot more flexibility with what I am trying to achieve as there will be several automated emails being sent.
Subject: RE: Remove a Button from Rich Text Field
Oh no! Don’t store the form in the document! What a waste of space!
Have the text of your email, including the button, in a rich text field in a document somewhere. Put a hide formula on the button that checks for some field not ordinarily present in an email message, and hides the button if that field has a particular value. When the button is clicked, its script sets the value of that field in the current document (in the back end), saves it (back end), and closes the document (front end – then you can reopen it if you want). It doesn’t matter that the field is not defined on the Memo form. To generate your emails, find the document containing the predefined content and plop it in the body of a new back-end memo document. If the content is variable, you can use a form instead of a document to model the content, and RenderToRTItem to change the form to rich text that you can mail. If there are values that control the operation of the button, they also can be written into fields that aren’t on the memo form, so the user won’t see them but they’ll be there in the memo document for the button to use.