dreaded default zero in calculated field - how to remove so that the data entered

I'm not experienced with scripting in LiveCycle Designer ES2.

That's what my PDF form looks like when it is opened by the user:

Form.PNG

But, I don't want the default $ 0.00 because some users can print the form and manually enter all areas. I want it to be empty, until the data is added in one of the hourly rate or the Total number of hours of the contract.

Capture.PNG

It comes to the design of form with tab linking objects (and as Name() use data binding to):

TtlHrs

HrlyRate

VacRate (this is a protected field to set the value by default. 04; as 4% on the form when it is opened)

It is the simple calculation in FormCalc for the TOTAL field:

TtlHrs * HrlyRate + (TtlHrs * HrlyRate * VacRate) which gives the default value of 0 in the form.

I want to write a script that will delete the 0 until data is entered in one of the first two fields. I tried using the code suggested in other posts, but it does not work - just keep getting syntax errors.

If you reply, please indicate whether your script is for the event to Java or FormCalc claculate.

Your calculation in formcalc should be something like:

If (TtlHrs.isNull == 0 and HrlyRate.isNull == 0) then

$ = TtlHrs * HrlyRate + (TtlHrs * HrlyRate * VacRate)

else $ = «»

endif

Tags: Adobe LiveCycle

Similar Questions

  • How can we check that the data already exist in the database

    Hi friends

    I'm trying to create a procedure for adding clients in the database with the customer id as input parameter... but if the customer details database already exists that I would update this detail and is not in the database I want to add this detail in the database... How could I do that...

    any help would be appreciated

    Thank you
    Rommy

    Hello

    If your condition is to add to a table, and if the record exists in the other table, the merge statement does not work

    Example (Please check the column name and the parameter names). I do not commit or rollback because I do not know if you control the transaction within this procedure or outside it.

    CREATE OR REPLACE PROCEDURE add_cust(I_CUST_ID        IN VARCHAR2,
                                         I_CUST_F_NAME    IN VARCHAR2,
                                         I_CUST_L_NAME    IN VARCHAR2,
                                         I_CUST_ADD       IN VARCHAR2,
                                         I_CUST_CITY      IN VARCHAR2,
                                         I_CUST_STATE     IN VARCHAR2,
                                         I_CUST_ZIP       IN VARCHAR2,
                                         I_CUST_DOB       IN DATE,
                                         I_CUST_          IN VARCHAR2,
                                         I_CUST_ACCT_TYPE IN VARCHAR2,
                                         I_START_BAL      IN NUMBER) IS
    BEGIN
       INSERT INTO CUSTOMERS C
          (CUST_ID,
           CUST_F_NAME,
           CUST_L_NAME,
           CUST_ADD,
           CUST_CITY,
           CUST_STATE,
           CUST_ZIP,
           CUST_DOB,
           CUST_)
       VALUES
          (I_CUST_ID,
           I_CUST_F_NAME,
           I_CUST_L_NAME,
           I_CUST_ADD,
           I_CUST_CITY,
           I_CUST_STATE,
           I_CUST_ZIP,
           I_CUST_DOB,
           I_CUST_);
    
    EXCEPTION
       WHEN DUP_VAL_ON_INDEX THEN
          INSERT INTO CUSTOMER_ACCT
             (CUST_ID,
              CUST_ACCT_NO,
              cust_acct_type)
          VALUES
             (I_CUST_ID,
              CUST_ACCT_SEQ.NEXTVAL, -- CUST_ACCT_SEQ is a sequence, isn't?
              I_CUST_ACCT_TYPE);
    
    END add_cust;
    

    Kind regards

  • How to remove some of the data in the time capsule

    Can I just remove data backup in the time capsule by a certain date?

    No, it's almost impossible to mess with the TM backup. If you make them likely to have usable backups are minimal. You can try to limit the size of the sparsebundle... but you can't go back.

    I'm not sure of what you're trying to achieve... perhaps spell... but if your TC disk is full, my recommendation is to archive existing backups on USB connected to the TC... This option is available through the disc tab airport utility...

    Then erase the TC... also on the disk tab.

    And start new backups for all of your computer/s.

    Once you have a few months worth of the USB can be erased as the chances for need of an old backup file is very likely. Up to you... you can keep it forever if you want... or at least until the car dies.

  • How can I automatically populate the date field after only one "digitally signs" a .pdf form? Help, please! Thank you!

    How can I automatically populate the date field after only one "digitally signs" a .pdf form? Here's a sample:

    _ Digital Signature___ (signs), Date (Auto-remplit)

    Under field properties of the signature on the signature tab, you can use a custom script, like this:

    this.getField("Date").value = util.printd ("mm/dd/yyyy", new Date());

    You know, however, that a digital signature always displays the date and time, it has been applied?

  • How can I apply the automatic spelling correction for selected fields from the data entered by the users of forms?

    I would like to be able to apply the spelling correction of selected fields in the forms I created using LiveCycle Designer 8.2 at runtime, as opposed at design time.  I understand that version 8 LCD has a spelling corrector new OWL for form designers.  But I want to say check the data entered by users using Acrobat Reader.  And I want to apply the spelling correction automatically on only selected fields.

    Currently it seems that fill out my forms, users must know how manually right-click on each field, and then select "Spell Check" from the dialog box to check spelling mistakes in the data that the user entered into the form.

    I would like to discover a way to apply the correction spelling in certain areas, as well as I am able to do in forms created using Acrobat Pro.  Acrobat Pro, I can set a property for each field to require the spell check.  but this feature seems to be missing in Livecycle Designer.

    I have check the object model for XFA forms hoping I could find a method I can call a JavaScript file, check the spelling based on an event such as onBlur.  But I have not found a method of spelling.

    Am I missing something simple?  Is there a way to define each field out controls when a user is filling out the form using the free software Acrobat Reader?

    Our users are not sophisticated and forcing spell check each field separately just doesn't cut it...

    Any help on this will be greatly appreciated.

    Thank you!

    -David Bartholomew

    Hi David,

    Two things...

    At design time has set the locale of the form to that coming out Acrobat checks. For example the locale English (United States) and English (United Kingdom) have Spellers; However the English (Ireland) does not work. Check the warnings tab to see if the spell checking is supported for your locale.

    If your locale form supports spell checking, so you can go to the script of the button below.

    If you form local does NOT support spell checking, Stephanie has a great work-around to force spell (http://forums.adobe.com/message/2233945#2233945).

    Put a normal button on the form and in the click event must have the following:

    app.execMenuItem ("spelling: spell check");

    Which will open the checker spelling for all fields.  Thanks to Paul for extract all elements of menu available (http://forums.adobe.com/message/1912914#1912914).

    Good luck

    Niall

  • How to remove one of the elements of operating system of Windows Start menu?

    Original title: choose an operating system to start, or press Tab to select a tool. _ (use the arrow keys to highlight your choice, then press enter) windows Vista__Microsoft windows Vista __Microsoft

    How to remove 1 of the operating system for each time I start the computer, I dun hv to click on the 1st system?

    Thanks for the help

    Hi the user Noob,

    We recommend that you remove the entry that allows Windows to start successfully. Microsoft Windows Vista (C:\Windows) is the default. You can remove the second entry and check the result (delete if it does not work).

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • How can I re - attach the data files for the programs?

    Original title:

    reconnection of the files

    BONE had to be reinstalled.  All data is saved but lost programs.  Programs now reinstalled, but how can I re - attach the data files for the programs?

    Hello

    You copy the data on your computer (Documents, Photos, etc.) and file extensions should be automatically associated with programs they have written in.

    Otherwise:

    "Changing programs by default by using Set Program Access and defaults of the computer"

    http://Windows.Microsoft.com/en-us/Windows/set-program-access-computer-defaults#1TC=Windows-7

    "How to change file Associations in Windows 7 and Windows 8.

    http://www.7tutorials.com/how-associate-file-type-or-protocol-program

    See you soon.

  • Text field required from the data entered in a previous field

    Good afternoon

    I'm trying to implement a requirement such that if the data entered in A text field then the field of text B is necessary. The research on the forum I did, I think I need to use the change event. But the only entries members I've seen involve drop downs or boxes option and I don't know how to translate in to whether or not data is entered in a text field. Thanks in advance!

    Hello

    Darkness samll error you did. It must be xfa.event.newText. No xfa.eventnewText. If you see attention you missed the "dot /." between the event and newText. Try it and see what happens next.

    Thank you

    Sidonie.

  • RE: iOS iPhone 6 s 10 how l remove or disable the slippery camera from outside the locked screen? This feature is a security and threat privacy for me.

    RE: iOS iPhone 6 s 10 how l remove or disable the slippery camera from outside the locked screen? This feature is a security and threat privacy for me.

    You can not. However, I'm not sure why you think it's a privacy or security threat. The only thing that can be accessed without unlocking the phone is the camera to take pictures. No one can access your data already on the phone.

    You can send feedback to Apple here:

    http://www.Apple.com/feedback

  • I found the show/hide button toolbars, but you should know how to REMOVE toolbars that appear on this list?

    I found the show/hide button toolbars, but you should know how to REMOVE toolbars that appear on this list?

    Is attached a screenshot of my screen with the context menu to show/hide tabs. I want to delete some of them and let others. Please help me to know how. Thank you!

    Hmm, maybe this "one-time" imported into the new preference? Try this:

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

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

    (3) double-click the preference of browser.uiCustomization.state and the content must be highlighted in a small dialog box.

    (4) copy the whole line and paste it into Notepad and save it as a backup.

    (5) in Firefox, click on the button '3-bar' menu > developer > Notepad. Remove the comment that appears and paste data preferably, that must appear on a long line. Click on the "Pretty Print" button to make it more readable.

    So I hope that you can spot the extra toolbars and change them out, taking care to preserve the commas between the elements.

    I don't have the extra toolbars in mine, but I copied and pasted back this spaced format and Firefox was able to handle it well. I went into customize and moved a button, and when I left, Firefox has rewritten the preference set as a single line. Assuming that yours works fine, then you can get rid of the backup from step (4).

  • How to remove or hide the option to remove history, and how to remove Private Browsing entirely.

    How to remove or hide the delete history option, and how to remove Private Browsing entirely?

    See if this addon does what you want.

    https://addons.Mozilla.org/en-us/Firefox/addon/disable-private-browsing/?src=SS

  • Satellite A30 921: how to remove and replace the memory?

    Hi, can someone help me how to remove and replace the memory of satellite A30 921. and also, please give a detailed instruction.

    Thank you in advance.

    Hello

    There is not much to explain. On the low side in the Middle it is placed to cover memory (fixed with two screws). Remove the cover and you will see 2 slots there. I put t know how much memory you here but like Stefan says you can use max 2 GB of RAM (2 x 1024Mo PC2700 - PA3313U-1M1G). How to remove the memory modules, which you can see on http://www.hardwaresecrets.com/article/189/5

    Good bye

  • How first remove owner ID new ID enter plece tell me

    How first remove owner ID new ID enter plece tell me

    You not.  You will need to contact the original owner of the phone to the Apple ID, password and they should have know to delete it before they sold you the phone.

    You face the lock of activation and so there is nothing you can do.

    Contact the previous owner who sold you the phone.  If you can not, then congratulations to possess a useless brick!

  • How to remove applications from the startup folder

    How to remove applications from the startup folder

    Settings > users and groups > Login Items.

  • My iphone 6 s most is having hanged. They said he he's is not replaced. I was wondering how should I confirm that the phone I get is a brand new one not used one?

    My iphone 6 s most is having hanged. They said he he's is not replaced. I was wondering how should I confirm that the phone I get is a brand new one not used one?

    This will be an iPhone manufacturer refurbished in excellent condition 'as new '. You can not change anything on this subject because it's the usual Apple policy on replacement devices.

Maybe you are looking for

  • Pages to close unexpectedly

    Whenever I try to open the Pages, I have a box with 'unexpected closing Pages '.  Can anyone help me please with fixing this problem?

  • I am looking for an adblocker.

    I am looking for an adblocker.

  • Toshiba 32PU200EJ - HDMI port does not signal

    My toshiba TV series 32PU200EJ unable to connect to the HDMI port,last week, it was OK, I use it just for the PS3 game.When I try to connect the HDMI to PS3 or laptop, it says "unsupported SIGNAL". ANYONE can help with this problem? Thanks :)

  • New disk recovery is required for my Qosmio G20

    Dear Sirs, I lost my suitcase which included my recovery disc and cables...Can I have another pack of accessories delivered to me on my costs? I am facing serious questions about Qosmio G20 with Media Center 2005 and think I'm ready for a clean forma

  • HP Deskjet1510

    Just buy, set up and alignment impression was black and blue, but my printer is not printing color of any of the documents, all appreciated the advice