Check box to change the value of the field and reveal hidden text

Hello

I need to change a value in a field when you press a checkbox

the default value can be $ 10 in 'formfield1 '.

But when the checbox is checked, the value of 'formfield1' must spend $ 8

I also need a reval text function in "textfield2' of the text hidden to visible.

Is it still possible to combine in a box?

I found a code on the forum and changed it, but it does not work as expected, it affects the field, it shouldn't and it behaves a bit funny, here is the code to calculate.

I also tried to change the value of Off to On, but who has not reversed the procedure than I hoped.

Well its a start, maybe someone can understand a give me help on the way?

________________________________

custom for the discount calculation

var nDiscount = 2;

name of the Sub total field

var cSubTotal = "formfield1";

name of the non-Discount checkbox

var cbNonDiscount = "CheckBox1";

default value for the non-Discount

Event.Value = 10;

see if the purchase is with discount or not non-Discount

If (this.getField ("cbNonDiscount") .value == 'Off') {}

Event.Value = this.getField ("cSubTotal") .value - nDiscount;

}

put an end to a custom calculation

Ah, if you want the calculation to take place when the box is checked, use this:

If (this.getField (cbNonDiscount) .value! = "Off") {}

Instead:

If (this.getField ("cbNonDiscount") .value == 'Off') {}

Tags: Acrobat

