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.

Tags: Acrobat

Similar Questions

  • 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.

  • 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.

  • 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.

  • 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 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.

  • 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 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 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 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 I create bootable disc for my Satellite A10?

    Hello! I run Windows XP (SP1) on my Toshiba Satellite A10/15. I think that there is something wrong with the HARD drive. Manifests problem as very slow system attempts to write something on the hard drive and multiple messages on ' missing config32, lack of attempts to write MFT$, bad clusters ' etc. I'm not too well known, so I'm rather lost in the bunch of info on all the these chkdsk/f, Testdisk, Bart PE, Hiren's BootCD, pressing F12 or F8, primary and logical partitions the user etc. Please help me with some basic things in my head!

    1. I have Toshiba Recovery DVD. I think it gives me a single opportunity: to lose all my files and restore the Virgin system I got when I bought my laptop. If I can make a bootable CD (I have CDRW/DVDR) and boot from it? (I have a urgent translation work for a client cross now and would like to put my extra computer education until I give him the satisfaction.)

    2 if I download XP2 or XP3 on Microsoft site I will be able to make my own bootable CD? (My internet connection is slow and it is difficult to download large updates whenever my system is reluctant.)

    3. What is the right path to solve the problem with the bad clusters? Is there a proper sequence for through remedies that I mentioned above? Or should I try all the remedies I mentioned above to my own sweet will (as soon as I read about them)?

    Hello

    The A10 is a former, and it is not impossible that your HARD drive starts to malfunction.

    (1) it seems that you have one of the oldest recovery disk that supports the standard recovery procedure and expert recovery procedure. The standard collection format the whole HARD drive and erases all partitions from the disk. Recovery expertise formats only the partition where the operating system will be installed.
    So you can use the recovery expertise to reinstall the operating system on the partition.

    > Can I make a bootable CD (I have CDRW/DVDR) and boot from it?
    Yes. You can create this disk. For example, Microsoft Windows PE can be useful. Google a bit...

    (2) you can not download the Win XP... you can download the SP2 and SP3, but this service packs are can be used in the framework of pre-installed Win XP OS.

    (3) the /F command chkdks corrects errors on the disk... also deliver the bad clusters...

Maybe you are looking for

  • Reset default values in a reactive mode design

    I deleted by mistake of presets in the option "view sensitive design" under "Web Developer" option in the menu. Is there a way to bring them back. I didn't wan't to reset my firefox to the factory settings. Any help is appreciated. Thanks

  • Satellite Pro M10: Need drivers for PS630E-G206D

    No, model PS630E G206D EN Please point me in the right direction so that I can get all the required drivers for my system. I looked on this site, but still miss me several drivers, IR, wireless etc. Sincerely, Jackie

  • Computer does not recognize that this printer is connected

    Hi - We have a new laptop and it does not recognize the old printer.  So, I'm trying to download the driver for it.  However, when I try to download it, it says "Waiting for the user to connect the printer", but the printer is already connected via a

  • How to remove caps/num lock notifications

    Whenever I hit caps or NumLock on my Elitebook 8460w get a notification at the bottom right of my screen that its been toggled. How can I get rid of these? Thank you.

  • Is it possible to read my frequency more frequently?

    Hello I was hoping I'd be able to read a frequency of 50 Hz (period time = 20ms) with three samples if my program had a cycle of 60ms (or at least two). Unfortunately, I can only recover a sample during this period. I built a *.vi to experiment a lit