Expand my Community achievements bar.

Attachment Requiered before submit

Avatar

Level 7

Hi everyone!

I have a form that requires to attach a resume before user submit the form.

What is the best way to approch this kind of situation?

Is it possible with a button the user to have the ability to attach the resume?

Also for the submit button to inform the user in case they forgot to attach their resume and does not allow

to email the form in case they do not attach the resume?

Thank you

3 Replies

Avatar

Level 10

Hi,

Paul Guerette has an example on the forums for adding attachments using script, however if the user has Reader, then the form would need to be Reader Enabled using the full LC Reader Extensions ES2 server component. That is an important issue to resolve before you spend time developing a solution. see here: http://forums.adobe.com/message/1976160#1976160.

Deploy Options 01 - Attachments.png

http://assure.ly/etkFNU

Hope that helps,

Niall

Avatar

Level 7

Hi Niall, how we can modify the script below without the numeric field and listBox, open-remove and show attachments?

Just all I want is the script to attach a file...

here is the script to attach an attachment:

 

var myDoc = event.target;

var sFile = "myFile" + NumericField1.rawValue;

var myDataObject = myDoc.getDataObject(sFile);

var sFileName = myDataObject.path;

ListBox1.addItem(sFileName,sFile);

NumericField1.rawValue = NumericField1.rawValue + 1;

Avatar

Level 10

Hi,

It is possible to script to attach a file to a form. For example:

app.execMenuItem("AddFileAttachment");

See here: http://assure.ly/umTdwf

However the big issue for you is whether the user has Reader (and not Acrobat) and how you are Reader Enabling the form if they are using Reader. See restrictions above.

Niall