Audit (app.alert) for read-only and submit or nevermind

Hi script ninjas. I have a MouseUp action a button titled 'Finalize & E-mail '. Based on input from the end user, it is necessary to add an alert message to reduce a large volume of phone calls 'I can't add more information in the form."

My intention was to have a button that would make the 'read only' form and then submit by attaching in the form of an email. But it seems now that I need an app.alert to go with it. So, I fought on where to add the "else" statement in the JS below. Without this statement else what I get is - an attachment with a read-only form or an email that is not. What I want is - if the user chooses "no," the user back to the form to continue adding information. I'm sure it's an easy fix, but I went down too bad rabbit hole today. Thank you in advance.

var r = app.alert ("are you sure you want to develop and submit this document? This action can not Ωtre annulΘe. ", 2, 2) ;

If (r == 4) {/ / 4 is Yes, 3 is not}

for (var i = 0; i < this.numFields; i ++) {}

fname = this.getNthFieldName (i) var;

this.getField (fname) .readonly = true; makes all readonly fields

}

}

It's the return of form e-mail. It is hardcoded

to make the form comes back to the same address.

Change of address on your form to match the code below

var cToAddr = " " [email protected] "" "

var cCCAddr = this.getField("PROJECT_APPLICANT_EMAIL").value + ";" + this.getField("LEAD_AGENCY_EMAIL").value;

var mySubject = this.getField ("Agency") .value +' | "" + this.getField("Today").value + "| "" + this.getField("Counter").value + "| "+ this.getField ("Project Title") .value;

Set the body of the text of the e-mail message

var cbody = 'Thank you for your Document.\n\n' + 'Save the attachment of the completed form for your records\n\n' + 'your document is now in good hands. "

Send the PDF as an attachment to an e-mail

this.mailDoc ({bUI: true, cTo: cToAddr, cCc: cCCAddr, bassujetti: mySubject, CMSG: cbody});

All you need to do is to put all the code in the block that starts with the if, like this condition:

If (r == 4) {}

put the code to set read-only fields and submit the file here

}

Tags: Acrobat

