Help! I can't create a javascript for radiobox saveas

First of all, I want to say thank you for helping.

I'm new to javascript and coding in general, but I think I was learning and pick up the coding of websites like this one.  I do a form using acrobat 3D 8.1.0 pro adobe.  I have a combobox that I have a list of a bunch of places.  The combobox control is set to export a result letter or digit 3 or 4 that is unique to this site.  I then implemented a saveas on blur due to the selection.  It's that everything is working properly.

However, I have several hundreds of radioboxes and text boxes in the document.  This document will be used for type-approval tests and I don't want to lose all the data accidentally so I want to save after each selection or input in the text boxes.

Here is my code for the combobox control.

build the name of the file
var site = this.getField("siteName").valueAsString;
{Date.prototype.defaultView = function ()}
var dd = this.getDate ();
var mm = this.getMonth () + 1;
var yyyy = this.getFullYear ();
return String(mm+"-"+dd+"-"+yyyy)
}

var today = new Date();
var gmtHours = - today.getTimezoneOffset () / 60;
var cstHours = today.getUTCHours () + gmtHours;
if(cstHours<10) cstHours = '0' + cstHours;
var min = today.getUTCMinutes ();
if(min<10) min = "0" + min;
dry var = today.getUTCSeconds ();
s if(sec<10) = '0' + s;
var timeStamp = today.defaultView (), "_" + cstHours + "-" + min + "-" + seconds;
var myFileName = site + "_" + ".pdf" timeStamp
Add the name of the folder
myFileName = "/ f/file_test / ' + myFileName
myTrustedSpecialTaskFunc (Thi, myFileName);

this.getField("docName").value = myFileName;

----------------------------

I struggled with the saveas and I don't want to create a new file each time, so I created a hidden text box that has the file name.  I was hoping that I could read just this textbox and saveas using the name of the original file.  (The above script use time in the name of the file so it would create a new name of file per second)  The hidden text box gets the values correctly and works fine.

I tried several different methods of javascript on the radio buttons and text areas.  On the radio, I tried all the options mouse, but I was hoping to use the mouse to the top.  Text boxes that I want to use the mouse, the blur.   Here are some scripts that I have tried.  I want it to be automatic and I want to crush every time without guests.


---------------------------

app.execMenuItem("Save");


-------------

var oMyDoc = <… PDF being operated on …> app.execMenuItem("Save", oMyDoc);

-------------

var myFileName = this.getField("docName").valueAsString;
this.saveAs(myFileName);

---------------------

.. .and I have tried others, but since they did not, I did not keep track of them.

I appreciate any suggestions!

Thank you

I answered your other post in the forum script.

Tags: Acrobat

