fill in the text field with the caption for the radio list

Hi, I'm looking for an answer to this all morning.  I need to use the value of a list of radio to populate a text field.  I can get the selected numeric value OK with

$.rawValue = form1. #subform [0]. . Table3.Row1 #SubForm [0]. . RawValue location [0]

but I want to get the text associated with the value element.  This could be the legend of the selected option button, since it is the same thing.  I don't want to use an if statement because I have a lot of forms to create and that would change things a few times in each shape.  How can I get the value of the text of the column of the item below?

screenshot.17.png

Try the following with two modifications to your hierarchy.

(1) currently, you do not have a name for Page1. Make sure that you assign a name for ease of use. ("Page1").

(2) define a name for the subform that contains PeriodRadio. ("Subform1").

$.rawValue = form1. Page1. Table3.row2. Subform1. PeriodRadio.selectedMember (). caption.value.text.value;

Thank you

Srini

Tags: Adobe LiveCycle

Similar Questions

  • Problems with the filling of a text field with 2 other fields data


    I have 3 domains Tools_1a_pri, Tools_1a_pri_other, Tools_1a_pri_txt.

    Tools_1a_pri is a drop-down list box with a predefined list. One of the options is the 'other '.  If 'Other' is selected, the text Tools_1a_pri_other field becomes visible for users to enter the name of the other tool.

    The Tools_1a_pri_txt is a text field with a calculation that shows a text indicating that no tool has been selected or the Tools_1a_pri & or Tools_1a_pri_other.

    When I select one of the predefined tools, everything works.  When I choose the other, it seems that nothing has changed.  Must I click another field before.  It's confusing for the user.

    Tools_1a_pri validate code
    this.getField("Tools_1a_pri_Other").display = event.value is "Other"? Display.visible: display.hidden;

    Computer Tools_1a_pri_txt code
    If nothing is selected, follow these steps
    If (getField("Tools_1a_pri").value.length < 2) {}
    event.target.textColor = color.red
    Event.Value = "no identified main tool";
    } else if (getField("Tools_1a_pri").value! = 'Other') {}
    If not do that if the other is selected
    event.target.textColor = color.black
    Event.Value = getField("Tools_1a_pri").value;
    } else if (getField("Tools_1a_pri").value = 'Other') {}
    If not do so if the other is not selected
    event.target.textColor = color.black
    GetField("Tools_1a_pri").value = Event.Value + "-" + getField("Tools_1a_pri_Other").value;
    }

    You have made the classic mistake of using the assignment operator in a statement instead of the comparison operator. Change this line:
    } else if (getField("Tools_1a_pri").value = 'Other') {}

    To do this:

    } Else if (getField("Tools_1a_pri").value == 'Other') {}

  • text field with numeric values for sorting

    I'm having a problem my sort. Usually, when the column follows a format, I can use a combination of INSTR and LPAD to sort correctly. In this new case, my columns does not follow a specific format.

    Sample data:
    with t as(
    select 'xxx 10 MG yyy' sortcol from dual union
    select 'xxx 5 MG yyy' from dual union
    select 'xxx 28 MG yyy' from dual union
    select 'aa 10% 12.5 ' from dual union
    select 'aa 6.25% 12.5' from dual union
    select '222 zzz 30/17.5' from dual union
    select '222 zzz 30/5.5' from dual
    )
    select * from t
    
    SORTCOL
    222 zzz 30/17.5
    222 zzz 30/5.5
    aa 10% 12.5 
    aa 6.25% 12.5
    xxx 10 MG yyy
    xxx 28 MG yyy
    xxx 5 MG yyy
    I want to sort the data in the
    222 zzz 30/5.5
    222 zzz 30/17.5
    aa 6.25% 12.5
    aa 10% 12.5 
    xxx 5 MG yyy
    xxx 10 MG yyy
    xxx 28 MG yyy
    I'm trying to replace all numerical values in the string to have 4 digits. For example:

    xxx yyy MG 0010
    xxx yyy MG 0028
    xxx yyy 0005 MG
    0222 zzz 0030/0017.0005
    0222 zzz 0030/0005.0005

    If Oracle will sort correctly digital in the form of text fields. I thought I found the solution with the regular expression:
    select regexp_replace('x10x100x6.5x','([0-9]+)',lpad('\1', 4,0)) from dual
    
    x0010x00100x006.005x
    But the problem is that the backreference in the LPAD overrides the value before it run LPAD. He treats her like the literal string '\1' as oppose to the reference value: 10, 1, 6, and 5. Therefore, LPAD think length is always 2, length ('\1') = 2 instead of length('100') = 3.

    Is there another method to develop all the numbers? Thank you for your time.

    Hello

    You can do with nested REGEXP_REPLACEs:

    SELECT   sortcol
    ,      REGEXP_REPLACE ( REGEXP_REPLACE ( sortcol
                                 , '([0-9]+)'
                              , '000\1'
                              )
                   , '[0-9]+([0-9]{4})'
                   , '\1'
                   )     AS four_digits
    FROM       t
    ORDER BY four_digits
    ;
    

    You probably don't want to display the string converted; you want to just ORDER BY it. It is included in the SELECT clause only if you could see what it was, for the tests.
    Output:

    SORTCOL         FOUR_DIGITS
    --------------- ------------------------------
    222 zzz 30/5.5  0222 zzz 0030/0005.0005
    222 zzz 30/17.5 0222 zzz 0030/0017.0005
    aa 6.25% 12.5   aa 0006.0025% 0012.0005
    aa 10% 12.5     aa 0010% 0012.0005
    xxx 5 MG yyy    xxx 0005 MG yyy
    xxx 10 MG yyy   xxx 0010 MG yyy
    xxx 28 MG yyy   xxx 0028 MG yyy
    

    As you can see, the inner REGEXP_REPLACE adds 3 leading 0 to each number, if she need to 0, 1, 2, or 3. This means that each number will be at least 4 digits, but maybe more. The external REGEXP_REPLACE replaces 4 digits with the last 4 digits only.

    Thanks for posting the sample data in a useful form. The description of the problem was very clear, and it was useful to see that you had already tried and your results on why it does not work. I wish we could mark questions as "Correct." This one was really were.

    Published by: Frank Kulash, January 21, 2011 16:20

  • When a box is checked, fill a text field with a value

    I don't know that it's simple; However, I am very new to acrobat and javascript.

    Here's what I want to do:

    I have a checkbox field and a text field. If the checkbox is turned "on" I want to fill the text field with a specific numeric value.  If she isn't 'unchecked' there is not value or value 0.  Any help is appreciated.

    Enter this code in the custom of your text field calculation script:

    This.getField("CheckBox1").value = Event.Value == "Off"? 0: 1234;

  • Creating a page of my Web site that allows users to fill out text fields, with basic formulation tools (text sizes, formatting, etc.).

    Hey, I would like to create a page on my Web site that allows users to fill out text fields, with basic formulation tools (text sizes, formatting, etc.).

    Another thing I need to allow users must be able to upload their own graphics to the pre-assigned fields. Thank you please advise me on how I would go to this topic.

    Nothing to do with the Muse. You need a system dynamic as Joomla, Wordpress, Drupal and so on. Otherwise, there is no way to store your information.

    Mylenium

  • Text field with AutoComplete do not store Item Value for Cascading LOV

    Hello

    I have created a form to the APEX 4.2, and two elements on the page have a problem. The first point is a text field with AutoComplete for the PROVIDER. The second element is a list select number that has the PROVIDER as part of waterfall to fill.

    When a user selects one of the values that the field can be seized semiautomatic provider , the value autocomplété should make the selection list produce the numbers respective associated PROVIDER. The problem that I am running is that AutoComplete is not give PROVIDER selection list value is filled.

    For example: if I type 'st' in the PROVIDER field that autocompletes to "steve" is selected, the NUMBER field must interrogate him for the numbers where VENDOR = steve. However, after reviewing the Session State from the PROVIDER element, the contained value is always only "st."



    Here are the settings I have for the field PROVIDER : and NUMBER:

    name.JPGnumber.JPG

    There should be a way to have the value of the seized field semi-automatic to account for what appears after selecting a value, but I don't know what it is. You can provide any help would be appreciated.

    Thank you!

    your query full auto would: select supplier_name | ' ('| supplier_id |') '

    provider AutoComplete onChange, get the supplier_id and then value the selected drop-down list by using this code.

  • Text field with AutoComplete is always NULL

    Greetings,

    I am new to Apex, so I don't know I'm missing something obvious. I use Apex 4.0.1 what I've done is created a form on a page of table and added a new text with page of AutoComplete element. This new field of text does not match a column in the table. What I'm trying to do, is allow the user to use the AutoComplete feature to make a choice. Then when the user submits the page, I want to use the substr function on the value of the field of AutoComplete and fill one of the fields in table. I tried using the PL/SQL functions in validations and calculations, but I found that the autocomplete field value is always NULL. I can access the other fields that are associated with a fine table column. It must be something simple. Thanks for your help.
    Page Items
    P2_F1  - text field with auto complete. Not associated with a table column
    P2_F2 – Text field. Is associate with a table column
    This is what I want to do:
    
    Entered this in a validation
    begin
    if :P2_F1 is not null then
       :P2_F2 := substr(:P2_F1,1,5);
    end if;
    end;
    Thanks again

    Published by: LRM on 22 January 2011 17:25

    Hello

    In calculations, you must use:

    Item name: P2_F2
    Type: SQL Expression
    Point calculation: after submit
    calculation: substr(:P2_F1,1,5)
    Condition type: the value of element in the expression is not null
    Expression 1: P2_F1

    Kind regards

    Patel Kartik
    ---------------------------------------------------------------
    http://patelkartik.blogspot.com/
    http://Apex.Oracle.com/pls/Apex/f?p=9904351712:1

  • Ghost of text for a text field with Add Action

    I have a text field with text ghost. Also, there is a button to add additional text fields. When a user clicks on the 'add an additional text field button' new text field appears but without the ghost of the original text field text. I tried the script of the click event of the button to fire or run:

    textfield.execEvent("ready:form"); or textfield.execEvent("form:ready");

    Why 2 ways? LiveCycle has two ways to present it:

    (1) on the drop-down list for events (e.g. form: ready)

    (2) on the name of the field at the top of the script after box selected event on the menu drop-down (for example textfield.ready:form: :-(Javascript, client)

    Is there a better way to do it? My concern is that if I managed to shoot the event form: ready or ready: shape the event can reset all the text from the original text of default ghost of "Kansas City Royals. Thank you

    https://workspaces.Acrobat.com/?d=w3PioRrv8DUp2ruhoOY * 8g

    Put your event form script: ready in the initialize event.

    Kyle

  • 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

  • Is it Apex_Item function for "text field with AutoComplete?

    Hi all
    Is it Apex_Item function for "text field with AutoComplete? I can't find it in the website http://apex.oracle.com/i/doc/AEAPI/apex_item.htm

    Respect,
    Taylor.

    Hello

    I think that there is not. If there is, it is not documented.

    You can use the normal text field and Add AutoComplete using jQuery UI and jQuery autocomplete plugin.
    Those who are willing to Apex 4

    See for example this post how manually to add autocomplete text field
    Plugin of JQuery autocomplete

    Kind regards
    Jari

  • Apex 4.02 BUG: text field with AutoComplete. wrong help text

    The rest of the wizard for a text field with AutoComplete you reach a screen where you can enter an LOV query. The text of the query box has following help text

    Enter the query that returns the list of values. The query must select two columns in the following order, first a display value then a return value. For example:

    Select ename, empno
    WCP


    When you select two identical columns, remember to use the single column alias, for example:

    Select d, r ename ename
    WCP

    However, the query must return only 1 value.

    Thank you, Rene, I fixed in 4.1.

    Concerning
    Patrick
    -----------
    My Blog: http://www.inside-oracle-apex.com
    APEX 4.0 Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • How to add an animation to a text field with two lines?

    I have a text field with two or more lines. Why is it not possible now to apply a text animation?àpe_textfield.jpg

    Animating text, by design, only works on a single line of text.

    To use it for multiple lines, you can either create two separate titles or keyframing to create your own animation effect.

  • Auto fill the text field with user logon Windows users

    Can someone tell me how to achieve the following objectives, I want a text field in my form to be filled automatically with the windows users username.

    I found an answer 'Define a new variable REMOTE_USER - user domain\username Request.Server should display'

    This script/s should I use on the forum and put it where?

    Thanks in advance.

    Steven Thompson

    Sydney, Australia

    First you must put the code I provided in a special level of the Acrobat application folder and then restart Acrobat or Reader.

    Enter the folder level Scripts by Thom Parker

    Then, in your form field, you can use the following code in the "custom javascript calculation:

    Event.Value = Identity.loginName;

    Note the capitalization of the word 'identity '.

    The application-level script will work with Acrobat and LiveCycle Designer Forms.

    If you want to use a feature, you can use the following code in an application-level folder:

    getIdentity = app.trustedFunction (function (cProperty) {}
    app.beginPriv ();
    cValue = identity [cProperty];
    if(cValue == undefined) {/ / check for the unknown identity property}
    App.Alert ("property of the identity is not known:" + cProperty);
    cValue ="";
    } / / end if not defined
    return cValue;
    app.endPriv ();
    } / / end app.trustedFuncton
    ) / / end getItentity

    And then in the "custom calculation script:

    Event.Value = getIdentity ("loginName"); get the loginName

  • JavaScript - fill out the text field with data entered

    Hello

    I am learning javascript and need help to put in place a script that will do the following:

    I have three text fields where users enter data. I would like to take this data and provide a summary in a 4th text field. If a field is null, it should be ignored.

    TextField1

    textfield2

    textfield3

    Summary data entered above must be posted in textfield4.

    Text1

    Text2

    Text3

    Your help would be much appreciated.

    Thank you!

    Varns

    Hello

    On the calculate event of the textfield4 put the following text (or something like that):

    var str1 = "";

    var str2 = "";

    var str3 = "";

    var str4 = "";

    If (TextField1.rawValue! = null)

    {

    str1 = TextField1.rawValue + "\u000a";

    }

    If (TextField2.rawValue! = null)

    {

    str2 = TextField2.rawValue + "\u000a";

    }

    If (TextField3.rawValue! = null)

    {

    str3 = TextField3.rawValue;

    }

    STR4 = str1, str2 + str3;

    If (str4 > "")
    {
    this.rawValue = str4;
    }
    on the other
    {
    this.rawValue = "";
    }

    You may need to adjust to your exact needs - good luck!

    Stephen

  • How do fill you a text field based on the entries in other text fields?

    I would like to be able to have a text field that fills as 'Full' or 'Incomplete' based on the question if all required fields have been filled or not.

    For example, if the "First Name", "Last Name" and "City" text fields are not filled, the text of "the State of completion" field displays 'Incomplete' and once they are filled, the text of "the State of completion" field will turn into "Complete".

    How can I do this using javascript? I searched the web for a tutorial, but most of the results seems to be focused on the menu drop-down.

    Please point me in the right direction!

    Try the script below. I put this on the calculate for Field1 event

    If (FirstName.rawValue == null |) LastName.rawValue == null | City.rawValue == null) {}

    Field1.RawValue = "incomplete."

    }

    on the other

    Field1.RawValue = "complete."

Maybe you are looking for