Buggy Javascript

Hello

I am currently working on a PDF file with custom calculations.

Here is a part of the code that gives me various questions:


var WidowerValue = getField("WidowerAllow").value;
var WidowerAnswer = getField("WidowsEnti").value;
var WidowerChildren = getField("under18Total01").value;

var Child01Benefit = WidowerChildren * 1620;
var Child01Allowance = WidowerChildren * 1534;


if(WidowerAnswer == "Yes"){
  if(Child01Benefit != 0 && Child01Allowance !=0){
  event.value = WidowerValue + Child01Benefit + Child01Allowance;
  }else{
    event.value = WidowerValue;
  }

}
else if(WidowerAnswer == "No"){
  if(Child01Benefit !=0){
    event.value = Child01Benefit;
    }
}

It depends in a textfield whose values change the conditions met. It works (sometimes), I usually have to click in the box and remove the wrong value, he went and then it will show the correct calculation. Other times it does not actually add the values just joined them together for example instead of 5 + 5 = 10 (correct) it will place 5 + 5 = 55 (wrong), it's still once corrected when I manually remove an incorrect value.

Can anyone offer better understand why this is happening?

Thank you

Yes, that sounds like a problem with the calculation of field order, which can be defined in form editing mode, through tasks - other tasks.

The area in question must be lower than the other fields that it uses to calculate its value.

Also, you wrote "it is placed in a textfield... I assume you mean that you used the calculation script customized for this field. If this isn't the case, then it should be.

Tags: Acrobat

