Check that only one box to advance to the text field

I work in Acrobat Pro ms, I created a form and I have the following problem. The application form concerning the rental income, either monthly or annual (the format is less).

What I want to happen, is if possible, if the user clicks on the checkbox monthly (monthly) the cursor goes to the 2 text and the user has entered the monthly amount.

If the user clicks on the annual check (per year), the cursor goes to Text1, the user enters the annual amount. This amount is automatically divided by 12 and shows in the Text2 text field; and the cursor goes in the following text, Text3 field.

Naturally, I don't want the user to click on the two boxes, but I don't know that the coding would take care of that, just do not know how come with the coding.

£ Rental income monthly

£ Annual if, Yes $ Text1 / Text2 $12

Thanks for the help.

You have 3 separate issues here:

-Exclusive box

-Jump to another field

-Calculate the monthly payment

-Exclusive box: you must give the two fields of the same name (say "times"), but the different export value, say "Monthly" and "annual".

-Jump to another field: As the MouseUp event of the 'Monthly' box enter this script:

this.getField("Text2").setFocus();

As the event MouseUp "Annual" box enter this script:

this.getField("Text1").setFocus();

etc.

-Calculation of the monthly payment: so you want this value to be entered by the user if the "Monthly" option is enabled, but being calculated if the "Annual" option is selected? It's a little complicated to implement in a single field, but you can try to use something like this as the "Text1": custom validation script

if (event.value && this.getField("RentalPeriod").value=="Yearly")
     this.getField("Text2").value = Number(event.value)/12;

Tags: Acrobat

