Can I do 2 text fields each other?

I do a form and I want the user to be able to enter the amount of money they want withheld each pay period in a text field OR the amount they held each year in a different text field.  I would like to set up the form so that they can only enter the dollar amount in one area or the other, but not both fields. No field is compulsory.

If this requires some sort of custom script, someone would have an example they could tell me where I could copy/paste? I'm not very versed in script.

Thanks for any help,

~ bexterinni

As event validation custom of each field, enter this code (say they are called 'Field1' and 'Field2'):

Field1 script:

If (event.value) this.getField("Field2").value = "";

Field2 script:

If (event.value) this.getField("Field1").value = "";

Tags: Acrobat

Similar Questions

  • Two text fields each other also have the values of the minimum and maximum fields?

    I have two text boxes that are mutually exclusive: one is a dollar amount per pay period, and the other is an annual amount in dollars. User can enter an amount in the box of one or the other (but not both), and I used the validation for this below script:

    Field1 script:

    If (event.value) this.getField("Field2").value = "";

    Field2 script:

    If (event.value) this.getField("Field1").value = "";

    Now, I also Inow the field limit with the minimum and maximum amounts for these same fields. But, because the range of field values is an option button other than the custom validation script, it seems that I can't do both because I can choose only one option button:

    Screen Shot 2015-11-02 at 1.25.44 PM.png

    Is there a way to keep my custom validation scripts so that they are mutually exclusive, but also to impose minimum and maximum amounts for these areas?

    You must validate the range using a script.

    It will look something like this:

    if (event.value) {
        if (event.value<10 || event.value>100) {
              app.alert("You must enter a value between 10 and 100.");
              event.rc = false;
        } else this.getField("Field2").value = "";
    }
    
  • How can we add a text field on the stage, but without the text label?

    How can we add a text field on stage, but without the left text label by default?  I want just the field.

    I thought about it.  Go to the page layout palette and change the options of caption for the text box.

  • How can I prevent the text fields and drop downs changed after the form has been signed using a digital certificate? Thank you.

    Hi all

    How can I prevent the text fields and drop downs changed after the form has been signed using a digital certificate? Thank you.

    There is also a checkbox on the dialog box 'Sign' to lock document after signing.

  • How can I make my text field automatically upper case?

    How can I make my text field in a form automatically uppercase?

    Use the following as custom hits JavaScript text field (select a Format type custom):

    Script from typo to text field

    Event.change = event.change.toUpperCase ();

  • How can I add a text field for the main menu?

    I have a project with a menu.  He has a title.  I wanted to add an additional track on the menu, what I had done in an earlier draft.  I would have thought he would have intuitively obvious, as highlighting the existing title I and do a copy and paste.  However, I learned that nothing is intuitive with Premiere elements 12.  Can someone tell me how to get a 2nd title on my main menu?  I have done it before, but apparently did not write it and I was faced with that I falsely assumed would take me 30 seconds to accomplish.  Thank you.

    Rick

    Do you really need a second title for the page in the main menu and the selection of scene or you page fixed for your Adobe title in more than one line?

    I wonder

    I wanted to add an additional track on the menu, what I had done in an earlier draft.

    Is it possible that as soon as you use a theme which came with 'subtitle', as the trip/Beach Resort, not all do.

    Workaround for the title with more than one line of text can backfire on you. But you can try. Excerpt from my first items 13 on this blog

    0019 first Elements 13 movie Menu title question: multiple lines of text


    A first elements 13/13.1 user reports that, if it creates a 3 lines of title text for the main menu of the fake big screen theme in the customization area of Movie Maker project, these 3 lines of text eventually "encoded" in the project of reopening after that that there had been closed.

    We have confirmed this report and extended it to include this problem appears for 13 of Menus other than the fake Widescreen cinema. This issue is not seen in first items 12/12.1 and earlier versions.

    BEFORE REOPENING THE CLOSE SAVE

    Figure 1. Main menu of Spring Flower home with 3 lines of text, as seen before the closure of the Reopen

    AFTER THE REOPENED NARROW SAVE


    Figure 2. Spring Flower main Menu title initially with 3 lines of text, as seen from the closure of the Reopen



    The only way found so far to get the final product to have 3 lines of title text for menus in the final product is to customize the theme to the movie Menu in the customization of the Menu movie of the project area, do not save, close the project at this time and can do the burn to.


    Many variables were examined to explain this behavior. So far, no answer for why.

    If you are determined to use a particular theme that comes with the title menu and subtitle, look at the text of the Palette layers layers in the editing menu .psd file (.psd Editor could be Photoshop CS or higher).

    Regarding

    on my project last year that was the menu that I liked with 2 text fields, I have also got rid of the "arrow" shortly before the text that was the menu key.  Anyone know how I do that?  I can't figure that out now.

    Could you be more specific. But, for now, consider... If you Play All text, you double-click to open the text of the amendment, the deleted text, click OK. Play All disappeared. Sometimes, in page and removal of text "main menu" scene selection to the navigation button... double click on the button to open the changes to the text, delete text, press ENTER, and then bar spacing, and click OK.

    Please let us know if everything above the target you wanted to know.

    Thank you.

    RTA

  • How can I add javascript text fields to Acrobat since Applescript pages please?

    I have a real need to add text fields to the pages of the document Acrobat of Applescript. I can't access the headers and footers of Applescript in Acrobat XI. I can set watermarks using the following script, but can't for the life of knitting me a way to add text fields. Advice please?

    Concerning

    the value TempAttachmentName to "(20140717121212Z).

    the value PreserveFileName to "This is a test."

    the value work around to fake

    say application "Adobe Acrobat Pro.

    Activate

    the value CountOfPages to County of pages

    Repeat with PageCounter of 1 to CountOfPages

    say application 'System events' to say process "AdobeAcrobat.

    try

    click on menu item "Page...". " of menu 1 to menu item " go to " to menu 1 to menu bar item "display" of the menu bar 1

    tell request current of delay 0.1

    hit PageCounter as text

    tell request current of delay 0.1

    frappe retour

    if not work around then

    my ADDHeaderFooter() TempAttachmentName PreserveFileName & "" & CountOfPages PageCounter( )

    end if

    end try

    end say

    end Repeat

    end say

    on ADDHeaderFooter() The_String1 The_String2, , currentPage( )

    say application "Adobe Acrobat Pro.

    Activate

    the value myDocument to document 1

    tell myDocument

    tell page currentPage

    the value CBOX to culture box

    the value point 2 of the cbox to (article 2 of the cbox) + 44

    the value point 4 of the cbox to (article 4 from the cbox)-44

    the value media box to CBOX

    the value culture box to CBOX

    the value theResult1 to my Add_WaterMarkText (The_String1, "IDAutomationHC39M", 12, 1, 1, 1, 0, 3, 10, 3, 0)

    script theResult1

    the value theResult2 to my Add_WaterMarkText (The_String2, 'Times', 16, 1, 1, 1, 0, 4, 10, -6, 0)

    script theResult2

    end say

    end say

    end say

    end ADDHeaderFooter

    on Add_WaterMarkText() cText cFont nFontSize LV don't, nTA nHA ANV nHV nVV nR( )

    the value Params to "cText: '" & cText "", "& return

    the value Params to Params & "cFont: '" & cFont "", "& return

    the value Params to Params & "nFontSize: '" & nFontSize & "", "& return

    if class of nS is integer then the value Params to Params & "start:" & (nS - 1) & "," & back

    if class of nE is integer then the value Params to Params & "nEnd:" & (not - 1) & "," & back

    -0 = left, 1 = Central, 2 = right

    if class of nHA is integer then the value Params to Params & "nHorizAlign:" & nHA & ', ' & return

    --3 = top, 4 = down

    if class of nVA is integer then the value Params to Params & "nVertAlign:" & nVA & ', ' & return

    -offset in points

    if class of nHV is integer then the value Params to Params & "nHorizValue:" & nHV & ', ' & return

    -offset in points

    if class of nVV is integer then the value Params to Params & "nVertValue:" & nVV & ', ' & return

    if class of nR is integer then the value Params to Params & "nRotation:" & "," & nR & return

    the value JavaScript to "this.addWatermarkFromText ({" & Params & "});

    return to javascript

    end Add_WaterMarkText

    As a developer, you need that document. It is part of the Acrobat SDK kit, which is free to download. You can't learn Acrobat programming with google!

  • How can I determine which text fields contain data?

    Although it is a sad testament to my programming skills, I'm little embarrassed because I'm only doing this sort of thing maybe once every two or three years.  I am using FormCalc (mainly b/c I'm still learning Javascript and this form had already been written in FormCalc).

    Here's the problem:

    I have three text fields (Textfield1, Textfield2, Textfield3).

    I created three variables (var1, var2, var3) and initialized to 0.

    To determine how many fields containing data, I used the if/then/else statements:

    If (Textfield1.rawValue == "") then

    var1 = 0

    on the other

    var1 = 1

    endif

    Textfield2 and Textfield3 have similar statements (respectively using var3 and var2 variables).

    To test the code, I have a message box returns the sum of var1 + var2 and var3.  With NOTHING entered into all fields of text, I expect him back a sum of 0, but it returns the sum of 3!  If I enter data in only one or two of the fields, yet once it returns a value of 3.

    I tried the initialization of the value of the Textfields (Textfield1.rawValue = ""), but I always get a value of 3.

    This is probably a simple programming error, but still, I'm not a developer.  Any help would be appreciated.

    I think that you may need to modify your code for: (replace the "with the null value). Change of FormCalc to Javascript

    If (Textfield1.rawValue == null) then

    var1 = 0

    on the other

    var1 = 1

    endif

  • How can I make my text field accepts only alphabets?

    It would really help that anyone here help me with a text field where I can enter only alphabets, nothing else. I'm using Acrobat 9 Pro.

    Here is a function at the level of the document that can be called from the event of typing in a text field that will limit the entry of characters A - Z and a - z:

    // Document-level function
    function alphaOnlyKS() {
    
        // Get all that is currently in the field
        var val = AFMergeChange(event);
    
        // Reject entry if anything but digits
        event.rc = AFExactMatch(/[A-z]*/, val);
    }
    

    Call it like that since the event in the sequence of keys:

    // Custom Keystroke script for text field
    alphaOnlyKS();
    

    If you get stuck or you need a wider range of characters, post again.

  • Can I have users interact w / each other like this...?

    Is it possible to add a page of question/answer type in muse like this one:


    http://www.Trekaroo.com/talk

    I am creating a site of children events and I would like to find a way for users to interact with each other (aside from a few comments at the bottom of a page)

    Is something like this Muse?

    This has nothing to do with the Muse. You need a widget of a respective service provider or create your own dynamic page / forum.

    Mylenium

  • How can I set a text field to convert all text entered in uppercase when filled?

    I want to have any text you entered filled in specific text fields to automatically convert uppercase. I am working in LiveCycle Designer ES2.

    I don't know how to put the code to make it work. Cannot make it work.

  • How can I count only text fields that have been used?

    Hello

    I use Livecycle Designer to a dynamic form.  I have a section of the form that contains the field for the user to enter the goals, and then note the purpose.  I want to count only the text fields with entries and have the total number of rates, divided by the number of entries in text field.

    Line 1, column 1 - goal is to collect 5 apples.   Line 1, column 2 - the given rate is 5

    Row 2, column 1 - goal is to collect 5 pears.  Line 1, column 2 - the given rate is 5

    Two goals for a total power of 10-10 divided by 2 = 5

    Is it possible to count only the fields that are populated?

    Also, is it possible to create an error message if the user scored 5 goals but rated only 4 of them?

    Please send me the form to

    [email protected]. I'll get it repaired for you and send it back and then you'll have the code in the form of sample for later reference.

  • How can I replace one chart with each other?

    Know it would sound really stupid.  .  BUT:

    I have a simple page of mailing labels Avery to print. He has 30 top with a graphic [jpeg] labels in each label. I want to replace the graphics of origin by another.

    The original icon is located on a layer [all 30 graphics]

    I imported the new graphics on another layer on the plateau of dough. It is the right size and does not need resizing.

    How can I replace all 30 graphics at the same time with the new graphics imported from the map of the dough?

    I did once before and don't remember how to do it.

    Tried search for it / replace it, but can't get it to 'find' the chart. There the text options but no graphics find capabilities. And may not know how to use the selection 'object '. Or there is something that I'm NOT just doing! ?? !!

    Any help will be MOST appreciated. I'm on a PC [InDesign CS3]

    Ellen

    Hi Ellen,.

    We've all been there, so not to worry.

    I think it may be a limitation of CS3, if I threw my mind back, you can't do this exercise with a single click. With CS5 and CS6, multiple instances of the same file are grouped in the links Panel to allow everyone to be updated with a single click.

    For CS3, once you have replaced an image, you will find may be easier and faster to select the new image with the direct Selection (white arrow in the tools Panel) tool, copy the image. Then switch to the selection tool (black arrow in the tools Panel) select one of the other boxes with the old image, right click (or control click on) and select Paste inside. Repeat this step for each of the remaining boxes which need to update. It would be perhaps faster than using the links Panel in these circumstances.

    Paul

  • How can I restrict a text field in a single alphanumeric character?

    I have a series of text boxes when a user enters a series of characters.

    How can I limit each field so that it accepts a single alphanumeric character?

    Steve

    Then the tab of the field properties dialog box Format, select a format special cyategory > arbitrary mask and enter the field that appears beneath a single capital "O". Optionally, set the limit of characters for 1 on the Options tab, so that the user does not receive the error message when you try to type more characters.

  • Can you create a text field entered by the user that the content of the flow in a subform?

    I'm working on a project to convert into a document library of more than 600 forms from Word to PDF, most of the time it's simple and binding the fields to the database schema and use subforms works very well - however, there are some cases where there is a combination of input fields by the user mixed with fields of database and in some cases , the fields in the end user are all there, but the amount of content can vary from 250 characters to thousands.  The project manager wants a PDF that allows users to enter any amount of text they should and have the function of shaping the way it is as if all the fields have been populated by the database - I don't know of a way to make that work only if the content is first registered in the schema (or implement CM and have all users working in LiveCycle, but the basic data use PDF, take her is not an option right now).

    If anyone has any ideas how to operate the these things I would be very happy to hear about.

    Thank you very much

    R

    Hello

    If you can post your form in the post, I can have a look and give my comments.

    I created a sample file for your reference...

    (1) Flowed is set to the content property for Page1.

    (2) each text box is placed inside a subform that is also a property content value Flowed.

    (3) in the properties of the form, as the default tab, set the format of PDF rendering dynamic XML form.

    (4) in the properties of the form, on the overview tab, specify the Type of Preview as "Interactive form" and preview XML Adobe as a 'dynamic XML form' form. (this step is to preview the PDF file in the Designer).

    (5) to save the form as dynamic XML form. (File-> Menu save under).

    I hope this helps.

    If you have any questions, please post your form...

    Thank you

    Srini

    Please find the example file the slot location

    https://Acrobat.com/#d=qQohvZGsJrky-sTdPTJbzA

Maybe you are looking for

  • Airport Extreme - static IP configuration question

    Question: AT & T has us on a range of public static IP address xx.xx.xxx.33 - 38 (six addresses). I already put in place with the gateway, subnet. But I need the Airport Extreme to provide more than just 6 addresses to support all of our devices. Is

  • I do not see my bookmarks/history/etc.

    I changed my options to not show the google search bar, the buttons that say "file, history, etc.. (things usually find you at the top of the window under the title of the window) How to cancel it?

  • improve slow system performance

    On the right hand corner, a message appears saying my CPU is at 100%, my computer very slow.   How can I fix it?

  • I accidentally deleted all my files in my mirosoft outlook where I can get them back

    help I don't know what I did, but all records I made in the email on the side are missing Noah and that has been a lot and I need to get them back where I can get them please write me * address email is removed from the privacy *.

  • cannot complete a full backup drive? Why!

    I TRIED DISABELING RETROVIRAL AND CLEAN BOOT AND STILL NO LUCK. IM RUNNING WINDOWS 7 EMACHINE HIS 90 DAYS ONLY OLD. THE MOST I WAS ABL TO BACKUP IS 35-45% AND THEN NOTHING NO SE GOING ON FOR HOURS. THIS CAN'T BE NORMAL... Help, please!Thank you...