Similar Questions

  • I can't create a javascript for radiobox saveas

    I started this discussion windows acrobat Forum and I think I should put it here, so I'm reposting it.

    First of all, I want to say thank you for helping.

    I'm new to javascript and coding in general, but I think I was learning and pick up the coding of websites like this one.  I do a form using acrobat 3D 8.1.0 pro adobe.  I have a combobox that I have a list of a bunch of places.  The combobox control is set to export a result letter or digit 3 or 4 that is unique to this site.  I then implemented a saveas on blur due to the selection.  It's that everything is working properly.

    However, I have several hundreds of radioboxes and text boxes in the document.  This document will be used for type-approval tests and I don't want to lose all the data accidentally so I want to save after each selection or input in the text boxes.

    Here is my code for the combobox control.

    build the name of the file
    var site = this.getField("siteName").valueAsString;
    {Date.prototype.defaultView = function ()}
    var dd = this.getDate ();
    var mm = this.getMonth () + 1;
    var yyyy = this.getFullYear ();
    return String(mm+"-"+dd+"-"+yyyy)
    }

    var today = new Date();
    var gmtHours = - today.getTimezoneOffset () / 60;
    var cstHours = today.getUTCHours () + gmtHours;
    if(cstHours<10) cstHours = '0' + cstHours;
    var min = today.getUTCMinutes ();
    if(min<10) min = "0" + min;
    dry var = today.getUTCSeconds ();
    s if(sec<10) = '0' + s;
    var timeStamp = today.defaultView (), "_" + cstHours + "-" + min + "-" + seconds;
    var myFileName = site + "_" + ".pdf" timeStamp
    Add the name of the folder
    myFileName = "/ f/file_test / ' + myFileName
    myTrustedSpecialTaskFunc (Thi, myFileName);

    this.getField("docName").value = myFileName;

    ----------------------------

    I struggled with the saveas and I don't want to create a new file each time, so I created a hidden text box that has the file name.  I was hoping that I could read just this textbox and saveas using the name of the original file.  (The above script use time in the name of the file so it would create a new name of file per second)  The hidden text box gets the values correctly and works fine.

    I tried several different methods of javascript on the radio buttons and text areas.  On the radio, I tried all the options mouse, but I was hoping to use the mouse to the top.  Text boxes that I want to use the mouse, the blur.   Here are some scripts that I have tried.  I want it to be automatic and I want to crush every time without guests.


    ---------------------------

    app.execMenuItem("Save");


    -------------

    var oMyDoc = <… PDF being operated on …> app.execMenuItem("Save", oMyDoc);

    -------------

    var myFileName = this.getField("docName").valueAsString;
    this.saveAs(myFileName);

    ---------------------

    .. .and I have tried others, but since they did not, I did not keep track of them.

    I appreciate any suggestions!

    Thank you

    You should be close. You can call your level backup of records as a script of the mouse event to the top of each option button, get the file name of the masked text box, which said you was working.

  • Windows XP Edition sp3 family. I can't create an account for DIFFICULTY IT CENTER Microsoft. PC refuses to accept any password

    Windows XP Edition Sp3 family.

    I can't create an account for DIFFICULTY IT CENTER Microsoft. PC refuses to accept any password
    any help?. Thank you
    Ettore

    Once you have your c:\boot.ini in place, using the Explorer, do a right click, properties and put a check in the read-only and hidden attributes.

    In this way, he could keep from trashing accidentally.

  • can I create a key for key restart (windows) on the Helpsite Ergo 4000 keyboard?

    Original title: MS Ergo 4000 kb.

    Hey

    Should be easy. On my old or dead logitech keyboard had a touch restart (windows). can I create a key for this custom 4000?
    I looked into the keyboard software, but didn't find any option.

    Thank you

    P. S.

    Why is it I already signed in the community, I took particapate then he forced me to start a new connection?
    Now I have 2 connections 1. bradfeuerhelm 2.bradfeuerhelm1954! Also your hardware forum is not listed in the category!

    Hi Brad,

    Microsoft keyboard you can reassign some keys to access the various commands, shortcuts or IntelliType Pro features to better fit your work style.

    How to redirect to my keyboard access keys?

    http://www.Microsoft.com/hardware/en-GB/help/support/how-to/keyboard/reassign-keys

    You can also create shortcuts keyboard that contains the executable program file.

    (a) right click on desktop

    (b) click on new > shortcut

    (c) type "shutdown.exe - r-t 00" click Next

    (d) type the name as "restart", and then click Ok

    (e) click right to restart the icon on the desktop

    (f) click Properties, and then click the shortcut key

    (g) you can press Ctrl + Alt + R or according to the letter that you like.

    h) click 'Applies' > Ok

    (i) now when you press the shortcut key, your computer will restart.

    (j) don't forget to quickly save everything before you press the shortcut key.

    For more information, see this link:

    Create keyboard shortcuts to open programs

    http://Windows.Microsoft.com/en-GB/Windows/create-keyboard-shortcuts-open-programs#1TC=Windows-7

    You can use a single Microsoft live id to connect to the Microsoft Community website. You can give different names, you want to appear on the thread by changing the profile display name.

    (a) sign in tohttp://answers.microsoft.com/en-us using your Windows live ID.

    (b) click on your user name, then click on edit profile.

    (c) change the nickname you like.

    I hope this helps. If you need help with Windows, let us know and will be happy to help you.

  • I have problems of space on my iPhone 6. I have only 21 photos and 2 videos on my phone. However, I am on a discussion group on whatsapp. How can I create more space for my phone? I also have very few applications on my phone.

    I have problems of space on my iPhone 6, I have only 21 photos and 2 videos on my phone. However, I am part of a chart group on whatsapp. The problem now is that my storage space is almost full. How can I create more space for photos and everything?

    You cannot create more space for everything.  All you can do is remove apps, photos and especially videos to make room for other pictures and videos.

  • How can I create a bootable for XP home CD

    How can I create a bootable for XP home CD?

    If by chance you reinstall xp sp2 via cd, you can create a bootable cd of xp sp3 via a method called "slipstreaming".

    It is relatively easy and requires files sp2 from your cd to merge with the update to sp3 from microsoft, and then make an iso to burn it to a cd.

  • Can I create a javascript script in a captivate tip action

    Hi all:

    I get just the advanced Actions kick and I can't try to use the Javascript window.

    I have three captivate v_Var3, v_Var2, and v_Var1 variables.

    I am creating a JavaScript function in the Javascript window for concantonate in a v_AllResponses variable.

    Is there an example of such a script there, and can you point me to it?

    I looked at but no luck so far.

    You can define a variable to contain a space and use it in your advanced Action:

    The SPACE variable has a default value (see screenshot).

    This default value is the HTML code for a space.

    Not too many people know, but you can add HTML tags limited to a legend using variables of Cp.  Here are the supported tags:

    http://help.Adobe.com/en_US/FlashPlatform/reference/ActionScript/3/Flash/text/TextField.ht ml #htmlText

    This opens up a wide range of possibilities for your variables dynamic text formatting.  For example, using a simple text caption, you can change the color of the text in red or green according to the tags surround you your variable with the runtime.

    Jim Leichliter

  • I can't create a password for my Windows account.

    I can't put a password for my administrator account. Whenever I try, I get a message saying that Windows cannot change the password.
    I can set passwords on other accounts, just not this one.
    All the answers?

    Hi SilentEngima,

    Thanks for posting answers.microsoft.com

    You can try to create another administrator account and then you can keep the new account and delete the old one (be sure to copy the necessary files in system folders is first!), or you can use the new account to set the password for the old account (e.g. from the control panel-> user accounts).

    Let us know if this helps you or if assistance is needed.

    Kind regards
    Debbie
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • How can I create a tree for a flex definition tab?

    I have several tabs in my content tree and I want to show the user specific tabs to specific roles.

    The problem is, for example, the active product is the cell subtype and sub-type tablets and I want to create a tab to display a few cell phones to a user with the role A and I want to create a tab to display a few tablets to a user with the role of B.

    Thank you for your help.

    I ve found I can only create treetabs for parents to flex and not definition of flex.

    Solved my problem

  • How can I create a menu for a site to scroll a page for mobile devices?

    Hi, Im trying to create a menu for my version of phone of my a roll site page. I created a nice menu with the help of the Accordion widget, which when opened gives you links to different sections of the site that are defined by anchor points. The problem is when you select an element of the Accordion widget menu, it will automatically close after a click on the menu item. The site scrolls behind the menu, but you'll need to physcially close the menu by clicking on it again. It is of course a very bad user experience. I tried various menus third parties none of which work for sites of a page. Given the many Web sites is a scrolling page sites seems to be a major problem for users of Muse who have no menu option for this kind of design! Anyone know of any code that could be used to automatically close the Accordion widget when you select an item in the menu? Please help Ive spent a lot of time designing this site for the office but now having to PAP I can't produce the version phone, I really don't want to have to resort again to Wordpress.

    Thanks in advance!

    Hello! Active States help the user to see that they are on a separate page, and they can click the close button.

    Or you can see what I've done on the mobile page for one of my models that is very UI/UX friendly partially because of this reason (http://flowz.ljdezignz.com/phone/).

  • How can I create a shortcut for the recycling bin in my office?

    Original title: Recycle bin shortcut.

    Anyone know how I can create a shortcut for the recycling bin in my office context menu (context menu)?

    Sorry Manu B G, but I think I understand what he wants exactly. This isn't a desktop shortcut but a shortcut context Menu. He wants a right-click on any empty space in the office and click Recycler Bin shortcut in the menu to go to the basket. Any way to do it?

  • Can I create a shortcut for a brand?

    Hey everybody! Me once again

    I want to create a shortcut for this brand, which is actually a letter in some fonts, I want to keep the space after and before, and size and position also on the line.

    instead of copy paste again and again, is this possible?

    You can set a paragraph to this line style - it would contain the correct font and all the attributes of the spacing. The paragraph style can have a format assigned, but you would still also to type the correct character.

  • How can I create a redirect for a mobile site

    I want to get some opinions on this. I want to be able to when someone with a smart phone lands on the site, they have the possibility to view the full site or mobile.

    What is an advanced function? Is JS involved? I can easily do that in Muse or whatever I need to set up on a server?

    Thank you.

    Hello

    You can create a page for the site having options to access the mobile site or office.

    Then create links to the homepages of the desktop version and mobile on this page. You can create links through the hyperlink section.

    Also, you should uncheck "Redirect Office" on the file--> Site properties for the layout of the phone so that if the site is open on the mobile device, it shows only the first page office and not available phone directly.

    Kind regards

    Neha

  • How can I create extensible components for re-use?

    How can I create a button that stretches (such as the scale-9) with the text label? I create all of my graphics in illustrator rather than photoshop to get real FXG markup instead of embed all images?

    This has been addressed in the FAQ.

    Please see if the discussion he answer your question.

    -Bear

  • Can someone create a program for me to tension and calclate to the current aid concert. I need a graphic Visual and some nuts for aesthetic purposes. PLS HELP

    Hey someone create a labview program that uses the current and voltage to find the resistance. I also need a chart and buttons for aesthetic purposes. PLS HELP A GAL!

    COME ON GUYS.  HELP A GAL JAVA!

    HERE YA GO, GAL.

Maybe you are looking for

  • Withings App not opening after 9.3.1 set at level

    Since the upgrade to 9.3.1 Withings App of my partner won't answer on his iPad. Home page display briefly, then flips his reduced side, timer works a few seconds then closes its doors. After you have removed and reinstalled as recommended by the alwa

  • J4550 on Windows 7

    I've been happily running Windows 7 for a month and a half or two. I just bought an Officejet J4550 AiO. When I plug it to my computer, the drivers are automatically installed and Windows says that my camera is ready for use. However, it is not actua

  • HP7515 All-in-One. "Inaccessible scanner. Scanner communication cannot be established.

    Running Windows 7. LCD shows "No connection": no computer is connected.   I recently installed McAfee Total Protection software, but have disabled McAfee over this problem and there is no solve the problem.  I also completely removed McAfee with no r

  • BlackBerry Z10 old synch data "BOLD" to Z10

    I'm having trouble getting all my contacts the new phone and I was wondering what are the different options to achieve this quickly!

  • Touch anywhere on the screen calls the ListField TouchEvent.DOWN

    Hello I suffer with small complex issue. In the screen of my application, I have the title bar with a labelfield and two custom buttons. Below the titlefield I add a list field. Now, I have a few complex features on the field from the list. When I cl