Possibility of a "browse button"?

Hello everyone in the user to user adobe forums,
I was wondering is it possible to add a "browse button" to a pdf form I have created that would allow users to attach another pdf document along with the form. Both the files-the attached and the filled out pdf file-would have to send when the submit button is clicked. The submit button e-mails the document to a specified e-mail address.
Is this possible?
Thank you For your Time,
Todd C. Bey

Todd,
You can do what you want without writing a plugin. Below is some code you can place on the "click" event of a button. This will allow users to only attach PDF files when using this button. Unfortunately, I don't know of a way to enforce this if the user decides to use the Acrobat attachments panel instead of your custom button, but at least it will give you what you were asking for.
Justin Klei
Cardinal Solutions
try
// Variable Declarations and Initializations
var oDoc = event.target;
var attachmentName = "Attachment";
var fileRejected = false;
oDoc.importDataObject(attachmentName);
var oAttachment = oDoc.getDataObject(attachmentName);
var attachPath = oAttachment.path;
var dotloc = attachPath.lastIndexOf(".");
var extension = "";
if (dotloc >= 0) extension = attachPath.substr(dotloc);
if (extension != ".pdf")
oDoc.removeDataObject(attachmentName);
xfa.host.messageBox("Only PDF files can be attached!");
catch (e)
//An exception is thrown if the user cancels from the browse dialog. We need to capture the error and do nothing.

