Dynamic stamp has to save the document with the name the user filled in.
Hello,
I've created a dynamic stamp. When the user choose for this stamp the stamp "ask" for some answers.
The stamp ask the period, cost center, filename, company, ......Then I want that the document (with the approved stamp) will be saved with the filename the user has filled in.
Then the second question : how can I put a radio button in the stamp. I want to ask if the document is an invoice or an other document.
The question : Is this an invoice document ? And the user has to choose the YES or NO radio button
Then the third question. Depending on the YES or NO I want to save this document in the directory from the company (choosing from a dropdown) and then in the "invoice" or "various" directory.
I've a Folder Level Script you find on the internet but what do I've to fill in the text button - tab 'calculate' ?
Who can help me ?
mySaveAs Folder Level Script :
- var mySaveAs = app.trustedFunction(
- function(oDoc, cPath, cFlName) {
- // Ensure path has trailing "/"
- cPath = cPath.replace(/([^/])$/, "$1/");
- try {
- app.beginPriv();
- oDoc.saveAs(cPath + cFlName);
- app.endPriv();
- } catch (e) {
- app.alert("Error During Save - " + e);
- }
- }
- );