Similar Questions

  • How to create a group/list of the variables in the box for display in the text field, in the format in annex

    I need to identify a series of variables single-response checkbox and display links selected (as a group) in a text field in an annex (comma, space) format. Last week, you provided a small script for a similar requirement by using the list box (multiple response) variables. This time, I need to know how to identify the variables of the box officially and, presumably, use a similar script to display the results in a comma, space format.

    You've been a great help.

    Thank you

    Here's the script for this situation. It assumes there are ten boxes named cb1, cb1, cb2,... cb10.

    // Custom Calculate script for text field
    (function () {
    
        // Initialize the string
        var v, s = "";
    
        // Loop through the check boxes to build up a string
        for (var i = 1; i < 11; i++) {
    
            // Get the value of the current check box
            v = getField("cb" + i).value;
    
            if (v !== "Off") {
                if (s) s += ", ";  // Add a comma and a space if needed
                s += v;  // Add the selected value
            }
        }
    
        // Set this field value to the string
        event.value = s;
    
    })();
    

    You will have to change the name of the field and start/end numbers to match your form.

  • Only one size of paper in the printer settings

    I have a printer OKI C5100 when I go into its properties it only shows the size of A4 paper.  I tried to do a custom papersize of 8.5 x 11, but it will not print to it and generates an error.   I use the same driver that uses another user on a similar computer and shows them all standard paper sizes.   I tried emailing help OKI, but got no response.

    Anyone have any ideas on how to get the printer to display all standard paper sizes.  Currently, I'll have to start Virtual XP and print it from there so he could work right.

    I downloaded the driver and installed. I can confirm that only one paper size appears in the list. As you said, there's a place to specify a size custom; However, I can neither confirm nor deny the generation of a printing error, when it is used because I don't actually have the connected printer.

    I checked the specifications of the printer that I could find online. The printer uses GDI (windows Graphics Device Interface) for printing. (These printers are sometimes called 'printers based on the host windows or "Windows printing system"). This makes it difficult to find a driver for a printer that is emulated. His language native printer is PCL or Postscript. On the other hand, the C5400 is 5th PCL compatible 5th HP PCL driver would be a good game - but not for the C5100.

    1-800-OKI-DATA
    (1-800-654-3282)

    E-mail address is removed from the privacy *.

    For the moment, I see no way I can be of further assistance. I'm sorry.

    Tom Ferguson

  • I get a dialog box with a copy of firefox is open and that only one copy of firefox can be opened simultaneously.

    I get a dialog box with the following: "a copy of firefox is open and that only one copy of firefox can be open at the same time."

    I don't see where firefox is open.

    How back in firefox so that I can read the links that are in my emails?

    Thank you.

    Sometimes when the FF closes, no not all stops correctly.
    On Windows, start the Task Manager (other systems may have
    different names and / or commands). Select the process.
    Look towards the bottom of the list for Firefox. Click right and then click end task.
    If this problem keeps coming, ask for help more.

  • I want to check that my windows operating system license on the website status, please informed how to check?

    Original title: according to the license

    The President complied,

    I want to check that my windows operating system license on the website status, please informed how to check?

    I suggest that you run the Microsoft Genuine Advantage diagnostic tool in normal mode (not safe mode) and copy and paste the results into a response for further analysis:

    http://go.Microsoft.com/fwlink/?LinkId=52012

    Run the tool and when it ends, click the copy button, open a text such as Word or Notepad file and select Edit, paste. You can paste directly into an answer here. Open a response, right click and select Paste.

  • I just updated my indesign to CC of CS5. One thing I notice which is annoying is some text boxes and images go live. For example, if you close a text box in CS5 you close the box you see reformat the text to set the new size. In the tex CC

    I just updated my indesign to CC of CS5. One thing I notice which is annoying is some text boxes and images go live. For example, if you close a text box in CS5 you close the box you see reformat the text to set the new size. In CC, the text does not reformat until you are done change the size of the box. It's the same for the images when resizing or rotation re. You don't know what you have until its finished. If you are a little guess instead of see what you're doing while. Is there a way to change this, or does anyone else have this problem. Maybe it's just what does CC. But I'm not a fan... Can anyone help?

    When using the image processing manages, click... for a while... then drag...

  • Check that this class has been marked with the annotation @Entity

    Hello


    We have a level of the shared lib App that makes all the APP associated with request for an application. And each application can use the lib goes to get the related JPA query to do.
    To define the scope of the Joint Parliamentary Assembly between App. We have created the EMF for each application.

    When an application to run and any associated APP action that it works fine, but when trying to run a second application we are seeing the following error message when you try to do a specific action JPA.


    the @Entity annotation.
    [2012 05-23 T 04: 08:16.839 - 07:00] [WC_Spaces] [ERROR] [] [oracle.webcenter.spaces] [tid: [ASSETS].] [ExecuteThread: '3' for the queue: "(self-adjusting) weblogic.kernel.Default"] [ecid: 5825b814-2931-4ad5-8dc3-3e18f66992b7-00000004,0] [APP: webcenterCustom] []
    java.lang.IllegalArgumentException: unknown entity bean class: oracle.webcenter.spaces.internal.repository.WcSpaceHeader class, please check that this class has been marked with the @Entity annotation.
    at org.eclipse.persistence.internal.jpa.EntityManagerImpl.find(EntityManagerImpl.java:648)
    at org.eclipse.persistence.internal.jpa.EntityManagerImpl.find(EntityManagerImpl.java:532)
    at oracle.webcenter.spaces.internal.repository.SpaceRepositoryUtils.refreshSpaceRows(SpaceRepositoryUtils.java:1791)


    Where WcSpaceHeader is an entity.

    To create emf by App, this is the code


    private static EntityManagerFactory getEntityManagerFactory()
    {
    String appName = Utility.getApplicationName ();
    EntityManagerFactory emf = sEntityMgrFactory.get (appName);

    if(EMF==null)
    {
    EMF = Persistence.createEntityManagerFactory ("SpacesReposPUnit");
    sEntityMgrFactory.put (appName, emf);
    SpacesConstants.LOGGER.info ("Caching" +)
    ("EMF for" + appName);
    }

    return of the emf;
    }



    My persistence.xml

    <? XML version = "1.0" encoding = "US-ASCII"? >
    < persistence xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance".
    xsi: schemaLocation = "http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd".
    version = "1.0" xmlns = "http://java.sun.com/xml/ns/persistence" >
    < name of persistence - unit = "SpacesReposPUnit" transaction-type = "RESOURCE_LOCAL" >
    <>provider
    org.eclipse.persistence.jpa.PersistenceProvider
    < / provider >
    oracle.webcenter.spaces.internal.repository.WcSpaceHeader < class > < / class >
    oracle.webcenter.spaces.internal.repository.WcSpaceUsrDetail < class > < / class >
    oracle.webcenter.framework.service.jpa.WcCommonXlationEntity < class > < / class >
    oracle.webcenter.spaces.internal.repository.WCNavigationActivity < class > < / class >
    Properties of <>
    < name = "eclipselink.session.customizer property"
    value="Oracle.WebCenter.spaces.internal.repository.SpacesEclipselinkSessionCustomizer"/ >
    < / properties >
    < / persistence - unit >
    < / persistence >



    Another problem I see in this is that. When I create an EMF EM, (which is different for different app) and do a query, I get a class cast Exception.


    [(self-adjusting)'] [ecid: 5825b814-2931-4ad5-8dc3-3e18f66992b7-00000004,0] [APP: webcenterCustom] []
    java.lang.IllegalArgumentException: unknown entity bean class: oracle.webcenter.spaces.internal.repository.WcSpaceHeader class, please check that this class has been marked with the @Entity annotation.
    at org.eclipse.persistence.internal.jpa.EntityManagerImpl.find(EntityManagerImpl.java:648)
    at org.eclipse.persistence.internal.jpa.EntityManagerImpl.find(EntityManagerImpl.java:532)

    It is a problem of class loader, somehow you have deployed the same classes in two places, have two versions of the classes.

    How, exactly made things, where are your domain classes?

    The questions is more likely that,
    Persistence.createEntityManagerFactory ("SpacesReposPUnit");
    always returns the same plant once it has been deployed.

    If you pass a map properties for createEntityManagerFactory and set the property "name eclipselink.session" a single value, then you should get a new plant.

  • CFIF to the boxes being inserted into the database field car_make.

    Hello, I need help on CFIF for the boxes being inserted into the database field car_make.

    At this point, several values is inserted in the car_make field. I would like to only have one value depending on what is checked in the box.

    Thank you

    Here's what I mean. I would like to know if it is is not clear.

    CFIF
    If Honda is checked then Honda value is inserted in the field car_Make

    If if Toyota is checked then Toyota value is inserted in the field car_Make


    If If Subaru is checked then Subaru value is inserted in the field car_Make


    You CAN, of course, but not without being fluent in javascript. Is there a particular reason you want to use checkboxes versus radio buttons?

    From an interface point of view, its generally not a good idea to change the behaviours expected of HTML form elements. If users see an option button, they assume generally that it will allow only 1 choice. If they are presented with a box, they could very easily be expected they could select more than 1.

  • "BOLD" that part of the text field populated by JavaScript?

    I use a drop-down box to populate a text field, as in This example. It works fine, but I can't not formatting output. I need "BOLD" only one part of the text. I don't know much about scripts, so I'm stuck. I tried to connect two strings together, with the method JavaScript for "BOLD" text on the second string, as follows:

    TextField1.rawValue = "Some plain text!\n" + "Some bold text!".bold();

    The two channels appear, but instead of the second being "BOLD", it displays only the HTML for "BOLD" tags, so, in my text field, I get this:

    Some plain text!
    <b>Some bold text!</b>

    The format of text field is set to rich text and data format is set to xhtml because users also have the ability to add their own responses to the field of text as well. However, I do not want to have select and "BOLD" text that is sent automatically to the text field in the drop-down list. So, it defeats the purpose to automate in the first place it if they have to go back and adjust it every time...

    Is there something that I am missing? Or another, better way to do this? Any help is greatly appreciated.

    Hello

    I wrote a blog entry on how to get Rich text recenly works correctly in PDF form fields. Take a look at it at http://livecyclekarma.wordpress.com/2009/05/20/richtext-tricks-for-textfield-in-designer/

    Kind regards

    Parth Pandya

    Blog: http://livecyclekarma.wordpress.com

  • I have created a form in Indesign. Is there a way to create the default text in a text field that displays the interactive pdf "insert text here" in the text field?

    I have created a form for the company, so that I work. It is a form that will be used in several offices and has buttons, drop downs and text fields. One of the text fields has a requirement that when the PDF file is opened, the text field has something written in there already, as an example (and one only) INSERT the TEXT HERE. I created the text field in Indesign and used the text tool to type in the area of the body-copy required. After that I have to export it as an interactive PDF, text in the text field disappeared.

    Drop-down lists give an option for a default choice, but I don't see a way to create default text in the Panel of buttons and forms for text fields. Is there a workaround or a hidden feature?

    Thank you!

    Set it in Acrobat.

  • Print everything that is typed in the text field without printing the text fields

    Hello

    I am trying to print a form once filled the text fields I want to print just what I typed in the field, not the text field and the color in the text field. I use CS3.

    Any help would be appreciated!

    Hello Teddy and wellcome to the Group!

    If you want to change the fonts or other things, then you will need to use the PrePrint method. What I usually do is select PrePrint in the 'Show' section in the Script Editor (if you did not go to the toolbar at the top, Windows and select Script Editor). After selecting PrePrint you can now either type the name of the subform and the field you want to change (or you can place the cursor in the script dialog box, hold down the CTRL key and select the field with the mouse) and enter in the JS to change font. It's something like TextField1.fillcolor = "255, 255, 255; (which changes the background in white fill). You can also replace fillcolor fonts or border to change the color of the police or the border. I put a link to an Adobe website that goes over the color JS below changes. You just need to add a method of pre-press for each field that you want to remove the necessary on highlighting. Then once the user hits a button print that you have on the form or use CTRL + P to print the form, it will remove any highlighting.

    Now on the text field does not itself feel that I do not know what you ask for. You ask for the legend does not print or not there is a box around the data entered. If you don't want to have a box surround the text field located in the section purpose of the field (see image below). You just need to select none, if you want to just text. If you want to change that with JS, I put another link below that has the code to change the color of the border in white and the user can't see it. If you do not want to print the legend, the only method is to remove the legend from the text box and replace it with a static text that can be hidden, but I guess that it isn't what you're talking about (correct me if I'm wrong however).

    http://partners.Adobe.com/public/developer/en/LiveCycle/Designer/PDFs/ChangingFieldAndSubf ormBGColors.pdf

    https://forums.Adobe.com/thread/1409617

  • HELP - lost the button "calculate" in the "text field properties"! I try to summarize the total for separate text fields in a summary box.

    Help, please!  I try to summarize the total for separate text fields in a summary box, but have lost the tab 'calculate' in the 'text field properties area.  Any help would be greatly appreciated!

    When in forms editing mode (Tools > prepare form), select: more > return to the Acrobat form

    In the future, check the box 'this document requires signatures' when you choose at the beginning: Tools > form prepare

    unless you plan to use the form with eSign Document Adobe cloud service.

  • I'd do the signature field read only until something is entered in the required fields.

    I'd do the signature field read only until something is entered in the required fields.

    Attached a sample file that has two text fields and field of signature, the signature field allows only when certain values are typed in two text fields.

    Steps to achieve this:

    (1) disable the signature field when the form is loaded

    (2) to activate when the two text fields values are not null

    Santosh-

  • List several boxes of selections in the text area

    Hey all, I got a very helpful response last time, but now I want to put several list boxes selections in a box.  * Line * Help!

    Here is a script to custom calculation, you can use for the text field. I guess it's multiline and you want each element of list on a separate line box:

    Custom calculation script

    (function () {}

    Get field values

    var v1 = getField("lb1").value;

    var v2 = getField("lb2").value;

    var v3 = getField("lb3").value;

    Initialize the array

    var a1 = [];

    Add the list box values in table

    A1 = a1.concat (v1);

    A1 = a1.concat (v2);

    A1 = a1.concat (v3);

    Convert the table to a string, separating the values with a carriage return

    and set the value of this field

    Event.Value = a1.join ("\r");

    })();

    I coded this for more clarity, so you can be able to do so more effectively. Any decent JavaScript reference will have more information on the methods of array concat and join.

  • Only one box to check, or box

    I'm sorry that I can't find this answer anywhere.

    If I want to ask a question in a form and provide two oppositie answers (Yes or no) using check boxes or option buttons, how exactly do? I saw several people referring to the "java" I have no idea where to put it or this that java is required. I need answers please? Obviously in this case I need only one of the boxes or boxes to choose from, I can't allow both to be selected.

    Your help is greatly appreciated

    Why use a checkbox?  Put the radio buttons on the form, you can set the style of the checkmark button and they will be mutually exclusive.

Maybe you are looking for