Similar Messages

  • Is it possible to specify a starting FILE for the browse button dialog?

    I realize I can specify a starting directory/folder PATH for the dialog window that opens when the Browse Button for a file path control is clicked. 
    Is there also a way to programatically preset the "File Name" field in the window that pops up?    (for LV v7.1.1)

    You could use a normal path control (without browse button), a browse button boolean control, openg has one. And use a value change event (in that way you can force user to use the dialog). In the event case you can use a browse function where you can set a filename.
    Ton
    Edit: I am not totally sure for 7.1...
    Message Edited by TonP on 12-15-2006 05:30 PM
    Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
    Nederlandse LabVIEW user groep www.lvug.nl
    My LabVIEW Ideas
    LabVIEW, programming like it should be!

  • Close browser button

    Hi there.  Is it possible to add a button in adobe presenter to close the browser window.  I want to launch the e-learning in full screen but once i do so i can easily close the window.
    We have a bit of e-learning done by someone else which has this functionality but the scorm files consist of HTML files not SWF files so I wonder if this causes a problem.

    Sam,
    Create a button in a region position, name and label the button and choose
    "Redirect to URL without submitting page" as the action.
    When you reach the branching part of the create button wizard, choose "URL" as the target.
    fill in "javascript:window.close()" as the URL target.
    Maarten

  • Change language of time/date browse button

    Hi. How I can change the language of time/date browse button. For example,
    i want to change the caption of button "Set time to Now", to the "Time"? Is it possible?
    Thanx.
    Solved!
    Go to Solution.

    The dialog is a VI that is part of the LabVIEW package.
    You can make a copy of this VI and edit the button text as you want.
    look for picktime.vi in your \resource\dialog\ subdirectory of your LabVIEW installation.
    Now is the right time to use %^<%Y-%m-%dT%H:%M:%S%3uZ>T
    If you don't hate time zones, you're not a real programmer.
    "You are what you don't automate"
    Inplaceness is synonymous with insidiousness

  • Browse button / file

    hello :)
    Is it possible to have a button to browse and select a file to retrieve its path of access in forms 10g?
    Thank you for your help

    hi
    u can try to use .
    Client_get_file_name();sarah

  • To create a browse button

    I wish to create a browse button. In path field path will shown . The browsed image or logo will display in logo field. Is it possible in accrobat or LC?
    PlZ help.......
    Message was edited by: greenlnd34

    Leonard,
    This is something I've wanted for a long time and am very surprised to hear that it's possible with Reader since they took it away long ago. Can you explain exactly which usage right is required for this? How about a sample file that demonstrates it works in Reader? In other words, I'd have to see it to believe it.

  • Create Browse button

    Hello Friends
    I want to create a browse button in a Frame using Swing component...
    Is it possible if yes then how
    please solve my problem.
    Nitin

    Hello user626298
    Pls att. the 'd2kwutil' library to ur form..
    Then, look up for the word function Win_Api_Dialog in the help with
    The Win_Api_Dialog.Open_File function
    Syntax
    FUNCTION Win_Api_Dialog.Open_File
    (Title          IN VARCHAR2 DEFAULT 'Open File',
    StartDirectory     IN VARCHAR2 DEFAULT '$WINDIR$',
    FileFilter          IN VARCHAR2 DEFAULT 'All files(*.*)|*.*|',
    Modal          IN BOOLEAN DEFAULT TRUE,
    AdvancedFlags     IN PLS_INTEGER DEFAULT WIN_API.OFN_FLAG_DEFAULT,
    RaiseExceptions     IN BOOLEAN DEFAULT FALSE);
    open a window to select a file which will return a varchar2 with the path of the file,
    then ur whatever.. will be able to diaplay it in your forms field.
    ===================================================
    But i prefere calling the built-in function when using Forms 6i; GET_FILE_NAME
    Example:
    DECLARE
    filename VARCHAR2(256)
    BEGIN
    filename := GET_FILE_NAME(File_Filter=> 'TIFF Files (*.tif)|*.tif|');
    READ_IMAGE_FILE(filename, 'TIFF', 'block5.imagefld);
    END;
    Regards,
    Abdetu..

  • Help required to Place Browse button in Interactive forms

    Hi,
    I am developing an interactive form in which I have to include a browse button. Is it possible?

    Hi Amit,
    Did you already solve this problem?
    I have the request to implement this functionality also and can not find the browse../upload functionality in Adobe Designer.
    I'm using NWDS 7.0.09, adobe designer 7.0.
    As alternative I can make a checkbox in the Interactive Form with value "Want to upload?" > if checked after submit > fire plug to uploadView.
    Does anyone know if there is a way to do this directly in the Adobe Designer?

  • Against browse button textbox is not displayed in latest versions ?

    In earlier versions of Firefox like (5 and before 5) there was a text box against a browse button displayed where you can enter the path directly but in latest versions we are not finding the text box which is very useful can you please let us know when can we bring back the text box against the browse button

    In the latest versions it shows as the attached please let me know any possible way to display as is in old versions

  • Capturing file path using a browse button

    I've created a registration form and need to allow the end user to click the "browse" button and select a directory - not a file. e.g. \\server\share\directory Once the directory has been selected the text field would be populated and eventually stored in the database. Unfortunately, I can't seem to find the right function to capture the directory path. Is it not possible? If not, any other suggestions?
    thanks in advance

    use ASMA with Dynamic conf.
    Ref:
    Accessing ASMA -
    http://help.sap.com/saphelp_nw04/helpdata/en/43/03612cdecc6e76e10000000a422035/frameset.htm
    Dynamic Conf vs variable substitution - /people/shabarish.vijayakumar/blog/2009/03/26/dynamic-configuration-vs-variable-substitution--the-ultimate-battle-for-the-file-name
    Note:
    the get method will help you retrieve the FileName ref. the code in this blog also - Same file name -
    /people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14

  • Event on browse button in fileupload uielement

    Hi All,
    I have a requirement where i am upload the file, as i select the file form browse there is one more filed where user can put the dummy file name i have to default that filed with the selected file name.. how can i meet this requirement ?? is there any event on the browse button where i can write my code.
    and also i want to allow all file formats to be attached , which format should i assign to the object in OAC2??
    Please help me to sortout this.
    Thanks In Advance.

    The Browse Button isn't even generated by Web Dynpro for the FileUpload.  This is built on the client side by the browser. In Web Dynpro we only generate the HTML <input type=file>.  Also from the online help:
    Due to browser restrictions that are unrelated to Web Dynpro ABAP, the previously entered data path might disappear when a FileUpload UI element is clicked. In newer versions of the browser, it is therefore impossible to enter the file name in the entry field. The field always remains empty. Neither are any possible restrictions displayed, for example, file names or file name extensions. The selection of the file name is therefore only possible in new browser versions using the Browse... button. You cannot enter the file name manually (using the keyboard or copy and paste functions) or by setting the file name from the back end (directly or using context binding).
    These are security restrictions put in place to make sure that only the user is selecting the file for upload.  This way you can't script and grab a file the user doesn't want you to have.  You can imagine how dangerous that would be on the internet.

  • Slow load of browse button for Add Folder Link

    When our user adds a folder link and clicks the browse button the window loads extreamly slow. When admin privileges are applied it loads quickly, but with the standard group permissions that window loads terribly slow. I have a feeling it is realated to Portal checking permissions as it maps out the content area. Has anyone experienced this behavior and possibly found a solution to speed things up? Thanks!

    Olney,
    3.0.9.8.2 has a perf. patch. Check Metalink->Patches->Internet Products->Portal->
    queries on wwsec_sys_priv are very expensive.
    You need to use wwsbr_stats.gather_stats
    When our user adds a folder link and clicks the browse button the window loads extreamly slow. When admin privileges are applied it loads quickly, but with the standard group permissions that window loads terribly slow. I have a feeling it is realated to Portal checking permissions as it maps out the content area. Has anyone experienced this behavior and possibly found a solution to speed things up? Thanks!

  • Metadata as a "browse button".

    Hi,
    How can I insert a metadata as a "browse button"?. My intention is to upload images to the content server in the entry form content.
    Greetings.

    Leonard,
    This is something I've wanted for a long time and am very surprised to hear that it's possible with Reader since they took it away long ago. Can you explain exactly which usage right is required for this? How about a sample file that demonstrates it works in Reader? In other words, I'd have to see it to believe it.

  • Does 6.0.2 have a problem with upload/browse buttons on sites or the save as/open file/export bookmark option or is it just me?

    The box to select a file from/to the HD doesn't open. I can't save pages, images, Export/Import the Bookmarks via HTML, open file (CTRL+O), upload images via a browse button on sites, etc. Since I don't have a printer Print print (CTRL+P) defaults to xps which requires a save as dialog.
    Only in Firefox.
    Version 6.0.2
    Windows XP SP3
    Last confirmed save as via Firefox was August 22nd.

    Well I don't know, I do see in your system details it says..
    WebGL Renderer
    Blocked for your graphics driver version. Try updating your graphics driver to version 6.14.10.5218 or newer.
    GPU Accelerated Windows
    0/3. Blocked for your graphics driver version. Try updating your graphics driver to version 6.14.10.5218 or newer.
    Maybe you driver is causing issues??? I confess I am at a loss.
    http://www.intel.com/support/chipsets/sb/CS-026488.htm

  • Detect if time/date browse button was used

    Hi,
    I have a position control vi for indexing elements inside array and displaying corresponding time and date. I have large number of control signals inside my block, but I have removed all irrelevant blocks and signal for this discussion. I have replaced all unnecessary controls with constant values, so don't waste time analyzing it.   
    If you take a look at my vi, you will see Star/Stop control, Position control and a time stamp indicator (Waveform time) with a time/date browse button from another time stamp control. I have all desired functionalities, but I have problem when using browse button for setting up time. I can't set my time two times in a row at same value because I'm comparing "Last entered time stamp" value with current one just entered. I would not like to completely change my blocks because I'm using a lot of property nodes and variables inside my project. I'm just looking for a way to figure out if time/date browse button has been pressed so I could jump to desired point in my recorded waveform.   
    Solved!
    Go to Solution.
    Attachments:
    position_control_lite.vi ‏16 KB

    I can't change Waveform Time Indicator to a Control because that would make other controls much complex (not shown in attached vi)
    I have modified my block to the simplest form. I have changed some control names.
    There is now only one problem - how can I detect if user has pressed time/date browse button? I'm not interested at this point which value has been entered.
    I need to replace User has entered value in  Jump to time/date with some kind of Boolean logic or event case.
    Message Edited by _thomas on 11-17-2009 09:23 AM
    Attachments:
    position_control_lite_lv8.6.vi ‏14 KB
    position_control_lite_lv8.0.vi ‏19 KB
    position_control.png ‏33 KB

Maybe you are looking for

  • Enhancement not getting reflected in Info Cube

    Hello Friends, I have made enhancement for getting additional data in the InfoCube 0SD_C03 fro data source 2LIS_13_VDITM .I have made changes in Communication Structure and transfer structure as well . But i am getting the required data in the psa an

  • Down payment in fixed asset

    Hi, I want to configure the recording of down payment on asset (F-48) where when down payment will be made asset will be debited and down payment on asset clearing account will be credited. I found out that there we need to do configuration in OAYB i

  • Which Interface table should I select

    I require to insert data into the interface tables for the shipping done against the customer order. I have doubt as to which interface tables are to be selected. I am listing the interface tables which are known to me. 1. WSH_DELIVERIES_INTERFACE 2.

  • BDC for CJ20N

    Hi Sapgurus, I written one bdc program for CJ20N. My requirement is to create project defination by using existing project defination. In recording iam clicking network overview buttton but that ok-code is not capturing what might be the reason. Iam

  • Black screen but vibrates when charging

    I knocked my phone on the table and now the screen is black but it continues to vibrate when I have it plugged into my charger - HELP