Similar Questions

  • check box for fills the fields


    Hello

    I have a column of text fields named date1, date2, date3... all the way to date10.  I would like to include a check box if the user enters a date in the field "date1" then checks the checkbox, it could fill the remaining fields with this value.  Someone would have the script for this.

    Thank you very much.

    You can use this code as the script of the mouse upward to the checkbox:

    if (event.target.value!="Off") {
        var v = this.getField("date1").valueAsString;
        for (var i=2; i<=10; i++) {
            this.getField("date"+i).value = v;
        }
    }
    
  • Label, change the field and the button on the problem of a line

    Hi all

    I was pulling my hair out on this and could really do with some tips. I'm putting a label, a text field and a button of bitmapfield on the same line, but for the life of me I can't work that way round. If I put the front button to the text box field, it works.

            // TEST 3 CONTROLS ON A ROW
    
            final Bitmap imgCalc = Bitmap.getBitmapResource("bgCalc.png");
    
            LabelField lb = new LabelField("0.00");
            EditField ef = new EditField();
            BitmapField  bf = new BitmapField(imgCalc, BitmapField.FOCUSABLE){
                protected void paint(Graphics g) {
                    // Draw text on button image
                    super.paint(g);
                    g.setColor(Color.WHITE);
                    int x = (40 - Font.getDefault().getAdvance("Go"))/2;
                    int y = (imgCalc.getHeight() - Font.getDefault().getHeight())/2;
                    g.drawText("Go", x, y);
                }
    
                public int getPreferredWidth(){
                    return 40;
                }
            };
    
            HorizontalFieldManager row0 = new HorizontalFieldManager();
    
            row0.add(lb);
            row0.add(ef);
            row0.add(bf);
    

    Excuse the code, but it's test code to make it work. As mentioned above, if I add that Label, Edit, Bitmap controls it only shows the label field and edit. If I swap the text field and the field bitmap around so that the text field is the last one, it works.

    What I am doing wrong?

    Thanks for looking

    Paul

    EditField always takes all of the width available to it.

    You must override its layout (width, height) and pass below the width values to leave space for the BitmapField. Something like

    protected void layout(int width, int height)
        {
            super.layout(width * 60 / 100, height);
            // sets width of this field to 60% of the total available width
        }
    

    would do.

  • Format text in bold in the field and to put text on a new line - help!

    I'm lost.  I found the rich text formatting item click.  But after that, I don't know what to do next.  I want "BOLD" of some characters and I want some answers on separate lines, as I asked earlier.  As for spans and controls - I have no programming experience.  I just used that George gave to me.  It worked fine, but I just need that bold text in one part of the text to print field and I need some items to be on separate lines.  But I don't know where to put the information you say on the spans and I do not know the use of bold text or script start text on a new line.  I'm into the calculation of the area of text box?  Sorry to be so lame, but I'm no good in programming skills.  Help!

    For example, here's the script.  In aISOreq {[0], if I want to "BOLD" "Check #1 patter: ', where should I put the span and what script should I use to say to"BOLD"it.}   Could you give me an example, please.  Also, if I want to put 'a. drugs weekend on one line?' and ' b. activities the weekend? Types of activities? Supervision? With whom? "on the next line, where do I put the span and what script should I use to put on separate lines?  Could you give me an example for this too, please.  I have used literally just scripts George gave me and they work great - but it's all I know how to do.  Thank you.

    (function () {}

    Set up a table to hold the various paragraphs of the text

    var aISOfreq = [];

    Fill the table with text of paragraph

    aISOfreq [0] = ' model #1: reducing several isolations on Mon & Tue to Fri. "  Model # 1 verification: a. drug weekend?  b. activities weekend? Types of activities? Supervision? With whom? « ;

    aISOfreq [1] = ' model #2: isolation of multiple some days. "  Note the days.  The #2 model checking: a. Different plan these days there? Another adult? Block-schedule? Need to w/same adult consistent schedule.  b. adaptations/changes occur? More group c. individual training? Does the student need warm-up exercises or a specific job?  Student needs a specific lesson routine? c. activities of the previous night?  Need of calming activities before bedtime?  Need to bed earlier? Need additional evening structure? « ;

    aISOfreq [2] = ' model #3: Isolations are grouped intermittently. "  Interval of note.  The #3 model checking: a. cyclical behaviour?  Review the assessment.  Need reference mental health intervention of medication or treatment?  b. drugs: supervision? Self medication? Taking constantly? Need medication collate doctor?  Share concerns with the doctor?  c. history of the abuse of legal or illegal drugs?  Cyclic model to share with the doctor.  On probation?  Share concerns with PO? « ;

    aISOfreq [3] = "models #1 & #2: multiple Isolations on Mondays & Tuesdays to Friday AND several Isolations some days."  Note the days.  Model #1 verification: a. drug weekend?  b. activities weekend? Types of activities? Supervision? With whom?  The #2 model checking: a. Different schedule some days? Another adult? Block-schedule? Have a consistent schedule with same adult.  b. adaptations/changes that occur? More group c. individual training? Need of specific work or warm-up exercises?  Need a specific lesson routine?  c. activities of the previous night? Need of calming activities before bedtime? Need to bed earlier? Additional needs night structure? ";

    aISOfreq [4] = "models #1 & #3: multiple Isolations on Mondays & Tuesdays decreasing Friday AND insulation together intermittently."  Note intervals.  Model #1 verification: a. drug weekend?  b. activities weekend? Types of activities?  Supervision? With whom?   The #3 model checking: a. cyclical behaviour?  Review the assessment.  Need reference mental health intervention of medication or treatment?  b. supervision of drugs? Self medication? Taking constantly? Must check with the doctor med?  Share concerns with the doctor?  c. history of the abuse of legal or illegal drugs?  Cyclic model to share with the doctor.  On probation?  Part of the concerns of w/PO? »

    aISOfreq [5] = ' patterns #2 and #3: several isolates on a day specific AND insulation together intermittently. "  Note day & intervals.  The #2 model checking: a. different planning? Another adult? Block-schedule? Need to w/same adult consistent schedule.  b. adaptations/changes that occur? More group c. individual training? Need exercises to warm-up or a specific job?  Need a specific lesson routine? c. activities of the previous night?  Need of calming activities before bedtime?  Need to bed earlier? Additional needs night structure?  The #3 model checking: a. cyclical behaviour? Review the assessment.  Need reference mental health intervention of medication or treatment?  b. supervision of drugs? Self medication? Taking constantly? Need medication collate doctor?  Share concerns with the doctor?  c. history of the abuse of legal or illegal drugs?  Cyclic model to share with the doctor.  On probation?  Share concern w/PO? « ;

    aISOfreq [6] = ' bosses, #1, #2 and #3: several isolations on Mondays & Tuesdays decreasing through Friday, several isolates some days AND insulation together intermittently. "  Note the days and intervals.  Model #1 verification: a. drug weekend?  b. activities weekend? Types of activities? Supervision? With whom?   The #2 model checking: a. different planning? Adult?  Block-schedule?  Need to w/same adult consistent schedule.  b. adaptations/changes that occur? More group c. individual training? Need exercises to warm-up or a specific job?  Need a specific lesson routine? c. activities of the previous night?  Need of calming activities before bedtime?  Need to bed earlier? Additional needs night structure?  The #3 model checking: a. cyclical behaviour? Review the assessment.  Need reference mental health intervention of medication or treatment?  b. supervision of drugs? Self medication? Taking constantly? Need medication collate doctor?  Share concerns with the doctor?  h. history of the abuse of legal or illegal drugs?  Cyclic model to share with the doctor.  On probation?  Share concern w/PO? « ;

    aISOfreq [7] = "without cause."

    Get the selected item, which is the value of exports of the selected drop-down list box item

    var point = getField("ISO_Frequency_Pattern").value;

    Display the text corresponding to the selected item in the text field

    Event.Value is aISOfreq [point];.

    })();

    Look at the richValue of the Field object property reference. It contains a few examples of how it should be done. Read also the Span object reference.

  • Your 'change the fonts and colors... '. "Statement said" click (3 horizontal bars) and chose 'options' (in a box)... can not do without this box appears. "

    Due to vision problems, a long time ago I changed the background color for the yellow poster like stark not white. The old system of color choice was fairly easy to change, and one time in a whike I let the colors of the site work like some things were hidden using my colors.

    Several months ago an update of Firefox threw all access learned and now I can not for the life of understand me. I'm more able to perform any color choice. By clicking on the MACHINE shows content but everything is yellow and there is nothing to change.

    An update?

    19john28 said

    Adding a patch complex to solve a simple function seems to be gilding the lily. Firefox you address the simple check box to change the colors.

    Hi John, here on the support forum, we work with the version of Firefox that we know today. You can submit proposals for amendment of functionality for future versions of Firefox here:

    https://input.Mozilla.org/feedback

    It took several years for Firefox to get full support for users of high contrast themes, so I do not expect this choice to be removed. However, if you think it might be facilitated so that everyone can understand, please do not hesitate to use the entry site to suggest another way to implement the selection.

  • Clear the check box according to the value of column DB

    Hello
    My requirement is to disable the check box according to the value of a column DB. Say for example my report displays the following. Check box, the name of the EMP, Dept. If the Department is the checkbox should be disabled and user should not be able to select the check box.
    Ask your help for a solution.
    Thank you
    Prasanth

    You must use the parameter p_attributes of the apex_item.checkbox API to make the boxes off (readonly do not work with the checkboxes)

    SELECT ..
    CASE WHEN  THEN APEX_ITEM.CHECKBOX(1,)
                         ELSE APEX_ITEM.CHECKBOX(1,,'disabled="disabled"')
              END 
      ..
    
  • My email has been hacked and used to send Spam. I have to perform a virus check, or simply change the password?

    My email has been hacked and used to send Spam. I have to perform a virus check, or simply change the password?

    Do not install or run an anti virus app.

    How do you know that your email has been "hacked"? It is a common practice for spammers to forge an envoy from the e-mail address. It may be that your email address has been misused. There's nothing to do if this is the case for you. The spammer will soon pass and usurp another email address.

    It's a good idea to immediately change your password by email if someone would actually managed to access your e-mail account.

  • Data received, press CHECK BOX to print the last page

    Aloha

    I have an old HP Laser 4200 Jet that has been the back BONE of my business! I worked perfectly except for the last two days!

    He give me a "data received press CHECK BOX to print the last page" and print a portion of the last page with or without printing of the

    previous pages! It just started happening! Over the other day, I have my children of girlfriends! Is it possible that they pressed a button?

    I reset, but this problem persists! Help!

    SLY

    Hi Sly,

    Welcome to the Customer Support Forums!  I'll lock this accidental double post and lead everyone on this subject.  This will keep all your answers in one easy to find place.

    If you have any questions or concerns about this, feel free to contact me by private Message.  Thank you!

    Message edited by SandyD on 06/06/2009 17:07
  • How can I change the minimum and maximum values on a map of metrics.

    Sorry, I'm new to vCOPs and it drives me crazy.  I searched the community and Google, but found nothing so thought I'd post here.  I am interested in a VM in vCOPs and select operations - tab the metric.  I add the CPU usage | Use (%) to the table.  By default, the y-axis is has a low of-40 and a maximum of 60.  Well, my % of the CPU usage never goes below 0% right?  It's hard to look at this figure.  Also, I like to see usage to 100% as a maximum rather than somewhere just above where is the top of the chart.  Looks like there should be an easy way to change the minimum and maximum y, but I can't seem to find it.  Can someone show me what I'm missing here?

    Thank you

    Bob

    He does. There is no way to force it to a specific axis. For vC Ops, there is no concept of a "desired" min and max for Y axis in respect to the display by the metric system settings type. All the data is dynamic and can be any value graphically speaking.

  • I want to change the size and color of the text in the call boxes and text boxes. How can I do this? Jack

    I want to change the size and color of the text in the call boxes and text boxes. How can I do this? Jack

    Highlite the text inside the text box and press Ctrl + E.

  • Need to change the field Office in the list of values

    Hi guys,.

    I need to change the field Office in LOV where form of people, customer actually requires some preset values in this area, through customization is possible? or not?


    Kind regards


    Ssali

    As I understand you cannot change a field of LOV using the Persolization form. Yes, you can use the de FACTO forces for the same reqirrment.

    Thank you

  • Until I changed the NLS_COMP and NLS_SORT values

    Using Oracle 10 g on Windows Server 2003.

    To change the NLS_COMP and NLS_SORT values for insensitive comparison of emphasis in requests (ie: 'a' or 'a' should be the same)

    We intend to do:
    ALTER SESSION SET NLS_COMP = ANSI;
    ALTER SESSION SET NLS_SORT = GENERIC_BASELETTE

    So, we hope he allow us to query as:

    Select * from table_a where text like "Dad %.

    Results:
    Dad
    Dad

    But before you make these changes, I would like to know what are the current settings of the NLS_COMP and NLS_SORT. How can I find them? I read on NLS_SESSION_PARAMETERS, but I think it's things Oracle 11 g.

    Once I changed NLS_COMP and NLS_SORT throgu ALTER SESSION, should I restart the service for the instance, so the changes will be permanent?
    Thank you

    Where did they are defined by default?

    Yes, or in pfile equivalent functional or spfile.

  • Satellite Pro 6100 - how to change the date and time in the BIOS

    Hello

    I received a satellite pro 6100 that had not been used for some time. Windows does not work then he reinstalled with the good drive.

    When I try and windows 'enable', I get the error 32777 and the laptop is unable to connect with the activation servers that a google leads to believe me that the date and time are incorrect in the bios.

    I know that Press esc to access the bios but there is no option to change the date and time in there. I put the date / the correct time in windows, but this does not seem to synchronize with the bios. I've updated to the latest version of the bios, but this is not enough.

    How can I change or update the time in the bios?

    Thank you

    Hello

    I doubt this time and date setting BIOS does affect Windows activation time Windows doesn t affect it in my opinion. There must be another reason for this problem.
    You can activate Windows by phone?

    Normally the date and time in the BIOS can change you if you mark the date or time, and then press on + or - to change this. Sometimes you have to press PageDown/to the top according to the model of BIOS or laptop.
    Usually in the configuration of the BIOS you will find a brief info how changing the values.

    Check this box!

  • Windows 7 automatically change the time and date.

    Original title:

    Time changes

    In my HP Pavilion dv6t-3200 suddenly my Win 7 64 bit seems to change the date automatically and when I set to the right time it running an hour and repeat the time I re installed the OS and checked. The problem persists and I also changed the battery and checked them was no change please help me... to solve the problem :-(

    Hello
    1. You have your timezone set correctly? Is - this tick on "automatically adjust clock for daylight saving time?
    2. You did changes to the computer before the show?
    3. Do you have any third-party clock on your computer application?
    We will synchronize the clock of your computer with a time server Internet and check if it works. This means that your computer's clock is updated to match the clock on the time server, which can help ensure that your computer's clock is accurate.

    a. open the Date and time by clicking the Start button, click on the Control Panel, clicking clock, language, and region, and then clicking the Date and time.

    b. click the time tab Internet and then click on change settings. If you are prompted for an administrator password or a confirmation, type the password or provide confirmation.

    c. Select the check box next to synchronize with a time server Internet, select a time server, and then click OK.

    Set the clock

    http://Windows.Microsoft.com/en-us/Windows7/set-the-clock

  • EasySign: what I can or cannot change the fields to fill?

    Is it just me, or is Acrobat EchoSign a hostile user to the garbage piece? I use reader 10.1.3. This is a form that I would complete and perhaps 'sign' with a TIFF of my signature, but first I have to type in some areas. Arrived at this point took me 20 minutes this morning:

    Acrobat EasySign.jpg

    (Sorry for the fur JPEG;) Forums Adobe informed me passively after that I tried to save three no-anti-aliasing 'content types' that he would only accept JPEG format.)

    If you examine the name under the section 'INFO' field, you will see three blue spots reflecting three multiple selections no region of text boxes in the list to the right. These objects are the result of my patiently left click the i-beam on my name in order to change the text that I entered in each field. Whenever I did, I would like to briefly see a blip appear under the i-beam, but he would not let me change my text. The blip, of course, was a text box of length zero being created. I persisted because at some point given, I swear I saw an arrow icon and it let me do a selection in blue on a parcel of my text, but then for some reason any when I typed nothing happened, then the apparition disappeared and I couldn't repeat it. And it is only after a few minutes, when I started to play with a right click on a text field, I discovered the "list of comments" so needless of me in frustration.

    There are now dozens of these mini boxes everywhere in the sheet (just look at how the "list of comments" has 86 entries instead of the 12 that actually contain text). But it means I can't change something when I finished a text, isn't it? If so, why not? Why is he not clear for me, a sophisticated user? Why the bizarre and unpredictable behavior? Or I'm a sort of silly, not having found the correct incantation? Maybe an Adobe firewing priestly programmers or myriads now will enlighten us all, tacitly suggesting that it's just my stupidity, because they knew the blessed Secret their first time.

    I have fairly exhaustive sought a solution to this and have so far found nothing, but maybe it's because I've budgeted only 45 minutes for this potential simple task. Am I'll have to check out this file in Illustrator, or print it out and post it?

    Twenty years ago, I was probably the first or second person outside mountain view to show the alpha of the carousel. Since that time - and despite having occupied hope repeatedly - I still can't easily fill a document online without heartache. Why can't I edit a field? What I have to do when I want to edit a multi-line field? My workaround over the years have range from every possible thing you can imagine, the scan in Photoshop or Illustrator, Quark or InDesign; in the fields of the blind and double-exposures on a printer laser. the glue; even to hack the fields the PostScript with setfonts and the movetos shows.

    I spent 40 years in the graphic arts; half of them I've struggled with Acrobat, on some products work quite complex with the features of questionable when delivery shoehorned in PDF format. When it comes to simple single-page monochrome form letter/A4 - the portable document more abundant on earth - we are now in Acrobat v10 and all I want to do is easily a form, sign and return by email and I still can't.

    Why is life so much harder now than when I could run that through a typewriter, Adobe? What you really do about it for billions? How much more precious moments of our lives that you're going to waste?

    (P.S. What difference is almost a day: hours after this - and just before submitting this article - I myself have discovered the cast with a few minutes more far experiments most already spent. Now, I can recreate the arrow and change the field. It's really not hard, but it's far from clear is the furthest thing of the good technique of the user interface. However, I know now the blessed Secret, or at least a part of it. But it does not change my position above. You can guess why, O Adobe priesthood of unbearable preachy? If it takes a programmer experienced hours to learn the combination, what makes you think to Grandma and Grandpa never go figure?)

    I have to say that a large part of the problem is due to the agency providing the form. This would have worked much better if they had taken the time to add real interactive form fields so that you wouldn't have to worry about the typewriter tool. It's actually good that Adobe provides that as an option of last resort for PDF files that look like forms. It of a little silly to provide a PDF of a form and makes it not to fill, especially since it's possible since Acrobat/Reader 3. This particular form would be easy to implement with fields.

    Regarding the file TIFF is not not qualify, it is worth looking at in more. Consider filing a bug report.

Maybe you are looking for

  • Update IOS 9.3 is available for the 5 c?

    I received a message from "available software update" on my iPhone. Tried to install but kept getting the message "unable to verify the update. Phone is no longer connected to the internet. "It has been connected to the internet. This community (than

  • How can I update to 10.11.3?

    I am currently running 10.11.2, when I go to the App Store, the only one available update is 10.11.4 beta 1. I don't want a beta version on this machine. I have other machines where I run the beta version.

  • which max ios for ipad 2?

    Hello What is the maximum ios version to install an iPad 2? Thanks for help.

  • I'm trying to print on pré-commandées tax forms.

    I have ordered tax forms 1099 for my business and can't understand how print on my Canon MX880.  I use Quickbooks which is no help, and I've finally lined up all but how do enough dark through the 5 sheets of carbon copy to the printer?

  • Do not open the image files burned on a CD

    How is it I carnt open my image I burned on a cd How is it I can't open image files I had to burn it to a cd that I had to get my deleted computer, it says that it cannot open the file, he needs a program to open it with I can't use the web search to