Radio buttons to display different predetermined text in a text box

Help please.

I have a form with different numbers of radio button in. some grouped into two options and other with 4 options.

I want to make is that, according to the radio button is selected, a predetermined response is then displayed in the text box that comes with it. IE radio button true insert text "true" in the field of text and once again "false" If false radio button is selected.

The main would be the same for option 4 option in my form buttons.

Any help in this regard will be appreciated.

Raffé.

Hi Raffé,

You can set the value of option buttons you want. Lets say you have set the values as 1,2,3,4.

In the event of click/change of option buttons, you can write the following script.

If (this.rawValue == 1)

{

TextField1.rawValue = "all you want";

}

on the other

{

TextField1.rawValue = "all you want";

}

Many options you can also use the switch case statement.

Thank you

Sidonie.

Tags: Adobe LiveCycle

Similar Questions

  • How to use radio buttons to display different text depending on the selected button?

    I am new to acrobatXi and have been implemented on-line to fill PDF Forms.

    I have 3 radio buttons in a group (Group 1) choice1, the lendemain2 and the 3 choices.

    I would like a text box to display the text "price" If you selected option 1, the 'price B' If you selected option 2 and the ' price C "If you selected option 3.

    I have no experience of java, so any help would be appreciated.

    Use this code in the custom text field calculation script:

    var v = this.getField("group1").valueAsString;
    if (v=="Off") event.value = "";
    else if (v=="choice1") event.value = "Price A";
    else if (v=="choice2") event.value = "Price B";
    else if (v=="choice3") event.value = "Price C";
    
  • radio button and display the text

    Hello
    I'm creating a page (index page and action) where the index page has a group of option buttons (4 of them). If one of the four radio button is selected then a text (article about 30 lines) is displayed in the action after a submitt button page or the next button. is this possible?



    If it is possible how and what is the code for it
    Thank you





    display paragraph come from?

    I don't know yet. It would be better if
    can I just save it on the same page where the option button is declared? then send it to the action page myactionpage.cfm

    This is the example so if one radio button (a combination of radio button, it appears in a page)
    What will be displayed for each combination there is a paragraph.

    for example, if a radio button bob and camping, then I'll show in the action (for ex) page "BOB had an exciting camping trip.
    "If bob and the rebound is selected then the message on myactionpage.cfm say in the text" bob bounce and home remained.

    is it possible.
    If so, how

    Here's my example:



    My sample Page


    http://www.myactionpage.com/ "method ="POST">"


    Bob

    Ken

    Carol
  • 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...

  • text/button/display of the radio buttons in a different page depending on the radio button

    Hello
    I have this project wehre I need to display a text message about ten lines each based on the choice of a selection of button radio, then siplay to another page (screen page).
    is it possible donation
    and how?
    This is my code so far.


    In my index.cfm page
    I have the following code.


    If the user clicks
    show message1 / first the radio button then
    It appears
    yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy


    If the user clicks
    show message1 / second radio button then
    It appears
    pppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppp pppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppp pppppppppppppppppppppppppppppppppppp



    < Td > < label > for the: < br / >
    < input name = "mygroup1" type = "radio" value = "show message1" / >
    First option button
    < / label >
    < p >
    < label >
    "" "" < input name = "mygroup1" type = "radio" value = "message recu2" / >
    second option button
    < / label >
    < /p > < table >


    my "submit" button

    < p >
    < input type = "submit" name = "Submit" value = "" gotodiplaypage > > "/ >"
    < /p >

    ------------------------------------------------------------------------------------------ --------

    When submit is pressed then it will go to

    View my stories page

    Dis_mystories.cfm

    Try this...

  • Change ' display as ' type text box with radio button

    Hello

    I have a field on a form html clob. I have the default ' display as ' the value "Textarea with spell checker... I created a radio button with 2 values:

    Edit
    Overview HTML

    Is it possible to change the "display as" to "with the HTML Textarea editor' to switch between the radio button options? Any help would be appreciated I am running 3.1.2.00.02

    Thank you

    You could

    (1) call textarea_1 'Textarea with spell checker.
    (2) define as «Textarea with HTML editor» textarea_2
    (3) use javascript to show or hide one of them according to the radio button

    CITY

  • Modification of several radio buttons to a different group

    I have a pretty big shape based on the print that I need to turn it into a form online. I already have a PDF of the document and I just want to add radio buttons on top of the boxes existing. Each question had three possible answers (Yes, no, n/a), and of course I need to put each group of 3 checkboxes in the same group to make sure that they behave as expected and only allow one option by question.

    For the speed, I called the three checkboxes, gave them the right answers and the same group name, then duplicated them between the shape of alt - dragging them.

    I now need to go through the form and change the group names so that they are grouped by issue, rather than being part of the same group.

    i.e.

    The first group is P2_Q1. I want to choose the next group of three radio buttons in a single operation, and change their group to, say, P2_Q2. Then change the next group of three at P2_Q3, P2_Q4 and so on...

    I don't want not to change the name of each option button group, partly because I have a lot of questions, but also partly because that forced to do suggest Acrobat violates every principle of sound mind and good software design, Acrobat already makes my head ache like it is.

    Can anyone help? Thanks in advance.

    Screen Shot 2016-10-01 at 16.53.31.png

    Better start to rename, there is no way around it.

    I rarely use radio buttons, but when I do a large number of groups such as this (usually groups of checkboxes) I use a custom tool I built which allows me to quickly create fields. If although there is not a good integrated solution, it is possible to build a.

  • Default display of the text box

    Hi all
    I want to display text by default as (case No.) in the text box and then once you click this default text box
    text (No case) he disappeared and the text box once lost focus and then again by default text to appear.
    Please help me solve this problem.
    Thank you
    PK

    Or you could just put it in the field "text the pre element" of the element on the page 0...

    See you soon

    Ben

  • Display of a text box based on a LOV

    Hello

    I have a form with a list of selection and want to display a text box when someone chooses another (value 5). When I use the selection list with redirect clears my entire form data, it will bring up the text bx. The text box has a conditional display of pl/sql: p2_orig_src_c = '5'. I don't want the form to submit from the selection list, because the user will not be performed of the incoming data in the form.


    I tried Dennis javascript and still not having a chance.


    < script language = "JavaScript" type = "text/javascript" >

    function SHOW_ON_ORIG_SRC_C_VALUE (pThis, PThat, pValue) {}
    var rv is $x (pThis) .value;.

    If (rv == pValue) {}
    html_ShowElement (pThat);
    } else {}
    html_HideElement (pThat) ;}
    }
    < /script >
    ----------------------------------
    Footer area:
    < script >
    SHOW_ON_ORIG_SRC_C_VALUE('P2_ORIG_SRC_C','P2_ORIG_SRC_NARR','5');
    < /script >

    -------------------------------
    Select the attributes of the list: (I probably put this in the wrong place)

    The HTML Form element attribute: onchange = "SHOW_ON_ORIG_SRC_C_VALUE ('P2_ORIG_SRC_C', 'P2_ORIG_SRC_NARR', ' 5');
    and for people with disabilities of the orig_src_narr conditional display


    All the tips are greatly appreciated.

    Thank you
    Mary

    Mary:

    If the second argument of the JS function is defined as "PThat", while your references to this argument in the code use "pThat?

    CITY

  • Change the display of the text box

    I need to create a text box that only shows "*" when your typing but needs a correct answer of 1234. Try to make it look as real as the direct environment, I found a captivate module that does this, but the person who created left so I could ask him. Looking at the properties of the text box I can't understand how they have it just show that "*" and not what is actually typed.

    Any help would be most appreciated.

    Concerning
    Kevin

    Hi Kevin

    When you look at the properties of the text entry box, click the Options tab. Once you do this, you should see a check box labeled "Password". If you click to place a check mark here, everything that is typed is reflected to the user as an asterisk (*).

    I hope that helps a little... Rick

  • By selecting an option in a drop-down list displays a hidden text box and checkbox

    Being fairly new to the creation of pdf form I would be grateful for some assistance.

    I'm looking to have a number of choices in a drop-down list (dropdown1) show a hidden textbox (textbox1) and the box (checkbox1)

    The selections that would show are:

    iPad only

    Or

    Laptop and iPad

    I'm sure it's rather easy.

    Thanks in advance

    You can use this code as the custom for the drop-down list field validation script:

    var f1 = this.getField("textbox1");
    var f2 = this.getField("checkbox1");
    
    if (event.value=="iPad Only" || event.value=="Laptop and iPad") {
        f1.display = display.visible;
        f2.display = display.visible;
    } else {
        f1.display = display.hidden;
        f2.display = display.hidden;
    }
    
  • Several radio buttons from multiple text entry text box.

    Once more, I find myself asking for help.

    I have a form with a lot of questions. Answers are derived radio buttons which, in turn, are displayed in the text boxes associated with each group of option buttons. This part. that I don't have a problem.

    I want to make is that all of these responses are also displayed in a text box 'Total' separate in order to give an overview of the results of the form.


    The problem I have is that I get only 1 answer in my text box 'Total' and that while it is replaced at the next RB is selected in the following selection of questions and answers.

    Any help will be appreciated.

    Raffé.

    Hi Raffé,

    If you want to view all selections made in the option buttons in the total field, you can directly all of the above as a concatenation of string like this.

    Total.rawValue = Radiobutton1.rawValue + 'some delimiter as the comma, hyphen if you want to' + radiobutto2.rawValue + etc...

    Remember that the total field shouldn't of TextField NumericField.

    Thank you

    Sidonie.

  • buttons radio and the presence of the text field

    New on LC and JavaScript and tries to show/hide a text field on radio button (outside the Group), select by using the presence property. Two buttons in the exclusion group (I'll call them 1 and 2), by default the text field presence should be hidden (not displayed and not take place on the layout).  I have set the default value for the '2' radio button group and want the text field to display (and have the focus, but I got this little) when the value changes to '1' to the click, then disable and hide again if you click on '2 '.  Any advice would be greatly appreciated.

    Thanks in advance.

    You can use this script to the click event of the exclusion group:

    Form1. #subform [0]. RBL::click - (JavaScript, client)

    If (this.rawValue is '1')
    {
    TextField1.presence = "visible";
    }
    on the other
    {
    TextField1.presence = 'hidden ';
    }

    Who should do it, because rb1 has value 1, and rb2 has a value of 2. RBL is exclusion group.

  • Copy of forms radio buttons

    I have a several page form that contains two text fields, and radio buttons.  The fixed text in multiple pages is different on each page, but the data on the first page in the text and radio button fields need to copy in the identical text fields, and radio buttons on every page.  Text fields are no problem, but how I do on the 2nd radio button entries and the following pages copy the entries on the first page?

    First of all, I moved your question to the forum of Acrobat PDF forms .

    To do that right click on one of the radio buttons in the Group and select Properties. Then, on the Options tab, check the box that says 'the buttons with the same name and the choices are selected in unison. You can select several fields at the same time and apply to each of them, too.

  • Conditional radio buttons

    Well, I have a 2 page document. I have radio buttons on page 1: RadioGroup1; Radio1 = 0, = 1 radio2, radio3 = 2; RadioGroup2; Zealand.4 = 0, radio5 = 1, SIRIUS6 = 2. I have a textbox that displays sentences based on the selection of the Radio page 2 groups. If the person chooses radio2 or radio3 that following will appear in the text box on page 2. "Group 1 is greater than 0. If the person chooses radio5 or SIRIUS6 that the following is displayed in the control textbox on page 2; "Group 2 is greater than 0. If the person choose a combination of those, they will receive two messages to display together. I tried to use 'change' event on each of the groups of Radio.

    topMostForm. Page1.RadioGroup1::change - (JavaScript, client)

    If (this.rawValue >)

    0)

    {

    Page2.TextBox.value ("Group 1 is greater than 0. \n");

    }

    topMostForm. Page1.RadioGroup2::change - (JavaScript, client)

    If (this.rawValue > 0)

    {

    Page2.TextBox.value ("group 2 is greater than 0. \n");

    }

    Nothing is display in the text box. Any help would be grateful.

    Well I'm back at a computer!

    The if/else statement might look like this:

    if (this.rawValue > 0)
    {
         Page2.textbox.rawValue = "Group 1 is greater than 0. \n";
    }
    else
    {
         Page2.textbox.rawValue = "";
    }
    

    Hope that helps,

    Niall

    Ensure the dynamics