Similar Questions

  • External file of Javascript Ghost (bug?)

    Hi, this is a sensitive issue (at least for me):

    I created a Javascript file, we will call "test.js", I downloaded for shared components-> static files without request repository associated in particular.

    This file it is referenced by the X page with NO cache setting on the Javascript-the URL of file like this: #WORKSPACE_IMAGES #test.js

    So far so good, the functions of the library was called and executed correctly.

    But I stumbled upon a small bug in the file I have proceeded to correct and then change in the downloaded version of the file (less than 30000 bytes file, I was able to change on the spot, hit apply changes). After that, I deleted temp files and history on the browser. However when I run the page again the error continues, because, as shown in the console, the file being used is the precedent, not the version fixed. A little weird... okay, but that's not all, I have decided to remove the file from the repository and upload it again (same name "test.js") with no application associated with, once again, delete the temp files and history on the new browser and run the page (once again ). And once again (hehe...) the error persists and the file called is the one that does not exist. So finally I decided to do a bit of magic to deceive and delete the file but not download, leaving the reference to #WORKSPACE_IMAGES #test.js on page properties, delete history and the temporary file to the browser and run once more, this time decided to break the page, and yet it works!, wrongly is the buggy file but it's there! , so I said: "ok, browser problem... run it on Chrome (for the first time) and the file is there, so I said: 'ok, machine question..', run it on a new computer (for the first time) and the same non-existent buggy file and it is been charged...

    This file, it is not referenced by another application (yet). The runtime is file to the url that does not exist:

    http://192.168.141.14/Apex/wwv_flow_file_mgr.get_file?p_security_group_id=3321831433497474 & p_fname = test.js

    I downloaded the same file under a new name Let's say test_1.js and change the page indicated under this new name, then the page load the new correct file. But this is not a desirable behavior, that I got the chance that it was the first reference to the file, but if it happens at a later stage, it would be a major problem.

    Sorry for making it a bit wide but I tried to be thorough with this, I missed something? Why is this happening?  Any help will be appreciated.

    I use:

    • APEX build 4.2.3.00.08

    Database

    • CORE Production 11.1.0.7.0
    • NLSRTL Version 11.1.0.7.0 - Production
    • Oracle Database 11 g Enterprise Edition Release 11.1.0.7.0 - 64 bit Production
    • PL/SQL Release 11.1.0.7.0 - Production
    • AMT for Solaris: 11.1.0.7.0 - Production Version

    I had the same problem some time ago, you can see the solution on this thread:

    CSS referencing of components shared/Cascading Style Sheets

    Thank you

    Erick

  • PoPList LOV does not have another field via JavaScript

    I want to fill a field of a LOV poplist field value. I tried to write a javascript script, but when I clicked the poplist, poplist field gets filled but the other field has not. I put the following code in the HTML of the page header:
    <script language="JavaScript" 
    type="text/javascript">
    <!--
    function specialty_lookup_pick(){
      //  if P9_SPECIALTY_LOOKUP is not empty, then populate P9_SPECIALTY_FILTER with
      //  it
      if !(html_GetElement('P9_SPECIALTY_LOOKUP')==null ||html_GetElement('P9_SPECIALTY_LOOKUP')==' ') {
        html_GetElement('P9_SPECIALTY_FILTER').value =html_GetElement('P9_SPECIALTY_LOOKUP'); 
      }
    }
    //-->
    </script>
    On the lov poplist, I placed the following code in the HTML Form Element attributes of P9_SPECIALTY_LOOKUP (lov poplist):
    onChange="specialty_lookup_pick();"
    Login details:
    Workspace: RGWORK
    Application: Profile Mini-37838
    User: Tester
    Password: test123

    Follow the following steps:
    1. click on the button on the home screen search firms
    2. click on the architecture and engineering to the title of the research
    3. click on the poplist on the last line (before the go button)
    4. click on any value on the poplist

    Result:
    Poplist field is filled, but the specialty search s/b the padding (in javascript) but is not. Also, I noticed that session state is not defined for the poplist field.

    Can someone please help?

    Thank you
    Robert
    http://apexjscss.blogspot.com

    Your javascript is buggy and it would have been absurd in the part of the conditions of it. Now it's working. Start using firebug.

    Denes Kubicek
    -------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.Opal-consulting.de/training
    http://Apex.Oracle.com/pls/OTN/f?p=31517:1
    http://www.Amazon.de/Oracle-Apex-XE-Praxis/DP/3826655494
    -------------------------------------------------------------------

  • iOS 10 Safari / JavaScript bookmarklets

    I have not updated to iOS 10 again. Before that, I would like to know if Safari still allow JavaScript bookmarklets in iOS 10?

    (For the community, there was no Safari for iOS or any community for iOS in general applications.)

    To cite how this can be tested:

    You can change the address of any bookmark to

    JavaScript:Alert('test');

    and when you click the bookmark, if it displays "test" and then the JavaScript worked. Anyone can try this in iOS 10 Safari?

  • macOS Sierra is a buggy and crap OS

    The worst OS that apple has ever made. Model of MacBook Pro (Early 2015) is not close properly without a hard stop, after the installation of macOS Sierra. Still, it shows a window saying that there is a problem in my MacBook and should be stopped. Where can I get the OS X El Capitan? After the installation of macOS Sierra, my MacBook has become slower than before. Could you guys please fix the BONES of crap and buggy that come out?

    Which MacBook Pro mode

    What OS version you had before?

    El Capitan is available in the section of the purchase of your Mac App Store

    You have a backup TM you can restore from?

    Can you post the error message you received?

    Open the Console application in the Finder > Applications > utilities and look for entries of the log at the time of the problem.

    Have you tried:

    -Try to reset memory NVRAM/PRAM and SMC

    MacIntel: Reset of the controller (SMC) system management

    https://support.Apple.com/en-us/HT201295

    Subject of memory NVRAM and PRAM

    https://support.Apple.com/en-us/HT204063

    -Try to start safe mode

    OS x: what is Safe Boot, Safe Mode?

    https://support.Apple.com/en-us/HT201262

    -Start to recovery and repair the startup disk

    OS X: on OS X Recovery - Apple Support

    https://support.Apple.com/en-us/HT201314

    -If it is repairable reinstall the OSX

    How to reinstall OS X on your Mac - Apple Support

    https://support.Apple.com/en-us/HT204904

    -If you do not have a backup using disk utility to restore the internal drive to an external drive, so that you can try to recover the data.

    Format the boot disk and then do a fresh install of Mac OS x

  • circumvent the Javascript on Safari alert box

    I visited a site that prompted a third announcer to activate an alert box Javascript asking me to perform a Flash plug-in download. I tried to close the tab without response to the alert, but the alert is persistent and allow me to select useful on Safari options until he is satisfied. It seems that the only way to avoid it is to close the browser session. But when I run Safari, once again, the alert is displayed again. Is there a way to remove this nuisance?

    1. click on the button "stay on the Page.

    Safari > Preferences > Security > Web content:

    Uncheck 'enable JavaScript.

    2. click  in the menu bar and select "force quit."

    In the window that opens, select "Safari" and click "leave power.

    3 restart Safari by holding down the SHIFT key.

    4 safari > Preferences > Security > Web content:

    Again check the box 'enable JavaScript.

    If this does not help:

    Quit Safari.

    Click on an empty space on the desktop to activate the Finder.

    Hold down the option key and click on the "Go" menu in the Finder menu bar.

    Choose 'Library' in the menu dropdown.

    1. Home > library > app state saved > com Apple.Safari.savedState

    Right-click on com Apple.Safari.savedState and choose "move to trash".

    2 home > library > Safari > LastSession.plist

    Right-click on LastSession.plist and choose "move to trash".

    Launch Safari and test.

    Note: A screenshot of the po - pup would have helped.

  • If the applications are written in Javascript, how can a developer protect the rights?

    I read that Firefox OS applications are written in Javascript, Html, and CSS. Can anyone see or copy the code? Is it possible to prevent it?

    BONES of Firefox applications are written in JavaScript. It does not support Java or Flash. Your code is automatically protected by copyright in some countries as the France, see the laws of your country. But if you want to hide your code, it is not possible. You can just make it unreadable with a mibified version.

  • Everyone finds iOS 9.3.4 buggy?

    Since updating my iPad to 9.3.4 I get lots of very annoying bugginess apps crashing and others.

    Like the keyboard completely inadmissible unless try you 2 or 3 times.

    No problem with iOS 9.3.4 here...

    See if that helps...

    1. Press and hold the sleep/wake button until the Red slider appears.
    2. Drag the slider to turn off your device completely off.
    3. Once the device turns off, press and hold the sleep/wake button again until you see the Apple logo.
  • JavaScript does not in FF, but works fine in IE, Chrome, Opera, and Mobile devices

    On this page, the menus javascript (two of them) often do not load. If I click on Ctrl + F5, they can load on the 2nd attempt. This Page works fine in IE, Chrome, Opera and mobile browsers, but not in FF. I cleared FF cache by going to options and have also worked with modules and plug-ins to 'ask to activate '. This problem persists...

    Javascript menu bars sometimes don't show at all, or sometimes will appear, but have empty menu items (menu options do not show).

    http://www.consultapedia.com/international/international_marketing/intl_mrktg_skill101.htm

    I've included a screenshot of how they (don't) appear in FF. Also another screenshot of how they appear in other browsers, or when I click Ctrl + F5 in FF.

    Hmm, there is a lot of content added by scripts on this page after a delay.

    Firefox has several optimizations to speed up the display of pages in the cache which may malfunction under certain circumstances. For example, display a page using the Back button will not necessarily trigger an "onload" event in the page. This article describes how to work around this problem for web developers: https://developer.mozilla.org/Firefox/Releases/1.5/Using_Firefox_1.5_caching

    For end users, it is a difficult problem to solve. A partial solution might be the following:

    (1) in a new tab, type or paste Subject: config in the address bar and press return / enter. Click on the button promising to be careful.

    (2) in the search above the list box, type or paste sess and make a pause so that the list is filtered

    (3) double-click the preference browser.sessionhistory.max_total_viewers and change the value from-1 to 0 (that's a zero).

    (Please change not all other parameters similar to 0-sounding or you can disable the ability of Firefox to save/restore your tabs and windows open).

    Then reload the page problem and trying sail away and back to see if the inserted content is preserved.

    There may be a performance penalty slight for this change, but you probably won't notice it. Firefox will be used in the file cache, it will just go up the page in a slightly different way that often works around this issue.

    Does make a difference to you on this site?

  • removal of javascript without replacement option

    Disabling javascript without offering a link to any other script, my main use of firefox makes them unusable. without the ability to view streaming videos I have no real reason to use firefox. so by doing this, you deleted my reason for having even firefox in my computer.

    timR said

    apparently the first reaction was of someone who does not understand what I am complaining. I just updated the javascript plugin, it shows that the latest version, but firefox claims that it is unsecure and don't allow it, I checked the box to update on an another plaugin who is also disabled. and is up-to-date, the javascript plugin doesn't have a link to update. so I do not know what YOUR asking. the plugin javascript to read in the video streaming IS NOT BUILT in, and I want to know WHY mozilla has found it necessary to disable the last plugin javacript without offering a link to one that they will allow you to use.

    In fact, it was confuse you the difference between JavaScript that is built into Firefox and the separate Java plugin installed on the system.

  • How can I activate JavaScript

    I use Firefox for tor and I need to know how to enable JavaScript, once I reached my site

    Java and JavaScript are different languages.
    To avoid confusion, see:

    If you use extensions (Firefox, Tools/menu key > Modules > Extensions) which can block content (e.g., Adblock Plus, NoScript, Flash Block, Ghostery) then make sure that these extensions are not blocking content.

    Start Firefox in Safe Mode to check if one of the extensions (Firefox, Tools/menu key > Modules > Extensions) or if hardware acceleration is the cause of the problem.

    • Put yourself in the DEFAULT theme: Firefox, Tools/menu key > Modules > appearance
    • Do NOT click on the reset button on the startup window Mode safe
  • How can I enable javascript on my Mac OSX for Firefox 41.0.2?

    When I pull down the menu under Tools, there is no other choice called OPTIONS. I want to activate javascript, but don't know how.

    Also the options is the term used on Windows. On Mac, it's called preferences and you can find it in the menu of the application (button "3-bar" menu) or the Firefox menu in the classic menu bar.

    Also, I suspect that you may have an extension of filtering (for example, advertising blocker, blocker, blocker tracking script) that causes this problem, but please work with suggestions contained in the reply of cor - el, where it is one of the simplest things.

  • where can I find firefox for Windows 10 who support the JavaScript and Norton

    I had problems all this Sunday can not enter in the emails. bankAccounts or facebook because allways firefox41 tell me I need to install and activate JavaScript. I have Windows installed 10. My laptop is 1 year old HP. I also prefer to use Norton. What can I do? Can Andy I find an older version of Firefox in Norwegian?
    Thanks for listening.
    Michele your

    Firefox's JavaScript should be enabled by default. Can you provide more information about the messages that you have found on this subject?

    At the same time, to examine the question of Norton and your language:

    Norton has been a big topic of communication of updates for Firefox via LiveUpdate a few days before each new version of Firefox is available. But that changed with Firefox 41. Due to the change in Firefox (which was originally going to be in 40 Firefox but was delayed at the request of Norton and maybe a few other companies), the toolbar needs major changes and they are still not available yet. Norton issued a statement on this subject: https://support.norton.com/sp/en/us/home/current/solutions/v115161915_EndUserProfile_en_us

    If you want to use an updated version of Firefox that allows to run the current Norton Toolbar, there are another option. You might consider a different variant of Firefox called the Extended Support Release (ESR) for the moment. ESR is designed for businesses that require a cycle time longer between changes to the features, but anyone can run it.

    ESR is currently based on Firefox 38. It will get updates of security over the coming months, but not to get new features, so changes in Firefox 41 concerning the compatibility of the add-on will not be out for a good time.

    Norton is likely to continue to support the ESR until the new update of toolbar. After that, I don't know what they will do because normally they don't take over a small range of versions.

    If you decide to try it, here's how I suggest to install:

    Clean reinstall it

    We use this name, but it isn't about deleting your settings, this is to ensure that the program, files are clean (not incompatible, corrupt or exotic code files). As described below, this process does not disrupt your existing settings. Don't uninstall NOT Firefox, that does not need.

    (A) download a fresh Installer for Firefox 38.3.0esr of https://www.mozilla.org/firefox/organizations/all/ in an ideal location. (Scroll down your preferred language).

    (B) the release of Firefox (if any).

    (C) to rename the program folder, either:

    (Windows 64-bit folder names)

    C:\Program Files (x86)\Mozilla Firefox
    

    TO

    C:\Program Files (x86)\Fx41
    

    (Windows 32-bit folder names)

    C:\Program Files\Mozilla Firefox
    

    TO

    C:\Program Files\Fx41
    

    (D) run the installer downloaded to (A). It should automatically connect to your existing settings.

    Success?

    Note: Some plugins can only exist in the old folder. If it is missing something essential, present in these files:

    • \Fx41\Plugins
    • \Fx41\browser\plugins
  • I can't have javascript must be activated using the normal procedure on Firefox 40.0.2. How can I do this?

    I loaded firefox 40.0.2 and I can not activate Javascript. I went into the menu screen java and javascript is enabled, but all my apps are running javascript isn't see it as enabled. JavaScript works on IE, but I prefer to continue to use Firefox.

    You can check the pref Network.protocol - handler.external.javascript on the topic: the configuration page for you ensure that it is the default value (false).

    You can use the search bar on the topic: page config to filter javascript.
    If other prefs javascript show user defined (in bold), then you can reset them as well.

    You can open the topic: config page via the address bar.
    You can accept the warning and click on "I'll be careful" to continue.

  • What has been the recent initial risk security involving Javascript in Firefox?

    What has been the recent initial risk security involving Javascript in Firefox? I downloaded the suggested "No Script" to be able to allow or forbid scripts on Web sites. However, it gets a little frustrating when waiting for pages to download, then realize that I have to enable them. I really need to make it longer?

    JavaScript is not any security risk known that have not been resolved in recent versions of Firefox. You are thinking maybe Java, which is full of known security holes and should be turned off, but is not related to the Javascript in any way.

Maybe you are looking for

  • Difference between "Download clear ' and ' clear list?

    I clicked on the arrow down which is the icon for downloads. I right click on a file you downloaded and I saw an option 'clear list'. Another time, I clicked on 'Show all downloads', then on the top of the screen it displays a tab mentioning "clearly

  • Download the folder / dock - badly "icon".

    Hi, I've lost my download from the dock folder.  When I try to drag back, the icon is a strange white form and when you click on it opens a really strange list without control up or down.  How can I get the right blue folder that appears correctly in

  • Satellite A110-231; USB keyboard "drops" characters

    The characters are removed at the BIOS level and when the OS (XP Prof. SP 2) has been loaded. Running BIOS version 1.6.2.9. Any ideas? Richard Bradshaw

  • Drivers for Toshiba laptop are not listed on the Web site

    Hello I was wondering if anyone here knows where I can find drivers for Toshiba Satellite A100 PSAAKC The websites that I found online were specifically of many models, but not this one.I re-installed Windows XP and experiencing problems will be solv

  • Multiple monitors / displays on y560 (win7) - total 3 screens

    Is there a way to output to 2 monitors outside the laptop screen? I thought for sure it would be sustained but I can't get it to do any 2 of the 3. I wish I could keep my laptop usable and also 2 external monitors with VGA and HDMI output. Any ideas?