Script problem with LiveCycle

Here is a script that works in Adobe Acrobat Pro 9 but not in Adobe Designer... How do i change the code to work in designer? Thanks!
var f1 = getField("text1");
var sDescription = "Acrobat; ";
if (event.target.value != "Off") {
f1.value += sDescription;
} else {
f1.value = f1.value.replace(sDescription, "");

You really need to read LiveCycle Designer's documentation about Scripting. This item is found under the menu "Help" option. There are significant differences between Acrobat JavaScript and LiveCycle Designer JavaScript and how the various fields work. LiveCycle Designer does not have a value of "Off" for a check box or radio button. Instead one sets the value for the unchecked state and the checked state.

Similar Messages

  • TOC/Script problem with Netscape

    I am using RoboHelp (webhelp) 5.5.
    I am facing two problem with netscape browser.
    1. loading the page itself take long time and show a message
    that script on this page is causing mozilla to run slowly.
    2. in the TOC when i click the TOC BOOK the content of the
    page inside that book is opened in new tab page in the same browser
    instant

    Hello Robo_Rajesh,
    Welcome to the forum.
    As a start point, I would suggest you check the following on
    Peter Grainge's web site for an explanation.
    Click
    here.
    Hope this helps.
    Brian

  • VB Script Problems with Windows Vista Ultimate

    I have iTunes 7.0.2.16 and when i try to update it i keep getting a message that says:
    "iTunes could not be installed becasue visual basic script (VB Script) is not installed or has been disabled. make sure VB Script is installed, turn off script blocking in anti-virus and personal firewall software, re-register VB Script, then install iTunes."
    I even get this message when i try to unistall iTunes. I completly uninstalled my antivirus software and removed all firewalls, but i wasnt able to fix the problem.
    I visited the iTunes and QuickTime for Windows cannot be installed without Visual Base Script (VBScript) section for help, however, it was unable to solve my problem.
    I currently have Windows Vista Ultimate and have been looking for a fix for a while now...any help would be greatly appreciated...
    thanks
      Other OS   Windows Vista Ultimate
      Other OS   Windows Vista Ultimate
      Other OS   Windows Vista Ultimate

    Hey rrijeka,
    Unfortunately, Vista is currently not compatible with iTunes.
    This article: http://docs.info.apple.com/article.html?artnum=305042 will tell you more about the iTunes and windows Vista compatability. The article will also be updated when itunes and Vista are compatible.
    Jason

  • Scripting problems with pipes!

    Hi Boardies!
    I'm working on a script to automatically generate PKGBUILDs for my custom kernels (For my 3 systems I need 3 custom kernel packages).
    Each PKGBUILD needs the md5 checksum block, which I can generate with "makepkg -c > PKGBUILD".
    Here is the problem
    This command writes the checksums at the end of the PKGBUILD file. This isn't a clean solution. The checksums should wrote before the "build()" function.
    Because of that I need a trickly bash command, which search (grep maybe?) the "build() "-line and writes the md5-checksum block before that line.
    I tested around with egrep, but I can't isolate the line-number of "build()" and I don't know how to paste the md5-checksums be at the position (line - 1)!
    I hope somebody can help me. Thanks for your answers
    Best regards,
    Flasher

    A simple perl script would be appropriate.  The easiest way to approach this problem (actual perl programmers feel free to correct me) is to do the following:
    iterate over the file, pulling each line into a string appended to an array
    iterate over the array, printing each line.  If build() is matched, print md5sum, then the line.
    write the corrected file to stdout
    Here's one I called test.pl
    #!/usr/bin/perl
    #Add MD5SUM to file
    #Read from stdin into @file
    while (<>) {
    chomp;
    push(@file, $_);
    foreach my $a (@file) {
    if ($a =~ /build\(\)/) {
    print "MD5SUM\n";
    print "$a\n";
    Then the following command:
    cat PKGBUILD | ./test.pl > temp
    mv temp PKGBUILD
    Produces an identical PKGBUILD with the word MD5SUM printed on the line above build().

  • [InDesign C# Script] Problem with textframe.place(imageName)

    Hi everyboy !
    I am beginning with the InDesign Scripting in C#, and the documentation is very poor. I have a problem and I can't find the solution.
    I have to place an image into a textframe on my document's page.
    I create my textframe without any problem :
               myDocument.Layers.Add();
            InDesign.Layer lastLayer = (InDesign.Layer) myDocument.Layers[myDocument.Layers.Count];
            InDesign.TextFrame myPicture = myPage.TextFrames.Add(lastLayer, InDesign.idLocationOptions.idUnknown, myPage);
            myPicture.GeometricBounds = new string[4] { myY, myX, myY2, myX2 };
    Then I try to place my Image, but I can't find which type of object is returned by .Place méthode :
    First try :
    InDesign.Graphics myGraphic =  (InDesign.Graphic) myPicture.Place(pathName, false);
    And I have got this error :
    {System.InvalidCastException: Unable to cast COM object of type 'System.__ComObject' to interface type 'InDesign.Graphics'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{C85A4AB3-9492-4C40-8A7B-F8305706C8B8}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)).
       at Service.createPhotograph(XmlNode photo, Page myPage) in c:\Documents and Settings\melaniep\My Documents\Visual Studio 2005\WebSites\WebSite6\App_Code\Service.cs:line 204}
    And I saw this tutorial in javascript for placing images  at http://www.adobe.com/devnet/indesign/pdfs/indesigncs4_scriptingtutorial.pdf
    //Display a standard open file dialog box to select a graphic file.
    var myGraphicFile = File.openDialog("Choose a graphic file");
    //If a graphic file was selected, and if you didn't press Cancel,
    //place the graphic file on the page.
    if((myGraphicFile != "")&&(myGraphicFile != null)){
    var myGraphic = myDocument.pages.item(0).place(myGraphicFile);
    //Since you can place multiple graphics at once, the place method
    //returns an array. To get the graphic you placed, get the first
    //item in the array (JavaScript arrays start with item 0).
    myGraphic = myGraphic[0];
    So I tried :
    InDesign.Graphics myGraphics =  (InDesign.Graphics) myPicture.Place(pathName, false);
                InDesign.Graphic myGraphic = (InDesign.Graphic) myGraphics[0];
    But I have got the same error.
    Someone have an idea? I am really lost, and I don't know what to do :'(
    Another little question.
    My picture is smaller than my textFrame.
    And I want my picture fits to the texframe.
    MyGraphic.HorizontalScale = widthOfTextFrame
    MyGraphic.VerticalScale = heightOfTextFrame
    Does it works? Or Am I in the wrong way?
    Thank you very much (and sorry for my bad english, I am french )

    Are you also beginning with C# ? Then please reconsider, and follow tried paths with JavaScript - plenty more support around here. You could at least write a draft of your program, and only if it works move it to C#.
    To get further on your issue, I'd follow the idea outlined here:
    http://msdn.microsoft.com/en-us/library/ms173183(VS.80).aspx
    If that does not work, I'm sorry - last time I used C# is years ago, and targeting some pocket PC. No InDesign involved.
    Dirk

  • Script problem with CC 2014

    hi,
    i have a problem i try to put a new screen. Freebies — Mt. Mograph from there but when i download the file on os i have to change the jsxbin in jsx to see  the icon jsx, then i put the script in ui scrpt panel but nothing happen i dont see it when i'm opening my AE ?
    what's wrong with it??

    Just to be clear.
    If you put jsxbin script to Scripts folder or to Scripts -> ScriptUI Panels it runs OK both from File->Scripts and Window - > "script name".jsxbin.
    However, if you do File -> Scripts -> Run Script File.... AE does not recognize jsxbin file and shows it greyd out. For that I have to rename those jsxbin files to jsx.

  • Live ID sign in problem after script problem with ...

    I am again having to sign in to WLM Live ID after each reboot.
    I first came across this problem when the Yahoo Toolbar was upgraded. See thread:
    http://community.bt.com/t5/BB-Speed-Connection-Issues/BT-Toolbar-installer-ongoing-problem-STILL-ONG...
    The script error "fix" has again changed the HKEY_USERS registry entry!
    I really am at a loss to understand why BT can't get its head around this.
    [HKEY_USERS\S-1-5-21-796845957-926492609-725345543-1003\Software\Microsoft\Windows\CurrentVersion\Exp lorer\User Shell Folders]
    AppData = %AppData%
    The problem here is AppData should actually be the following
    AppData = %USERPROFILE%\Application Data
    So when MSN or other apps that use that registry key go to save their data it gets lost.
    So the solution is simple, run regedit and go to
    [HKEY_USERS\S-1-5-21-796845957-926492609-725345543-1003\Software\Microsoft\Windows\CurrentVersion\Exp lorer\User Shell Folders]
    and modify/set the value AppData to a data value of %USERPROFILE%\Application Data

    I just had a look at the relevant forum http://forums.adobe.com/community/labs/widgetbrowser?view=discussions&start=0; but no help there either.
    To give you an idea, I was having the same problem, I could not log in. Despite that, I did have the most up to date widget in my browser, the one that dates back to 01/13/2012. Since then, no more widgets have been added.
    Along with ADDT and Spry I guess that the widget browser has become the next casualty.
    You can still use the browser, just be careful in the knowledge that the newest widget is already one year old.

  • TA21328 every time I use Safari I receive a message that says Safari is no longer responding because of a script problem with the website and I must press "continue" for the page to continue. This happens with every website I go to.  What is wrong with my

    When using Safari I have begun to notice this box appearing as I try to reach any website:  "Safari is no longer responding because of a script on the webpage and then it lists what ever web page I have tried to reach.  It then asks me if I want to "stop" the script or allow it to continue.  I must "continue" it in order to reach my web page/  If I press "stop" it just keeps coming back and back and I can't continue.  What is wrong with my computer or Sarari or both?

    chick --
    Does it mention "Slow Script?

  • Invoice List SAP script - Problem with SAP script functionality

    Hello Friends,
    I am working on SAP script - Invoice List SD_INVOICE_LIST. The invoice list contains the underlying billing documents. As per the standard functionality, in the line items, its printing the underlying billing documents with the net value. My requirement is to dig these line items into another level, meaning, I need to display the line items of billing documents  as well(like material, material description, quantity, net price and net value of that item etc).
    The billing linte item informatin is stored in VBRP table and the VBRP structure is not at all defined in the print program of SD_INVOICE_LIST (I.E.RVADIL01). Change of standard SAP program is not an option for me here.
    In the external subroutine we can fetch these line items for each billing document in the invoice list. However, my question here is how to take these line items back to the sap script and print them in SAP script (We can print one line item but how to loop these fetched lines and print them on SAP script. Any help in this regard would be greatly appreciated.
    I think there is no standard smart form exist for the invoice list. Please also let me know if there is any standard smart form available for INVOICE List.
    Thanks in advanace for any help in this regard.
    Best regards,
    Siva

    Hi
    As you cannot change the standard, you will have to see if there are any enhancements provided in the print program. if not you have to copy into a custom one and do changes accordingly.
    Thanks,
    Venkatesh

  • Chaining 2 Ecatt Scripts Problem with Parameter

    Hi,
    I'm trying to chain two scripts VA01 and VA02 using a new script via REF command.
    The result of VA01 (Sales Order number) is being passed as export parameter to VA02 but in the replay I can see it go into VA02 but subsequently being replaced with the default value from the VA02 script i.e. the value used when recording this script in the first place. The script then fails.
    Any help thanks

    Venkat,
    Thanks for the reply but still no joy with your suggestions
    In VA01 I have export parameter E_SALES
    In VA02 I have import parameter I_SALES
    In the 3rd linked script I have local parameter V_SALES
    I pass E_SALES value to V_SALES and then V_SALES to I_SALES in the 3rd linked script
    The value of I_SALES in VA02 does not come from the linked script as it should do. In the replay I can see the correct value go into VA02 but then overwritten with the value of parameter I_SALES in VA02 script.
    any other ideas?
    thanks

  • Problem with LiveCycle 8.0 Form in Acrobat 7.0

    I have created a form in LiveCycle 8.0 that contains text fields that have multiple lines enabled, are sized to fit height, and are in subforms that are set as flowed and allowed to break across pages.
    When I test the form in Acrobat 8.0, the fields flow perfectly from page to page. But when I try to test the form in Acrobat 7.0 -- which is widely in use here -- the fields extend onto the next page as expected, but then the portion of the field that has extended to the next page cuts off at a seemingly random point and does not fit to the height of the text.
    It appears as if the text successfully resizes the field on the main page, then when it overflows it defaults to allowing multiple lines but NOT to resize to fit the length; instead, I get a portion of overflow text, then the plus sign in the lower right hand corner signifying I have additional text that is not visible. Also, the point at which I get the plus sign is random, or at least inexplicable; it may hit at the top of the page, the middle, or near the bottom, depending on how much text overflows -- but it always happens.
    Is there a subform sizing issue here? I hope I'm just missing something obvious...
    Thanks.

    I can't be sure about exactly what's happening here, but I can point out several things.
              The class "javax.servlet.jsp.el.VariableResolver" is associated with JSTL 1.1.x, and JSP 2.0. It's not part of JSTL 1.0.x. Make sure you really have version 1.0.6, and don't have 1.1 somewhere.
              If you're just trying to use the JSTL, you shouldn't need several of those jars that you're presently including. You only need jstl.jar and standard.jar.
              Why are you using the "rt" versions of these taglibs? Those don't even use the expression language. I would remove "_rt" from all of those references.
              Note that if you're using Struts and the JSTL, you probably want to use Struts-EL, which is a version of the Struts jar that uses the EL to evaluate attribute values. Check the struts-user archive for some information about this. You'll find the struts-el distribution in the "contrib" directory of the Struts distribution.

  • I updated firefox hoping to stop a script problem with tabs, but it is still happening. When I go to close a tab at times I get a script error message. After choosing stop script, individual tabs won't close until I restart firefox.

    This is what the box says when it happens...
    A script on this page may be busy, or it may have stopped responding. You can stop the script now, or you can continue to see if the script will complete.
    Script: chrome://browser/content/tabbrowser.xml:1628

    -> Update All your Firefox Plugins
    * https://www.mozilla.org/en-US/plugincheck/
    * '''When Downloading Plugins Update setup files, Remove Checkmark from Downloading other Optional Softwares with your Plugins (e.g. Toolbars, McAfee, Google Chrome, etc.)'''
    * Restart Firefox
    Check and tell if its working.

  • Scripting problems with upgraded project file

    Hello,
    I hope someone can offer a bit of help on this one. I have a v3 project file that I upgrade to v4. I decided to add a "return to menu" script to this project file. 3 scripts to set GPRM 0 mov to 0,1,2 for three different menus. And a final Jump script to Jump to Menu 1 if GPRM 0=0, Jump to Menu 2 if GPRM 0=1, Jump to Menu 3 if GPRM 0=2.
    This doesn't work - won't work in simulator nor on a build. I suspect that the culprit is the upgraded project file. I made a new v4 project file and replicated these same exact scripts and behold! It works!
    So I figured out that it's the upgrade project file that is the reason why these scripts won't work! Very disappointing.
    But now, what can I do short of rebuilding this project all the way from scratch?!?
    It's too bad you can't open 2 projects and copy and paste from one into another.
    Using DVDSP 4.0.3
    Dual 2 ghz G5   Mac OS X (10.4.5)  

    If you'd like to strip out the project assets (video and audio) and use .pict images as place holders instead, then send me the file (with the place holders), I'll happily take a look at it for you. It should be working fine, and I suspect there is something small we have both overlooked.
    There are no real issues with projects from v3 going on to v4 where scripting is concerned - the scripts are identical. There will be something else going on here...
    Just to be sure your scripts are:
    mov GPRM1, 0
    Jump MainMenu // your actual menu name is here
    then
    mov GPRM1, 1
    Jump SceneSelection1 // again, your actual menu name is in here
    and
    mov GPRM1, 2
    Jump SceneSelection2 // and again for the menu name
    Then your final script reads:
    Jump MainMenu If(GPRM1 = 0)
    Jump SceneSelection1 If (GPRM1 = 1)
    Jump SceneSelection2 If(GPRM1 = 2)
    The first script is the start up item for the disc, the second and third scripts are set as targets for buttons on the main menu (which means the script is run before the footage plays) - the last script is set as the menu call and end jump for the track.
    You are sure that you are correctly re-setting the GPRM each time you move between menus?
    If this simple scripting system isn't working then there is going to be a reason for it besides the upgrade... send me the file, I'll have a look. Alternatively, have a look here for downloadable stuff, and find the zip archive called 'Chi-Ho Lee', which is a simplified PAL version of how I think you should have this set up.

  • Lingo-Java Script problem with new members

    Hi, I'm new to Director, so this question could be very
    simple, but i can't find the answer in internet.
    I very like Flash and ActionScript and now i've started to
    learn Director.
    When I create a Sprite in a Cast- how can I (with JavaScript)
    copy this Sprite to the Stage as a new object with a new name?
    And the second question - Do you know any good sites, where
    are good articles, tutorials, examples, connected with scripting in
    Director?
    Than you very much :):)

    Thank you :)
    I have unfortunately something wrong translated, because I've
    got no errors, but nothing happens. The script on the 1st Timeline
    frmae is:
    function exitFrame(me) {
    aaa=channel(5).makeScriptedSprite(member("p1"), point(0,1));
    aaa.locV=100;
    trace("t1") //this is traced
    aaa.scriptInstanceList.push(new script("dynamicScript"));
    trace("t2") //this is not traced
    on the second frame:
    function exitFrame(me) {
    _movie.go(2);
    and in the cast (name of this script is "dynamicScript"):
    function enterFrame()
    trace("dsd");
    I'm really thankful to you :)

  • Action Script problem with scrolling images

    doing a tutorial and got to the stage of action scripting mouse control for scrolling images.
    checked the script in Actions. And said it was ok...No errors found.
    Tested the movie and there were 2 compiler errors reported.
    Scene 1. layer 'action script', Frame 1, line 1: 1120:Access of undefined property _root. _root.onEnterFrame=funtion(){
    Scene 1. layer 'action script', Frame 1, line 2: 1120:Access of undefined property _root. _if(_root._xmouse<50){
    Scene 1. layer 'action script', Frame 1, line 1: Warning: 1058: Migration issue: The property _root.onEnterFrame=funtion(){
    Can anyone help me understand this.
    thanks

    It sounds like you are mixing up AS2 code with AS3 compiling.  You may need to change you publish settings to AS2.

Maybe you are looking for