Maybe you are looking for

  • Purchase Mac store apps on iPad

    Hello world A few months ago, I bought an app on my macbook in-depth app store. I recently bought an iPad and want to use this application. It is available through the iTunes store, but he asked me to pay again. I realize that they are essentially tw

  • 311 - 1037NR: recovery of password Bios HP Mini 311-1037NR

    Hello My daugter has lost the bios password. I tried, but I got this message "System disabled" and "84636195". Can anyone help? Thanks in advance.

  • How can I activate the AHCI on a Studio 540?

    Hello I recently upgraded my pc to an OCZ Vertex 3 240 GB ssd hard drive and moved my old HDD as a secondary for the storage of music, pictures and video files. I read that using the SSD in AHCI mode will further improve the performance of the disk.

  • Windows 7: Black flash of the screen and no user at startup

    Whenever I boot Windows 7 Home Premium on my wife s Dell, no presentation of users after the Welcome screen. Diagnoses are thin back and there is no change in safe mode. It shows just the white background of Windows 7 and periodically flashes black.

  • ASA5505 can transfer clients to remote VPN access to the local network

    I have currently ASA 5505 and 2911-router and I am trying to configure the VPN topology. Can ASA5505 you transmit to remote VPN access clients LAN operated by another router? These two cases are possible? : (1) ASA 5505 and 2911-router are separate W