Attachment Button in Form? (Formula or Script)

Is there a way to put an “Add Attachment” button on a form? I’m imagining something like @Command([FileAttach]), but can’t find anything.

(NOTE: This is for a Notes client only – NOT a web application.)

Subject: Attachment Button in Form? (Formula or Script)

You could use a RichTextLight field. This will do it for you without any code. You can then limit it to allow attachments only.

Subject: RE: Attachment Button in Form? (Formula or Script)

Wow… That’s cool! I would still like to get a regular button to work, but this should work as a fall-back.

Thanks!

Subject: RE: Attachment Button in Form? (Formula or Script)

marc,

try this code:

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

@Command([EditInsertFileAttachment])

This will give the user a prompt box to select their attachment and add it to the field you want. The field needs to be editable to work

Dwain

dwain.wuerfel@harlandclarke.com

Subject: Attachment Button in Form? (Formula or Script)

Marc,

try @Command([EditInsertFileAttachment])

HTH,

Neil

Subject: RE: Attachment Button in Form? (Formula or Script)

Thanks! That looks like it should work, but I get a Notes error: “Cannot execute the specified command.”

The document is open in edit mode with the cursor in a rich text field. All access seems fine – I can attach to that field using the Notes attach button or File>Attach.