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";

Tags: Acrobat

Similar Questions

  • Display different text based on the time of day?

    Hello

    I want to have a msg text showing according to the time zone of the user of the native device. For example, when the user is during the day, it displays "Hello". And when the night time comes, it shows "good evening." Is there that an average muse can achieve this? If so, can you please tell me how? either use the widget or write javascript code by adding the html object? Thank you

    You can have fun with JavaScript date() functions. Search the Web. a lot of info on this around.

    Mylenium

  • Using radio buttons

    Good day all.

    This is the first time I tried to use radio buttons on a form, so this issue "could" be very simple to most of you.

    I have a list of questions to add to a form, and the user must answer the questions using radio buttons. There will be 3 buttons for each question. Yes, no and n/a. I use raidio buttons I want only the user to select 1 choices. Thus, the shape will be casting so I thought that I need to put the question and boxes option in a table. When I tried this, the radio buttons 'statcked' one on top of the other. I would need to have the radio 'next' buttons between them. So it would look like.

    Question                                                                                                        0 Yes     0 No     0 N/A

    Any help would be appreciated

    Concerning

    Chomp

    The way you add radio buttons in the form you have downloaded seems to be OK...

    But one thing I've observed is, you put each line in a separate table in the form that you do not need to. You can have a table and have as separate lines. (the modified file attached)

    I would like to know if you still have any questions...

    https://Acrobat.com/#d=YM8D0zmRdG8IdqqgQ3 * z3Q

    Thank you

    Srini

  • How to use PL/SQL to create dynamic action to set the value of a selection by another list?

    Hello

    I would like to know how to use PL/SQL to create dynamic action to set the value of a list of selection by another selection list.

    1.PNG

    I wish can create dynamic action to manage the two above the Room select list (: P9_ROOM) and building (: P8_BUILDING).

    When you select "1074" in the bathroom, building highlights like "BRM BLD 5"

    When you select 'Area of the black box' in the room, building must assign the value "7 BLD BRM"

    When the room is Null, building should also be Null.

    I thank you,

    Alice

    I forgot to mention, for the PL/SQL Code, because you are working with items in the selection list, the return values are different from the display on your LOV values, you must instead use the return values.

    Thank you

    Erick

  • How to start two events different loops depending on tab selection

    Hello

    I have a tab control with two tabs and various controls and indicators on the subject.

    In the background is a while loop that contains a structure of the event which reacts on the different button-"change value" - events.

    There is one "end"-button on the Panel that stops the loop. "."

    Now the question:

    How can I add a while loop second with a second structure of the event and depending on the selection tab that the corresponding loop should run.

    Because I would like the events of two separate tabs.

    I think that it s possible to wire the stop at the value tab loop but how do to restart the loop?

    Thx for the help

    Iliale wrote:

    Why is the event in the attachment execution?

    If I have the wiring on the right side of the DI_1:ValueSignaling property, then it still runs and can only be stopped by the Task Manager...

    THX

    Because every time you write for the value property and event signage is queued up.  This occurs even if the value has not changed.  You probably want to add a registry node or shift of feedback to ensure the follow-up of the State of the LED.  XOR the current value with the previous.  If the XOR is true, it means that the value has changed.  Only write in the property node when the value changes.

  • How to use the selection tool to resize a text box? Before I was able to click on the text box with the selection too in order to resize, but now I click on it and it only gives me 'path' or 'anchor' options.

    How to use the selection tool to resize a text box? Before I was able to click on the text box with the selection too in order to resize, but now I click on it and it only gives me 'path' or 'anchor' options.

    Ashley,

    What about window > show the rectangle enclosing (Ctrl / Cmd + Shift + B to toggle)?

  • Initiation form of different workflows depending on the type of inquiry?

    I have difficulties to get a form to start different workflows depending on the type of investigation. I followed the instructions described here without success.

    I created two workflows: ID746065 and ID746066. Each workflow sends a notification e-mail to the various departments. I have the following code in my form:

    "< select name = WorkflowList" class = "cat_dropdown" >

    "< option value =" ">--please select--< / option >".

    < option value = "ID746065" > notify sales < / option >

    < option value = "ID746066" > notify Marketeing < / option >

    < / select >

    It does not work.

    In the Site Manager = > Web Forms = > Web form properties = > use the workflow, I 'not to use a workflow' selected. Is this correct? I want the form to select the workflow. If I change "Use Workflow" to one of my Workflows, it send an email, so I know the Workflows are correct. How can I get the form to dynamically select the workflow?

    I don't think you need to 'ID' before the workflow ID number.

  • Forms - submitting to different recipients based on the selection

    I have a form I need to present it to different addresses depending on the option chosen in one of the drop down lists. This MUST be done on a form on the client side.

    Any ideas on how to go about it?

    I don't want to create a different form for each scenario.

    Thank you

    You can set the action attribute of form with js as well. as murray said, this isn't the way favorite of doing things, but if it is your only way you can control the browser uses your username does work.



    Form




  • different text color in the same line for staticText ScriptUI?

    is it possible to have different text color in the same line for staticText ScriptUI?

    for example, I don't want red color for the word 'RED' text below in the SAME line.

    var l is new window ('dialog', 'Sélection');.

    var s = w.add ('statictext', undefined, "It's a RED pen");
    w.Show ();

    Thank you!!

    Simple,

    var w = new Window ("dialog","Selection"),
         g = w.add('group'),
         s1 = g.add('statictext', undefined,"This is a"),
         s2 = g.add('statictext', undefined,"RED"),
         s3 = g.add('statictext', undefined,"pen");
    g.spacing = 4;
    s2.graphics.foregroundColor = w.graphics.newPen(w.graphics.PenType.SOLID_COLOR,[1,0,0],  1);
    w.show();
    

    I'm sure that's the answer makes sense "only".

    Trevor

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

  • Color picker that is customized by using radio buttons?

    I am trying to create a color picker custom as Apex color picker has too many colors.  I thought that a radio button would work if I could program the text to also display the color, but the following sql code shows the text formatted in the result.

    ' SELECT ' < font color = "' | color_id | "" "> < b > ' | color_name | "< /b > < / police > ' d, colors FROM r color_name

    < font color = "#F0F8FF" > < b > AliceBlue < /b > < / make >

    < font color = "#FAEBD7" > < b > AntiqueWhite < /b > < / make >

    < color = "#00FFFF" > < b > Aqua < /b > < / make >

    < color = "#7FFFD4" > < b > Aquamarine < /b > < / make >

    I know I can do text different colors in a report using this technique.

    Any ideas?

    Thank you

    Drew

    Request Express 4.2.3.00.08

    Okay, I think I found the solution with the help of dynamic Action with a Select list.  Create DA on the element, the value real action Style defined and &. P2_COLOR_ID for value... the style was background color.  The strange thing is that I had to set the Action Page to "Redirect and set the value" item for him to work.

    Now, after that they select a color in the list, the background changes color, and I can't constraint selection list to not show a colour already in use.

    Is it just me, or doesn't suck Oracle forums.  continues to log in, don't remember me half the time...

  • How to group radio buttons LabWindows/CVI

    Hi all

    I use 3 boxes in my GUI. Only onle is selected at a time where no one is selected. For example, I have three buttons B1, B2 and B3. By default, B2 is selected and (1) if I press B2 it désélectionnera it free, and nobody is selected in this group. (2) if B2 is already chosen and I based on B1, then désélectionnera B2 and B1 will be selected.

    Is there why group multiple radio buttons?

    -Vishnu

    Hi Vishnu,

    CVI comes with a custom control called Radio group that you can use for this purpose. It is a custom tree control that you can add to a group of experts. You can locate this control in the control of Toolslib:

    If you don't want to use this instrument, it is pretty simple implementation of a group of radio buttons. You can use something like this:

    1. Create controls that must be grouped on the Panel
    2. Create a control array
      CTL int [3];
      CTL [0] = PANEL_RADIOBUTTON1;
      CONT [1] = PANEL_RADIOBUTTON2;
      CTL [3] = PANEL_RADIOBUTTON3;
    3. In the reminder of the command:
      for (i = 0; i< 3;="" i++)="" setctrlval="" (panelhandle,="" ctl[i],="" 0);   ="" turn="" off="" all="">
      SetCtrlVal (panelHandle, control, 1);     Turn on the active radio button

    Modify Normal behavior in radio buttons is that one of the group must always be selected. If you want to be able to have no selected control, you can easily customize step 3 to get:

    for (i = 0; i< 3;="" i++)="">
    If (Control | = ctl [i]) SetCtrlVal (panelHandle, ctl [i], 0);    Disable all controls, different from the active
    }

  • How to display different text for the labels in group above report Oracle report

    Hello

    Is there a way to change the text that is displayed in the labels in a report over the Group? For example, I have a report above group with my columns of data and above the columns, I have my column labels, but I would like to be able to display various text, i.e. different labels according to requirement. In other words, Column1 label could say column 1 or it's Column1, based on a condition. This is Oracle Report Builder 10.1.2.0.2.
    Thank you.

    If you use the wizard the column headers are created as fixed text elements. No way to change that.
    So, you have to delete text and replace by fields that use some of the columns in your data as the source model. This is how I create reports all the time. There is never any fixed text, all the text is retrieved in the data model.

    You can also use the format trigger. Simply place the elements of different text on top of the other and return TRUE or FALSE to display the correct label.

  • How to preset radio buttons

    I use the following to dynamically generate radio buttons in my query, a list of cities.

    < cfloop query = "qryGetCity" >
    < cfoutput >
    < cfinput type = "radio" name = "cityID" value = "#qryGetCity.cityID #" > #qryGetCity.city # < br >
    < / cfoutput >
    < / cfloop >

    When the user opens a session, I validate their LDAP information and then they are taken to this page to select their city.

    What I do now is when they connect, I still need to validate their info from LDAP, but also ge town and if they are to this page, preselect the city for them.

    How would I do this with dynamically generated radio buttons? I think I know how to do it so hard-coded, but I don't know with dynamic output.

    Thank you

    try to use ('true') instead of DE('checked')?

    That's strange ' cos OF ('checked') works very well in my tests...

    Azadi Saryev
    SABAI - Dee.com
    http://www.SABAI-Dee.com/

  • How to create Radio button that works like a Menu of rerouting

    Hi all

    Thanks in advanced for any help you can offer!

    I need assistance with Javascript that will dynamically created radio buttons act like the Menu for rerouting.

    Help, please. I need it as soon as POSSIBLE.

    I currently use several shortcuts menu (in Dreamweaver) to refresh the screen and additional Jump Menu on the screen. So that a user selects in the menu dropdown will refresh the page and update the content by following Menu go. I use Coldfusion for popular information. I use the URL to see the VARIABLES each refresh of the screen.

    Example URL: http://www.haysfluidcontrols.com/haysfluidcontrols/onlinecat/HoseKits.cfm

    ALSO, if any buddy knows how to create a Coldfusion page like this which are NOT REFRESHED when each choice, I'd LOVE to hear about it. I know of AJAX, but have not found anything made since then and have not been able to understand how incorperate it into my code.

    Thanks again,
    Matt

    Thanks for the comments everyone. I came up with a great solution. Thanks to Phil Hegedusich Direction. I am including my solution in this post. I also noticed that this code works with checkboxes.

    Thanks again for the help. I hope this helps others.

Maybe you are looking for