Similar Questions

  • Impossible to turn off read-only - and I already checked the Security tab

    Hello, I use Vista Ultimate.  I'm on my home computer and have full administrative rights.  Have a big problem trying to get the recovery off the power on a personal folder read-only.  It is NOT a folder on a network or is a system folder.  When I go in the folder and click on the Security tab, ALL users have full right to make any changes.    No error displayed whenever I then deselect read only on the general tab, click on or .  But when I re - open the folder and check the properties, read-only is still active.  It's driving me crazy.  HELP!?!?!?!

    And Yes, I tried this:

    "To view or to remove the read-only or the attributes of system files in Windows Vista

    1. Click on start, run, type cmd and press ENTER...
    2. To view the syntax for the Attrib command, Type attrib------? at the command prompt.

    To remove the read-only attribute and to set the system attribute, use the following command:

    attrib - r + s drive:------------

    For example, to remove the read-only attribute and set the attribute to system for the C:\Test folder, use the following command:

    attrib - r + s c:\test

    Be aware that some programs may not operate correctly with folders for which the read-only attribute and the system attribute are granted. Therefore, use the following command to remove these attributes:

    attrib - r s by car:------------

    For example, to remove both the read-only and the attributes to system for the C:\Test folder, use the following command:

    attrib - r-s c:\test

    If the run command is not listed in the start menu, follow these steps:

    Click Start, click principally made programs, accessories, and then click Run."


    And get an error that says: parameter Incorrect Format.

    Have you checked to see if the files in the folder are effectively read-only or if the only problem is that the file is checked in read-only?

    You may need to go higher in the chain of record because some properties are inherited (see advanced security of the folder until you come to one where the special permissions list including all permissions that are inherited for administrators or your user account). It does not stick because you don't have the permissions and/or ownership to allow you to make the change.  You must have permissions to full right for all folders (both on the main page and in the special permissions list) and you will have to take possession of the records as well.  Then change the ownership and permissions for yourself and administrators and don't forget to check the box for all files and subdirectories.  This should give you what you need to make the changes.  Here is some information that might help.

    To view your permissions, right-click on the file/folder, click Properties, and check the Security tab.  Check the permissions you have by clicking on your user name (or group of users).  Here are the types of permissions, you may have:http://windows.microsoft.com/en-US/windows-vista/What-are-permissions.  You must be an administrator or owner to change the permissions (and sometimes, being an administrator or even an owner is not sufficient - there are ways to block access (even if a smart administrator knows these ways and can move them - but usually should not because they did not have access, usually for a very good reason).)  Here's how to change the permissions of folder under Vista:http://www.online-tech-tips.com/windows-vista/set-file-folder-permissions-vista/. To add take and the issuance of right of permissions and ownership in the right click menu (which will make it faster to get once it is configured), see the following article:http://www.mydigitallife.info/2009/05/21/take-and-grant-full-control-permissions-and-ownership-in-windows-7-or-vista-right-click-menu/.

    To solve this problem with folders, folders takeownership or the reader (as an administrator) and give you all the rights.  Right-click on the folder/drive, click Properties, click the Security tab and click on advanced and then click the owner tab.  Click on edit, and then click the name of the person you want to give to the property (you may need to add if it is not there--or maybe yourself). If you want that it applies to subfolders and files in this folder/drive, then check the box to replace the owner of subcontainers and objects, and click OK.  Back and now there is a new owner for files and folders/player who can change the required permissions.  Here is more information on the ownership of a file or a folder:http://www.vistax64.com/tutorials/67717-take-ownership-file.html. To add take ownership in the menu of the right click (which will make it faster to get once it is configured), see the following article:http://www.howtogeek.com/howto/windows-vista/add-take-ownership-to-explorer-right-click-menu-in-vista/.

    I hope this helps.

    Good luck1

    Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • Files appear in 'Read only' and unable to change that.

    I have Windows 7 Ultimate. A couple of weeks, I had a big problem with some of my permissions of the user being edited (don't know how I did it but it happened) so I was unable to access programs and files, after awhile with a MS tech on cat and a system restore (failed), I just created a new user account and delete the old one.

    Everything seems to work fine now, but before I created the user account, I copied some files I had on the desktop to a flash drive and put them with my new office to the user. The property file to keep appearing as 'Read only' even after unchecking the choice and the application it is just when I close.

    This also happens when I create a new folder on the desktop, its default property is 'Read Only' - why would this be and how can I change it?

    Hi GoodfellaJC,

    Welcome to the Microsoft Answers site.

    Follow the steps mentioned below.

    Step 1:

    To view or to remove the read-only or the attributes of system files in Windows Vista or Windows 7

    1. click on Start, click run, type cmd , and press ENTER.

    2. to view the syntax for the Attrib command, type attrib /? at the command prompt.

    To remove the read-only attribute and to set the system attribute, use the following command:

    attrib - r + s drive:------------

    For example, to remove the read-only attribute and set the attribute to system for the C:\Test folder, use the following command:

    attrib - r + s c:\test

    Be aware that some programs may not operate correctly with folders for which the read-only attribute and the system attribute are granted. Therefore, use the following command to remove these attributes:

    attrib - r s by car:------------

    For example, to remove both the read-only and the attributes to system for the C:\Test folder, use the following command:

    attrib - r-s c:\test

    If the run command is not listed in the Start menu, follow these steps:

    Click Start, click principally made programs, Accessories , and then click run.

    For more information, see the article mentioned below.

    You cannot view or change the read-only or the attributes of system files in Windows Server 2003, Windows XP, Windows Vista or Windows 7

    http://support.Microsoft.com/kb/326549

    Hope this information is useful.

    Thanks and regards.

    Thahaseena M
    Microsoft Answers Support Engineer.
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Active DataGuard: ora-16000 database opened for read-only access

    Hi all

    Application, I get the error message "ora-16000 database opened for read-only access, while my primary database is up/open for read/write." When I stopped the standby database, the application works very well.

    Please suggest what could be the reason and the solution for the same.

    OS: RHEL - 5.3

    Oracle: 11.2.0.1.

    Kind regards

    Ronak Masudi

    Patch 9322138 ORA-16000 on recursive SQL on standby database Query rewrite

    I wouldn't be sure if tha applies to your scenario. What you might want to check is this host = xxxx in your tnsnames file points to the right machine or resolve the correct IP addresses. Perahps you have confused primary and standby.

  • Form of the iPad... help needed please.  Clear form after email read only and sequential numbering

    Hello

    I am a complete newbie at this but that's what I want to achieve.

    I have a sheet of paper in double report I want to get electronically, I want to be able to add sequential numbers to each report and be able to send the report to the client of an email field in the form

    so far, I have so I created the pdf form, I have a button that runs a JavaScript script that will hide the button send and then send the email from customers and to bcc myself so I have a copy of the report also. This has been tested and works

    I'm fighting with sequential numbering and once the form has been sent by e-mail it is the Nations United-ditable JavaScript has converted to read only for emailing that is good because it cannot be changed. But is it possible my send button to send the report read-only and then disable all form fields in the report ready for filling with the sequential number next?

    I had a good look of resolution for this but I'm bad

    Thank you very much in advance for any comments

    Paul

    Hi Paul,.

    I assume you are using the desktop version of Acrobat Pro to create the form.

    I will move this discussion to the forum of PDF forms so that experts in the forum can answer your question.

    Please note that the Reader/Acrobat DC of mobile applications (iOS, Android, Windows Phone, etc.) have limited support for JavaScript.

    JavaScript for QAnywhere Player Mobile (iOS)

    You may be able to make the shape you want in the desktop version of Adobe Reader/Acrobat Reader DC.  However, some features (for example, adding a sequence number to each PDF) will not work in mobile applications because of the limited support of JavaScript.  Sorry for the inconvenience.

  • When I converted a PDF file to WORD. DOC, it opened in read-only and I'm unable to edit text.  How can I solve this problem?

    When I tried to convert a PDF to WORD file. DOC, it opened in read-only and I'm unable to edit text.  How can I solve this problem?  I don't know how to change read-only.

    Hi Judith,

    I'm sorry that the subscription has not worked for you. I cancelled it and treated a full refund since you cancelled within 30 days.

    Best,

    Sara

  • DBMS - data not visible for read only account users.

    I created below to know the status of my lots which run on server every Sunday.

    CREATE OR REPLACE VIEW CAFDB_REFRESH AS
    SELECT
    log_id,
    owner,
    TO_CHAR (log_date, ' ' DD-MON-YY HH24:MI:SS) TIMESTAMP.
    job_name,
    status,
    ERROR #.
    run_duration,
    INSTANCE_ID,
    additional_info
    Of user_scheduler_job_run_details;

    It works fine and I am able to get the information.
    now, to make it visible for read only account users - using «grant select» I gave access and created also means public.

    but it shows only the names of columns in read only account data.

    How to make this visible to read only account?

    Please guide.

    Views USER_ will have only the objects owned by the user executing the query... In your case, it will be only schedules made by the user.

    You will need EU ALL_ or view s/n (all_scheduler_job_run_details)

  • Code Live is read-only and cannot be changed. Disable the direct code to modify the source code?

    HHow can I fix this error: 'reading Live is read-only and cannot be changed. Disable the direct code to modify the source code'

    Thanks for your time

    http://img811.imageshack.us/img811/6470/errorzh.png

    It is not an error.  That's how live code works.

  • Hello, so I bought the Photoshop app online for a year and I have to wait 24 hours before I can do the download? because when I click on download it brings me to the site of creative cloud... Thanks for your help!

    Hello, so I bought the Photoshop app online for a year and I have to wait 24 hours before I can do the download? because when I click on download it brings me to the site of creative cloud... Thanks for your help!

    Hello

    Please access the following link and download/install Adobe Creative Cloud App and sign in with your Adobe ID (email) under which you purchased Photoshop composition, go to the "' Apps'" tab at the top and start to install the products from there.

    Download Adobe Creative cloud apps | Free trial of Adobe Creative Cloud

    Thank you.

  • On a 3.0.3 HYPERIC SERVER will attempt to set up an alert for hq agent and controlling -?

    On a 3.0.3 HYPERIC SERVER Im trying to put in place an alert for hq agent and controls the action to restart if I get an alert -?
    I open the page web hyperic and select the hyperic Server customer. I then click on alert
    and create an alert if the availability of the agent hq changes.  When I try and change the CONTROL ACTION with the help of change. It does not list the agent in the resource type.
    So I can not change the name of resource either, so I can't enter restart since I can get the hyperic
    customer as long as the resource. Thi snot is available. What I am doing wrong. I try to test the control
    action in EE and create just a simple test to restart the clien...

    Well, you can NAVIGATE to the AGENT to AC and control A QUESTION
    command?

    If you cannot issue a regular command via the command tab, then you
    won't be able to run a control to an alert action
    definition.

    In this case, the agent does not control, is not
    something you can do.  As I said, you can try the program control
    orders to different resources (other than the agent)

    -Jon

    On 2 May 2007, at 16:08, mike monczynski says:

    > I do not understand, can't, I have a client command to shutdown or reboot with the
    > The alert CONTROL.
    > Control has start stop restart but I can't get the hyperic
    > customer as the resource. I'm using the EA version.  I know that I can
    > maually shut down and boot a client. isn't this control will do the
    > same thing? Since he in the hyperic customer alert?  I have on
    > ocassion corrected problem by restarting the hyperic customer.
    >

  • How to limit the request for read-only access

    We are the migration of 7.1 to version 11.1. As part of the Cup on the activities, I need to keep the old server on read-only for a few days and then completely block access. Can you please let me know if there is a simple way to limit read only access on Server 7.1, instead of changing the security settings of all groups on the server?

    Grateful for your help!

    What would you say to put the databases in read-only mode until you delete access.

    Esscmd - BEGINARCHIVE
    MAXL - [alter database | http://download.oracle.com/docs/cd/E10530_01/doc/epm.931/html_esb_techref/maxl/ddl/statements/altdb.htm] archive to start at app.db...

    There are equivalent commands out of read-only mode, the links will take you to the information you need.

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • External hard drive says its read-only and wont allow any changes

    My IQ505a has an attached external USB drive which is a drive external drive USB Western Digital 3200JS, and for a reason that I am unable to make changes to the data on the disk because the system apparently marked the entire disk in "read-only" mode.

    I put my account as an administrator and belong to the Group of Directors with all the usual permissions, except that I'm unable to disabled marking read-only on this drive.

    I also tried to connect and make these changes with the administrator account, but nothing helped.

    This problem is only with the external drive and not on the embedded player.

    Any help would be most appreciated ith this issue frustrating.

    mclwlg

    NZ

    Concerning
    mclwlg - NZ

    Get on the Internet and found many others with external drives, Vista and this issue.

    Found this fix (solution?):

    Go to the computer, do a right-click on the icon of the drive, properties, tools, check now. Uncheck the two boxes and click OK.

  • Turning point for read only files

    Folders with subfolders and those without, keep going 'read only' even if with a click right/properties I continues to turn off the read-only.  Why is this?

    By its design.

    The box greyed out for a folder means basically nothing, no change, waiting to be used. This is because read-only in the properties of the folder is only used to apply or remove the setting of all the files in the folder read-only at the same time. If you clear the check box and click on apply, then the files in the folder will be deleted from all they have read-only attributes. Like wise, to check the box to apply the attribute to all files.  The place appears again the next time because, once more, you have not used.

    Another response of the community of Windows XP newsgroups

  • Keep records for read-only reset

    I uploaded a few photos from my iPhone using the cloud and kept that find whatever program I opened in, the computer would not save changes as it said that the file or folder is read-only.  I checked the file by clicking on properties and ensure that the read-only box has been disabled.  Then, I checked the file do the same thing and found that the folder itself has been set to ReadOnly.  I then unchecked that hit 'apply' and then returned to the folder for editing photos, but it's the same thing.  Then, I went to the propeorties folder and found he had turned to read-only.  I thought that reading only may be applied to a higher level, namely my pictures or My Documents, which he was, if I disabled and it is simply coming back again!  I was wondering if there was a way to fix this or if there is a higher level than I can uncheck the read only options for if that's what is behind each photo be read-only.

    No. I thought maybe iCloud still had the file to open.

    You can check the permissions to make sure that you have write access to the files.

    I would like to use Process Monitor to get more information about what exactly is happenning. But this produced a lot of data and needs a degree of knowledge of the functioning of WIndows.

    http://TechNet.Microsoft.com/en-us/Sysinternals/bb896645

    If you decide to try this, there is an introduction to use it here:

    Windows Sysinternals Primer: Process Explorer, Process Monitor and more. Tech· Ed 2010 North America | Channel 9

  • Strange question: Hyperion Planning Forms becomes read-only and data are destroyed: 11.1.2.2

    Hello

    Let me start by saying that I am not new to Hyperion Planning. We encounter a weird problem in our Test System. We notice that some (NOT ALL) of our tour of webforms in readonly webforms. all the cells in the gray form. It comes to despite the fact that the read-only checkbox is not checked in the form as well as the security is fine on all dimensions; Basically, all the cells of the form are valid combinations.

    The form becomes readonly, and all the data on this form is always Wiped. This has happened only for two web forms so far. We took a lot of Calc (none of the Calc have cleardata command). We do not know why this is happening. Maybe it's a bug in the product... not sure. has anyone seen this behavior before?

    Please let me know.

    -

    PK

    Please skip this question. It happened because someone on my team had added a member under umbrella of level 0.

Maybe you are looking for

  • CPU Upgrade in Satellite L30?

    Tried searching but did not get a response. Bought a laptop from ebuyer the other week and good, but good computer with a little more juice. Running a 1.73 CoreDuo processor, I was wondering if Core2 or something a little better suits you. Heard a bi

  • MacBook as a remote drive

    I need to start my MacBook Pro as an external drive, but cannot not use disc target as with Firewire. Is there a way to use the connection of lightning to start MacBook as a remote drive? I have to use a source computer to run Disk Warrior on the Mac

  • Vero o present a pdf

    Buen dia! Estoy en UN pequeño proyecto en mi trabajo, tengo una develop base datos para facilitarnos the Organization of los electricos, door manuals, etc. Esta base datos is tengo porque desarrolle in el tecnologico, lo deseo add as're mi problema i

  • BlackBerry Smartphones how lock the ' Alt ' key.

    Is this possible with my BB8330 to LOCK the ALT key. In other words, I have a series of numbers to enter and currently has to press the 'Alt' key before each number. The 'Alt' key can be locked?

  • How to use the plugins installed

    Im a new user and I have installed a few plugins.Where can I find cc 2015 after their installation?