Field of text visible when filling in another text box

When the user will fill field Text1, Text2 will be visible or active. Is this possible?

Would you help me?

If you want to become hidden text1 text2 is empty and be visible otherwise, you can use a validation script customized to the field Text1, something like this:

// Custom Validate script for text1

// Control the visibility of the other field
getField("text2").display = event.value ? display.visible : display.hidden;

You can increase this to reset the Text2 field when it is hidden.

In the future, this type of question is better posted in the Acrobat Scripting forum.

Tags: Acrobat

Similar Questions

  • Download the news of a drop-down list for a field of text box

    Its that simple! That's all I need to know! The code to add to the information in a drop-down list (_cb) to a text field. I need to know wear put on the script IE in the action on the _cb layer. Your all!

    on the timeline that contains your combobox with instance name _cb that you can use:

  • Values in a dialog box application answering the multi-line text box field

    Hello

    When the user clicks on a radio button in my form a response request dialog box is displayed for the user to enter data.

    The value of the response dialog box is then added to a multiline text box.

    The script is on the mouse to the top of the radio button action and works fine the first time you click on the radio button.

    If the radio button is checked once again, the value of the response dialog box replaces the existing value in the multiline text box.

    What I need to do, is to have the response values show on a new line in the text box whenever you click on the option button.

    Can any advise please how to revise my script to work?

    Target for the field multiline text box

    var t = this.getField ("ActionAgenda");

    Response from dialog when the user clicks on the radio button

    var cResponse = app.response({)

    cQuestion: "enter your Action Agenda Item."

    ({CTitre: 'Action program'});

    Alert if you cancel

    If (cResponse == null) {}

    App.Alert ("Action point not will be not entered");

    Place the data in the dialog box in the target domain

    } else {}

    t.Valeur = cResponse;

    }

    Any help will be greatly appreciated.

    Thank you

    Change this line:
    t.Valeur = cResponse;

    To do this:
    t.Valeur += "\n" + cResponse;

  • Cannot type in any text box for a specific Web site

    Hello

    I have a site and I can't type anything whether in any textbox (search box, for example) when you use FireFox. I tried the site safe without the effect of loading Mode, I can not type anything.

    I've seen similar behavior, but it always seems to get it fixed by disabling modules while in my case is not.

    I checked out the site on Windows, Mac and Linux, in all, it's the same behavior if you are using FireFox. With all other browsers, the site is very good and I can type in these text boxes.

    Let me know if this has happened to someone else, I am trying to settle this problem because it's really annoying for readers.

    Thanks in advance!

    I see the same thing on this web page.

    It seems that some JavaScript on this page is not working properly and therefore does not select the input field or text box when you click it.


    I can achieve input field by pressing the Tab key until I get a slider, so you can use it as a workaround for now.

    You can contact the site and inform them that their site does not work in Firefox.

  • Conditional display in the text box based on the calculated value

    Hello

    I have radio buttons that each have a numerical value. For example = 1 A = 2 C = 0. In the example below, the total is equal to 5.
    examplescreen01.gif

    The sum is displayed at the bottom of the document and is passed to another text box:

    examplescreen02.gif

    Instead of '5' displayed in the text box on the right, it should display a "Control" Word like this:
    examplescreen03.gif

    The displayed word is based on the totals through this range:

    1-2 = 'absorbing '.

    3-4 = 'practitioner '.

    5 to 6 = "control".

    The script I used to pass the value from the left to the right text box in the chart above is:

    name of the field to text box;

    var cTextBox = 'Cabinet Talent strategy knowledge - total';

    get the value of the field with the name in cTextBox;

    var sTextBox = this.getField ("cTextBox") .value;

    Set the value of this field;

    Event.Value = sTextBox;

    That I need to add to this script to show one of the words, such as "control" above?

    I am a complete novice to scripting. I found the above script online and somehow got it to work.

    I thank very much for any help or pointers, you can provide.

    Best regards

    Chris

    Sorry, there were some errors in the code that I provided above. Try this:

    If (sTextBox > = 1 & sTextBox)<= 2)="">

    Event.Value = "absorbing";

    } ElseIf (sTextBox > = 3 & sTextBox)<= 4)="">

    Event.Value = "practitioner";

    } ElseIf (sTextBox > = 5 & sTextBox)<= 6)="">

    Event.Value = "master";

    } else {}

    Event.Value = "";

    }

    If it still does not respond, you can send me the file at [email protected] and I'll check...

  • DatePicker does not work when it overlaps another field element or text

    Pls help, I finally understand how to to install this datepicker and now it won't let me choose the dates when it overlaps another text field.

    You may need to use the tab key to move through the fields on the page, but it could be a large number of tab as the new fields in the pop-up calendar moved well be the end of the tab list. Also, is not a user-friendly solution.

    There is another routine of date picker that uses dialog object to display the calendar and this dialog window should appear on the fields.

    How can I add a date picker to my web form?

    Response to see Max Wyss and you should be able to communicate with him by e-mail.

  • Visible when printed text field

    Is it possible to show a text field only if a State of the checkbox is checked and make them disappear if it is not checked by the text field? This part, I know how to do.

    The trickiest part is I want the text box to be visible during printing, even if the box is not checked... Is this possible?

    When you assign visibility = "hidden";

    relevant value = "+ print";

  • NULL text field, how to fill in another text field

    I would like to be able to invite the user to fill one of two text fields, if for example they fill in A text field, then no guest would jump to the top, but if they don't fill in the text field then a prompt would leap upward by asking them to fill out the text field B.

    Thank you

    Hello

    One way would be to place a JavaScript in the output of TextFieldA event:

    if (this.rawValue === null) {
         xfa.host.messageBox("Please complete Text Field B", "Attention", 0, 0);
    }
    

    However this fires when the user leaves TextFieldA. You may need extra script if it is likely that the user is not yet in this text field.

    Niall

  • How do I change fields to be Transparent when you fill out the form?

    I have created a form to be completed by others.  Right now, in mode complete all fields are blue.  When I click on them to type, they turn white as I want to, but when I finished typing and go click on another field, it becomes blue but still has the text.  It really sucks because I already have lines in places where people with type.  How can I change all the fields to be transparent or white, so they don't show up?

    It is not an actual color of the field it's a highlight color for the application. You can disable it via editing - Preferences - forms.

  • When you use the "Fill &amp; sign PDF" feature, is there a way to stretch to resize the text box, to an area of the page... rather than through a long straight line...?

    When you use the "Fill & sign PDF" feature, is there a way to stretch to resize the text box on a specific area of the page... instead of the text box is in a long straight line...? I do not see there is an option or the ability to do so, just want to confirm.

    Improving the management of multiple line text fields is in our plans, but for now, you need to add manual carriage return (Enter).

    Thank you

    Josh

  • Text field aligned in another field of text using Muse 2014...

    My site has a text field containing an image + text legend that is pasted into another field and text aligned on the right at the beginning of a paragraph. Everything works great and it downloads and look as expected. However when I close Muse 2014 and later reopen this page, show this text box on the far left of the page in edit mode - but if I go to preview it always displayed correctly. Which makes it very difficult to change - and this technique to put a text inside a box was an Adobe recommended in a previous question and has worked well in the 'old' Muse.

    Here is the page in edit mode, and the text field with an image + text is difficult on toward the right.

    screenshot-1.jpg

    Here is the same page in the preview, which is how it is supposed to look like and what originally looked like the edit page:

    screenshot-2.jpg

    This looks like a bug to me? If you want that the Muse file please let me know how to get it for you.

    HI PV.

    Is the image + caption a group (CMD/CTRL + G) or you pasted the image in the caption text block?

    If the latter, using a group instead help?

    Thank you

    Abhishek

  • Copy the text of form field text box on another page

    Hi all

    I'm designing a document using Muse who, in a wizard-esque fashion, get the user to fill the fields of the form, and then the text entered in form fields is automatically filled fields of text on other pages so that a customized document can be printed.

    However, research, I made, I have not found anything I can use other than using PHP code style but I can't juxtapose that to bring the value of text to another page instead of an email.

    Any help would be greatly appreciated.

    Thank you, in advance.

    You need to add a custom to your form code to achieve this.

    These links will give you the correct answer:

    http://StackOverflow.com/questions/18474499/auto-populate-field-base-on-what-was-entered-i n - one other-field-simultaneously

    http://StackOverflow.com/questions/11660395/how-to-Autopopulate-an-HTML-form-and-submit-it - instantly

    http://icode4you.NET/website-forms-use-JavaScript-to-auto-fill-one-field-with-the-values-f rom-two-others-fields.

    If you use Adobe server for hosting your site, this document will allow:

    Customization of Web Forms

    Thank you

    Sanjit

  • JavaScript for text box fill trigger another text box fill

    All I'm looking for is when data is entered in a text box, another text box auto "00". I've searched the forums and can't seem to find what I'm looking for.  Thanks for any help.

    You can use something like it's custom validation of the first field script:

    If (event.value! = "" ") this.getField("Text_box_2").value ="00 ";

    Adjust the domain name if it is not the same as your file, of course.

  • How to make a visible field if the value in the three text boxes do not match?

    Hello Experts.

    I have a form with three text boxes.  I would like a warning box to display when recording warning the user that "these amounts do not match!  I would also like a textbox become visible when you save the document and remains visible in the layout until the amounts match.  I don't want to prevent the user to save the document, I just let them know that there are potential errors.

    I would use something like the following:

    If textbox1! textbox2 =! textbox3 =

    {textbox4.presence = "visible" ;}

    Also, have a pop-up message box during registration as follows:

    xfa.host.messageBox ("these amounts do not match!", "Title", 2);

    My question is how to write this, and what events should I use for this?

    Any help is greatly appreciated.

    Thank you

    Jerald

    Place the code in the event of a preSave any control below...

    The language is Java Script

    If (textbox1.rawValue! = textbox2.rawValue! = textbox3.rawValue) {}

    xfa.host.messageBox ("these amounts do not match!", "Title", 2);

    TextBox4.PRESENCE = "visible";

    }

    else {}

    TextBox4.PRESENCE = "invisible";

    }

    Also place the same code in the output of al lthe thre events (textbox1, textbox2, and textbox3) text fields...

    Thank you

    Srini

  • Text box disappears when another text box is placed too close, anyway to turn this off?

    When you use pages any image or text box 'disappears' or moves if an another image/text is placed too close however to Keynote when it isn't a problem. This function can be disabled?

    Select the two text boxes and tab organize, assign automatic voice against zero dressing. Now, these two items are more questions of mutual polarity, and the boxes don't repel each other. It is a parameter object, and not an application setting permanent.

Maybe you are looking for

  • Why do we say "Aliababa" on the Terminal?

    I was working with someone on TeamViewer and he says: "Hey, I didn't know you worked for Alibaba.com." I told her that I did not, and we went our activity. Well, a few days later I was doing something in the Terminal when I notice the word Aliababa a

  • Requires a Type not loadable

    Unfortunately, I can't share the code, but here's my situation. I have 2 dll VB.NET. The first is DLL refers to the second. Then in TestStand 2010 SP1, I have a step in the Action that calls a method in the first DLL that returns a type of the second

  • CD DVD will not play on Windows visit with IE8 browser

    I can not get CD or DVD to play on my windows vista with an IE8 browser. This problem seems to have developed after the duration of IE9 as IE8 back

  • Windows Server 2008 on DELL 2950 PE

    Hi guys,. As you can see I am new to this forum :) I started this thread because someone asked me to install W2K8 on a PE 2950. I prepared my Setup CD so and the question is now... Should I still RAID for this OS driver? Usually, I know that when you

  • Windows 7 starter sidebar widget currency converter

    Can I change the source of conversion? Your numbers are different to my Bank. Thank you Pingu70