Disable a Form Javascript in Acro 7 Professional

Hi all,
I have a form with some alerts that appear when you open the form (with messages like: "you need to have the latest adobe reader" and things like that).
I have a server arquitecture in which I open the pdf with an Acro 7 professional, of course every time that I open the pdfs the messages are shown.
My question is, anybody knows how can I disable the javascript execution in Acro 7 Professional?
I have found a way to do that in Edition, Preferences, Javascript, Disable javascript. But that option seems to be not working when you create the form with Designer!
Thanks in Advance.

try it without the quotes maybe?
document.forms[0].textBoxPropertyName.disabled=true;Without seeing the html generated for the page, it is impossible to say if your javascript is right or not.
What about it doesn't work?
Do you get a javascript error?
Does it disable the field, and the error is later?
One thing you do need to be aware of, if you disable a field on the page, it will not submit a value with the form. That can sometimes trip people up.
cheers,
evnafets

Similar Messages

  • PDF Form javascript for making readonly field by using button

    Please let me know the PDF Form JavaScript for making selected fields(Text field,Drop down list,..) as read-only by using Button.

    Do you want your button to be made read only?
    One starts with Acrobat JS Reference.
    // make all fields in a form read only;
    var oField; // variable for field being processed;
    // loop through the form fields;
    for (var i = 0; i < this.numFields; i++) {
    // process each field name;
    oField = this.getField(this.getNthFieldName(i)).readonly = true;

  • The status bar is blocking my content, is there a way to disable it via Javascript and the likes?

    I'm working on a site that requires a bottom footer in a fixed position, with a control button on the left hand side, my problem is, that the `new` status bar area covers this section for quite some time whilst it's requesting data, or waiting for the server, is there a way to disable it via JavaScript or some sort? It seems kind of silly for a status bar to cover your content (no offence), the old way was much nicer, sure it used more screen space, but atleast it didn't assume things. I just couldn't find a solution anywhere else, other than to move the button. :)

    You can use this extension to hide the pop-up that shows the URL of a link on hover and other data that previously appeared on the Status bar.
    *Status-4-Evar: https://addons.mozilla.org/en-US/firefox/addon/status-4-evar/
    Add code to userChrome.css below the @namespace line.
    *http://kb.mozillazine.org/userChrome.css
    *http://kb.mozillazine.org/Editing_configuration
    <br />
    <pre><nowiki>@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */
    #statusbar-display { display:none!important; }
    </nowiki></pre>

  • PDF Form Javascript for getting User LoginName

    Please let me know PDF Form JavaScript for showing User Login Name (login id) in the Text Field (text1), when using Button (button1).

    As noted there has to be a special folder level script installed on each user's system. This script can be written to access individual properties of the identity object or only a specific property. One can also create a function to access the identity object or even create new properties.

  • No submit button in distributed form - JavaScript help

    I have creted a from in Live Cycle Designer. After distribution submit button is not visible in Acrobat and Reader. I've looked at the form JavaScript and find out this part of code which probably hide submit button in Acrobat 9:
    showAutoGenSubmitBtn = function(bShow)
        var autoGenSubmitName = "%AUTO_GEN_SUBMIT_NAME%";
        var fld = this.getField(autoGenSubmitName);
        if (fld != null)
            var b= this.dirty;
            if (bShow)
                fld.display = display.noPrint;
            else
                fld.display = display.hidden;
            this.dirty= b;
    // Hide the auto-generated submit button for Acrobat/Reader >= 9.0
    if (app.viewerVersion >= 9)
        showAutoGenSubmitBtn(false);
    else
        showAutoGenSubmitBtn(true);
    I am not familair with JavaScript so I would apprecite if someone can help me how to edit it to make submit button visible.
    Below is a complete JaveScrip of mentioned form.
    Thanks
    //@@FORMSWORKFLOW auto-generated script
    AdobePatentID="B643"
    var AdobePatentID = "AdobePatentID=\"B643\"";
    // Show a dialog to ask the user's name and email during submit.
    askUserIdentity = function(doc)
        // string constants
        var dlgStrings =
            sDlgTitle:          "Send Form",
            sEmailLabel:        "&Email Address:",
            sNameLabel:         "Full &Name:",
            sSubmitLabel:       "&Send",
            sToLabel:           "To:",
            sSubjectLabel:      "Subject:",
            sSubjectContent:    "Submitting Completed Form",
            sAttachmentLabel:   "Attachment:",
            sFromLabel:         "From:",
            sErrorEmailRequired:"Please enter a valid email address.",
            sErrorNameRequired: "Please enter your name."
        var dlgElems = [];
        dlgElems[dlgElems.length] = {
            type: "view",
            align_children: "align_left",
            elements:
                    type: "view",
                    align_children: "align_row",
                    elements:
                            type: "static_text",
                            name: dlgStrings.sToLabel,
                            width: 80,
                            bold: true,
                            font: "dialog"
                            type: "static_text",
                            item_id: "sdto",
                            width: 270,
                            font: "dialog"
                    type: "view",
                    align_children: "align_row",
                    elements:
                            type: "static_text",
                            name: dlgStrings.sSubjectLabel,
                            bold: true,
                            width: 80,
                            font: "dialog"
                            type: "static_text",
                            name: dlgStrings.sSubjectContent,
                            width: 270,
                            font: "dialog"
                    type: "view",
                    align_children: "align_row",
                    elements:
                            type: "static_text",
                            name: dlgStrings.sAttachmentLabel,
                            bold: true,
                            width: 80,
                            font: "dialog"
                            type: "static_text",
                            item_id: "atch",
                            width: 270,
                            font: "dialog"
                    type: "gap",
                    height: 5,
                    width: 350
                    type: "static_text",
                    name: dlgStrings.sFromLabel,
                    bold: true,
                    font: "dialog"
                    type: "static_text",
                    name: dlgStrings.sEmailLabel,
                    bold: true,
                    font: "dialog"
                    type: "edit_text",
                    item_id: "emal",
                    width: 250
                    type: "static_text",
                    name: dlgStrings.sNameLabel,
                    bold: true,
                    font: "dialog"
                    type: "edit_text",
                    item_id: "name",
                    width: 250
                    type: "gap",
                    height: 5,
                    width: 350
                    type: "ok_cancel",
                    ok_name: dlgStrings.sSubmitLabel
        var desc = {
            resourceContext: "AcroForm",
            description:  {
                name: dlgStrings.sDlgTitle,
                elements: [
                        type: "view",
                        align_children: "align_left",
                        elements: dlgElems
        desc.initialize = function(dialog)
            var METADATA_ANNOT_NAME = "adhocFormState";
            var PROP_INITIATOR = "initiator";
            var initiator;
            var annot = doc.getAnnot(0, METADATA_ANNOT_NAME);
            if (annot != null) {
                var arrProps = new Array();
                arrProps = annot.contents.split(";");
                initiator = getProperty(arrProps, PROP_INITIATOR);
            var decodedFileName = unescape(doc.documentFileName);
            var initVars =
                sdto: initiator,
                atch: decodedFileName
            dialog.load(initVars);
        desc.validate = function(dialog)
            var values = dialog.store();
            if (values.emal == "") {
                app.alert(dlgStrings.sErrorEmailRequired);
                return false;
            if (values.name == "") {
                app.alert(dlgStrings.sErrorNameRequired);
                return false;
            return true;
        desc.commit = function(dialog)
            this.result = new Object;
            var values = dialog.store();
            this.result.name = values.name;
            this.result.email = values.emal;
        var ret = app.execDialog(desc);
        if (ret == "ok")
            return desc.result;
        else
            return null;
    askEmailClient = function(doc)
    // string constants
        var dlgStrings =
            sDlgTitle:      "Select Email Client",
            sDlgText:       "Please indicate the option which best describes how you send mail.",
            sDesktop:       "&Desktop Email Application",
            sDesktopDesc:   "Choose this option if you currently use an email application such as Microsoft Outlook Express, Microsoft Outlook, Eudora, or Mail.",
            sInternet:      "&Internet Email",
            sInternetDesc:  "Choose this option if you currently use an Internet email service such as Yahoo or Microsoft Hotmail. You will then need to save your form and return it manually to [email protected] using your Internet email service."
        var dlgElems = [];
        dlgElems[dlgElems.length] = {
            type: "view",
            align_children: "align_left",
            alignment: "align_fill",
            elements:
                    type: "static_text",
                    name: dlgStrings.sDlgText,
                    width: 350,               
                    font: "dialog"
                    type: "radio",
                    name: dlgStrings.sDesktop,
                    item_id: "rad1",
                    group_id: "rgrp",
                    bold: true,
                    font: "dialog"
                    type: "view",
                    align_children: "align_top",
                    elements:
                            type: "gap",
                            width: 20
                            type: "static_text",
                            name: dlgStrings.sDesktopDesc,
                            wrap_name: true,
                            width: 342,
                            font: "dialog"
                    type: "radio",
                    name: dlgStrings.sInternet,
                    item_id: "rad2",
                    group_id: "rgrp",
                    bold: true,
                    font: "dialog"
                    type: "view",
                    align_children: "align_top",
                    elements:
                            type: "gap",
                            width: 20
                            type: "static_text",
                            name: dlgStrings.sInternetDesc,
                            wrap_name: true,
                            width: 342,
                            font: "dialog"
                    type: "gap",
                    height: 5,
                    width: 350
                    type: "ok_cancel",
        var desc = {
            resourceContext: "AcroForm",
            description:  {
                name: dlgStrings.sDlgTitle,
                width: 250,
                elements: [
                        type: "view",
                        align_children: "align_left",
                        elements: dlgElems
        desc.commit = function(dialog)
            this.result = new Object;
            var values = dialog.store();
            this.result.send = values.rad1;
            this.result.save = values.rad2;
        var ret = app.execDialog(desc);
        if (ret == "ok")
            return desc.result;
        else
            return null;           
    AdobePatentID="B643"
    // set a new property value to a property in the specified array.
    setProperty = function(arrProps, propName, propValue)
        var i;
        var bSet = false;
        for (i = 0; i < arrProps.length; i++) {
            var propParts = new Array();
            propParts = arrProps[i].split(":");
            if (propParts[0] == propName) {
                propParts[1] = propValue;
                arrProps[i] = propParts.join(":");
                bSet = true;
                break;
        if (!bSet)
            arrProps[arrProps.length] = propName + ":" + propValue;
    AdobePatentID="B643"
    // get the value for a property in the specified array.
    getProperty = function(arrProps, propName)
        var i;
        for (i = 0; i < arrProps.length; i++) {
            var propParts = new Array();
            propParts = arrProps[i].split(":");
            if (propParts[0] == propName) {
                return propParts[1];
        return null;
    AdobePatentID="B643"
    showAutoGenSubmitBtn = function(bShow)
        var autoGenSubmitName = "%AUTO_GEN_SUBMIT_NAME%";
        var fld = this.getField(autoGenSubmitName);
        if (fld != null)
            var b= this.dirty;
            if (bShow)
                fld.display = display.noPrint;
            else
                fld.display = display.hidden;
            this.dirty= b;
    // Hide the auto-generated submit button for Acrobat/Reader >= 9.0
    if (app.viewerVersion >= 9)
        showAutoGenSubmitBtn(false);
    else
        showAutoGenSubmitBtn(true);

    I'm distributing the form in Acrobat Pro 9.
    I created the form in Live Cycle Designer.  Save, then open in Acrobat pro.  Extend Features to Acrobat Reader, click the drop down box on Forms and hit distribute.  I save a local copy.  When I open the distributed form the buttons do fall silent, the Submit Button on the purple line up top still works, but that doesn't appear in reader and the people who will be completing the form all use reader.  Any suggestions for a fix?
    I'd like to distribute because that automates the tracking.  It works undistributed.

  • How to disable 6i forms

    Hi All,
    We have migrated from 6i to 11g forms and We are ready with 11g forms now.
    But all the users have 6i fmx in there standalone systems. I want them to use only 11g.
    Is there any way to disable 6i forms when any user try to open 6i forms it should not allow to use it.
    Thanks,
    Maddy

    Hi,
    Developers will access the Production DB in some case where they fix issue in the production.
    In forms created here, all the forms have code built in that prevents users from running out-of-date forms. They have a built-in version value that is updated with each new release, and when the form starts up, it compares its internal version number with that stored on the database. If the versions don't match, the form issues an error and will not display any data. With each new release, a script is provided for the systems people to run that updates the version numbers in the database. If they fail to compile, or fail to move the fmx to production, or any other problem occurs during installation, the forms will not run
    Steve, Can you explain me a bit clear the above suggestion? what is this built in version and how can I get the value of it?
    Thanks,
    Maddy

  • How to disable certain form fields from a calculation with a check mark fields.

    How to disable certain form fields from a calculation with a check mark fields.
    In Canada we have to taxes
    I create a form that calculate them to a total
    I need to be able to turn off any of those to taxes to participate to the calculation and their visibile field should become 0
    I was thinking using a checkbox (when checkbox is on (Yes) the tax is calculated, Not ticked (Off) the tax is not calculated and the visible field should show 0 or nothing....
    I really need help on this one — I’m a complete newbie....
    Remark that the second tax is calculated on the sum of what the first tax add (first tax is pan-canadian tax (all provinces).
    The second tax is never use alone (Quebec only (on top of the Canadian one)
    Sometime for outside Canada sell - No tax at all is calculated....
    What should I do?

    I want to tank you to help, really appreciate —>
    This is the code and order... I just trow the checkbox in there (they have, so far, no purpose...)
    The code use is
    var a = this.getField("pricehorstx");
    event.value = Math.round (a.value * 7.25) / 100
    I guess -If the checkBox are check - The tax should be calculate — If “Off” the tax should be not calculated and PriceHST and /or PriceQST should show zero or be empty — The HST is always calculated in Canada, but the QST is added only in Quebec.
    I need to turn both to Zero for international sale.
    Message was edited by: Chacapamac

  • If the javascripe is disable, the form would not submit

    Hi , I have a from, , collect some data and input into db, I want if the java script is disable, the form is on submit, or have other way to do the form validation?

    It's really hard to tell what your question is.
    If you're using struts, then the form beans can include validation, or you can specify validation in an external configuration file.
    If you're not using struts, I suppose you could do form validation outside of the servlet, say in a servlet filter, or in a different servlet that forwards to another servlet.
    It sounds like these would be basic questions. I strongly urge you to find a tutorial written in whatever your native language is.

  • Disable "Distribute Form"

    Relative newbie here, I have developed an interactive pdf form using LiveCycle Designer.
    When the form is opened in Acrobat, there is a purple bar at the top that says:
    "Please fill out the following form.  If you are a form author, choose Distribute Form in the Forms menu to send it to your recipients"
    This is a form which, when filled out, will have very confidential information in it and we would rather not have our inventors use this feature.
    1. Is there a way to completely disable Distribute Form from the menu?
    2. Alternatively, can I at least remove/hide this bar that directs them to go to the Forms/Distribute Form menu item?
    3. Would also like to disable the "Clear Form" menu item.
    4. On an unrelated note, when I use the app.menuExecItem("Save As");
    is there a way to include a default file name for the Save As?
    thanks in advance,
    Brian

    Sorry that this is late Brian.
    But I may have found a way to do it.
    In your orignal form, go to File, then Properties.
    Once there, select the Inital View Tab. After that in the UserInterface Options section click "Hide window controls"
    This will disable the "purple bar" completely. You will then need to re-save and re-open the file and voila.
    Edited to Add: Oh yeah, this is NOT an April Fools Joke - lol

  • Standard vs Professional  - forms/javascript

    I need the ability to add/edit from fields, add submit buttons, and add Adobe javascript to PDF documents.
    Can this be done in Standard or do I need Professional?
    Thanks.
    kpg

    I use Acrobat Pro at work to "chop up" scanned documents into smaller pdfs. I would like to do this on my home computer too. Should I purchase Professional or will Standard be good enough?

  • Having trouble disabling fields form in LiveCycle 8.1.2

    Hello,
    I have been working with live cycle for 3 weeks now and I need to edit a form to be dynamic so that a user can select a check box and certain fields are available depending on what's selected.
    ex: is user checks oper_bird than txt field oper_secur_id is available to be written in.
    I have set the fields to "readOnly" initially and I am now having problems with JavaScript to disable the fields.
    I have read the documentation on the differences between AcroJS and XFA and I am still confused. The form is set to dynamic and
    Heres the code I'm trying to get to work (I am using it on a radio button to enable or disable a txt field for testing):
    // Function to enable form fields
    function EnableField(cFieldName)
    // First acquire the field to be enabled
    //var oFld = xfa.form.F.resolveNode("$.." + cFieldName)
    //if(event.target.rawVaule == 1)//oFld)
    //{ // Next acquire the hidden field with the normal colors
    popup()
    //var oNmlFld = xfa.form.F.resolveNode("$..NormalColorsFld")
    //if(oNmlFld)
    //{ // Make field interactive
    $oFld.access = "open";
    // Restore Normal Colors
    $oFld.fillColor = oNmlFld.fillColor;
    $oFld.borderColor = oNmlFld.borderColor;
    $oFld.fontColor = oNmlFld.fontColor;
    // Function to disable form fields
    function DisableField(cFieldName)
    // First acquire the field to be disabled
    var oFld = xfa.form.F.resolveNode("$.." + cFieldName)
    if(oFld)
    { // Make field Read- Only
    oFld.access = "readOnly";
    // Set Grayed out colors
    oFld.fillColor = "192, 192, 192";
    oFld.borderColor = "171, 171, 171";
    oFld.fontColor = "125, 125, 125";
    I removed some of the conditionals to see if the events were happening. The code is in "Init" and the functions are called respectively in the "mouseUp" for "enable" and "disable"
    Thanks for the Help

    Okay, heres where the problem stands now:
    I disabled the fields, made them "readonly", however I can not reactivate the Fields to bring them back into a "User Entered - ..." value after setting them to "readonly". I know I am getting the calculation script to work because I am changing the colors of the field depending upon input.
    WorkflowUser could you you still want to take a look at the script? if you want to of course.
    Thanks again.

  • Disable button using javascript

    Hi,
    I'm sorry if this is a relatively simple problem, but I have tried several things and have searched the forum, but still no luck!
    I am trying to get a button in a form to be disabled or hidden on loading the page and only to become enabled or shown once an 'onclick' event occurs. I already have a javascript function running successfully on the 'onclick' event, so there is no problem with that.
    Preferably I would like the button to be template driven, but I realise that disabling/hiding it may only be possible with an HTML button.
    I have tried the following JavaScript, but it appears to do nothing:
    document.getElementById('P6_OK').disabled=true;
    $x_HideItemRow('P6_OK');
    If the JavaScript is ok it is probably the way I am implementing it into the HTML.
    Thanks
    Lucy

    Hi,
    I'm still having troubles with this (see above). If anyone has successfully managed to disable a button using JavaScript I would be interested in how they did it.
    To clarify, I have tried the following two pieces of script, among others:
    (1) document.getElementById('P6_OK').disabled=true;
    (2) $x_HideItemRow('P6_OK');
    I have read quite a few forum links and followed what others have done, but in vain.
    Thanks for your help
    Lucy

  • Adobe form javascript error

    hi experts,
    i am new to adobe interactive forms. i have created a simple form with some input fields which refer to abap webdynpro context and added a submit button from webdynpro activex menu. the click event is created in abap web dynpro. when i execute the webdynpro application i am seeing the form, but at the top i see the following message
    "javascript is currently disabled and this dcoument uses it for some features. enabling javascript can lead to potential security issues"
    at the right side of the error there is a button "options" . when i click that and selected "enable javascript for this document" . but the error still reamins. when i select the option for the second time i get a user session time out error in the browser.i am using windows 7. pelase suggest what settings i need to make?
    thanks

    hi,
    i am using ZCI and webdynpro native submit button now. i have also placed the script code which was given by u in some other discussion
                     // DO NOT MODIFY THE CODE BEYOND THIS POINT - 705.20051114114126.253659.250577 - SubmitToSAP.xfo
                          ContainerFoundation_JS.SendMessageToContainer(event.target, "submit", "", "", "", "");
                          // END OF DO NOT MODIFY
    but still it is not working. we are using adobe live cycle 7.1 and our ECC version is 7.01 level 006. i will try in a windows XP machine

  • Disable entire form

    Hi,
    I have a requirement to disable an entire form and make it read only based on item value, is there a way to do it?
    Thanks,

    Hi Samara,
    Samara wrote:
    I'm using APEX 4, do I need to install this jquery plugin?- You don't need to install anything, unzip the file and place the .js and .css file in web server images directory or upload to workspace static file under shared components
    a) If you use server directory
    <script type="text/javascript" src="/i/jquery.readonly.js"></script>
    <link type="text/css" rel="stylesheet" href="/i/jquery.readonly.css">or
    b) If you upload to workspace images directory
    <script type="text/javascript" src="#APP_IMAGES#jquery.readonly.js"></script>
    <link type="text/css" rel="stylesheet" href="#APP_IMAGES#jquery.readonly.css">
    Samara wrote:Is this disabling items, buttons and links (i.e every thing)?- The code provided only disables items and buttons for disabling link take a look at the updated code:
    http://apex.oracle.com/pls/apex/f?p=25471:2
    function disableLink(e) {
        e.preventDefault();
        return false;
    function readOnlyItem() {
        if ($v('P2_ITEM1') == 1) {
            $(':input').each(function () {
                $(this).readonly(true);
                $('#link1').bind('click', disableLink);
        } else {
            $(':input').readonly(false);
            $('#link1').unbind('click', disableLink);
        $('#P2_ITEM1').readonly(false);
        return false;
    Samara wrote:Why I need to include it in page 0? can't be in the header?- I was referring to plugin files .js and .css they can be added in page 0 region or page template. I personally combine all custom js into one file, minify it and place it server. By placing plugin files in page 0 or template you can call your js/method in all pages. But, you can always place it in page header where you call the script.
    Regards,
    -Senthil

  • Using the Form javascript.addrow() to pass values while creating a new row?

    Version: 4.1.0
    DB: 11g
    Theme- scarlet 21
    Hi,
    I have a standard tabular form with the add, delete, submit buttons. Now when we hit the Add button, it creates a new row in the form. I had a requirement such that the user selects a row using the standard checkbox and then when he hits add, it should create a new row, and also, copy the contents of the selected row to the new row.
    Is this possible? Any suggestions please? I am thinking that I need to create a pl/sql process under Add button to check if the checkbox is selected, and if yes, then maybe run the javascript addrow(not sure if it can be done) and then try to populate the values.
    Thanks!
    Sun
    Edited by: ryansun on Oct 4, 2012 12:34 AM
    Edited by: ryansun on Oct 4, 2012 12:46 AM
    Edited by: ryansun on Oct 4, 2012 12:46 AM

    Hi Joni,
    Thanks. I am not familiar with JQuery, is there some link where such a logic is implemented? Atleast a basic one of adding a new row, and traversing and capturing the values? In forms we could do it using cursor but not sure how to do it in Apex.
    In my case the requirement is straightforward. If there is a table with three rows and have a standard form in APEX with the add, delete and submit buttons along with the radio checkbox in a tabular form,
    If I select a row and then hit the add button, a new row should be added and the values of the previous row should be passed.
    Would you be having a link to any such demo or documentation on how this is done, would be very helpful.
    Thanks!
    Sun

Maybe you are looking for

  • How to use RTRIM function in ABAP

    Hey, I have a question on using trim function in ABAP. According to all documents, I should be able to use rtrim as shorttext = rtrim('abcde-xx', '-xx'). But when I do that, it gives me an error message "Comma without preceding colon (after shorttest

  • Color management problems Epson 4000

    I have installed the latest (3.0.9) drivers for my Epson SPro 4000 and I am using Leopard. The printer works, That is it responds to the computer (MacBook Pro), but it prints like it is not recognizing the printer profiles I select in Photoshop or Li

  • Text after the Address Endaddress command in SAPscript

    Hi All, Can we print text on the same line after the address endaddress command. For eg: i am using the Address command /:ADDRESS PARAGRAPH AS /:TITLE    &EKKO-LIFNR& /:NAME   &LFA1-NAME1&, &LFA1-NAME2&, &LFA1-NAME3&, &LFA1-NAME4& /:STREET   &LFA1-ST

  • Service Contract

    Hi, I have a question about Service Contracts. My client performs the installation of pipes and fittings (none have serial numbers)and warranties his work for one year after installation. I would like to have a Service Contract created automatically

  • Spotlight Comments No Showing Up in Get Info

    I moved thousands of video files to new folders (Drag & Drop Method). Now the spotlight comments for the files are no longer showing up in the get info window. I'm devastated because the comments contained critical information about the video. Withou