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.

Tags: Adobe LiveCycle

Similar Questions

  • Get the value of the drop-down list (selectedIndex) and the text field - does not

    Hi all

    I'm trying to find and change the values selected by the user using a drop-down list and text field. Here's the code.

    ChangeRevDetails();
    function ChangeRevDetails(){
    
    
              var myDialog = app.dialogs.add({name:"Enter copyright information"});
    
    
    //    var monthlist = col1.dropdowns.add('myList', undefined, myList);
    
    
              var col1 = myDialog.dialogColumns.add();
              var col2 = myDialog.dialogColumns.add();
      
        col1.staticTexts.add({staticLabel:"Month:"});
              col1.staticTexts.add({staticLabel:"Year:"});
        col1.staticTexts.add({staticLabel:"Rev. no.:"});
        
        var myList = [ "January", "February",  "March", "April", "March", "April", "May", "June", "July", "August", "Sepetember", "October", "November", "December" ];
    
    
         var myMonth = col2.dropdowns.add({stringList:myList, selectedIndex:0, minWidth:100});//{minWidth:100});
         var myYear = col2.textEditboxes.add({editContents:"2013", minWidth:100});   
         var MyRev = col2.textEditboxes.add({minWidth:100});
    
    
        var RevMonth = (myList [myMonth.selectedIndex]);
        var RevYear = myYear.editContents;
        var RevNumber = MyRev.editContents;
        var RevToReplace1 = RevMonth +", "+ RevYear;
        var RevToReplace2 = RevMonth +", "+ RevYear + " Rev. " + RevNumber;
    
    
        var myResult = myDialog.show();
    
    
            if(myYear.editContents == "") //entry is "" 
            { 
            alert("Please enter some text into the contents field."); 
            ChangeRevDetails(); 
            }
            else if(myResult == true) //user entered datas 
            { 
    
    
                alert (RevMonth);
                alert (RevYear);
                alert (RevNumber);
                alert (RevToReplace1);
                alert (RevToReplace2);
    
    
                app.findGrepPreferences = NothingEnum.nothing;
                app.changeGrepPreferences = NothingEnum.nothing;
    
    
                // grep find/change
                app.findGrepPreferences = app.changeGrepPreferences = null;       
                app.findGrepPreferences.findWhat = "[\\l\\u]+?\\s?\\d{4},?\\s+[\\l\\u]+\\.*\\s+\\d+";
                app.findGrepPreferences.appliedParagraphStyle = app.activeDocument.paragraphStyleGroups.item("Back page"). paragraphStyles.item("Legal_7/9");
                app.changeGrepPreferences.changeTo = RevToReplace1;
                app.changeGrepPreferences.appliedParagraphStyle = app.activeDocument.paragraphStyleGroups.item("Back page"). paragraphStyles.item("Legal_7/9");
                app.activeDocument.changeGrep();
    
    
                app.findGrepPreferences = NothingEnum.nothing;
                app.changeGrepPreferences = NothingEnum.nothing;
      
        } 
        else //implies user clicked cancel 
        { 
        myDialog.destroy(); 
        }
    
    
    }
    
    

    The problem is, it does not take the value that the user selects in the drop-down list and the text field. It takes the default value as "January" and the year is '2013' as these two values are given as selectedIndex:0 and editContents: "2013". I compared the coding with a few other scripts work as well, but it does not work. I added several alert boxes to check the value we get.

    In addition, search for it and change also does not work. Please help me on this. Thank you.

    Kind regards

    Bachi. D

    Change the order of dialogresults:

    ...

    var myYear = col2.textEditboxes.add ({editContents: "2013", minWidth:100});})
    var MyRev = col2.textEditboxes.add({minWidth:100});)
    Ditto var = myDialog.show ();
        If (myYear.editContents == "") //entry is «»
        {
        Alert ("Please enter a text in the content field.");
        ChangeRevDetails();
        }
        else //user entered if(myResult == true) datas
        {
    var RevMonth = (myList [myMonth.selectedIndex]);
    var RevYear = myYear.editContents;
    var RevNumber = MyRev.editContents;
    "var RevToReplace1 = RevMonth + ', '+ RevYear;

    "var RevToReplace2 = RevMonth + ', '+ RevYear + 'Rev' + RevNumber;

    ...

    did not have a look for the problem of change to find

  • Dynamic Actions disable button based on the text field

    Hello

    Sorry if this has already been asked but I checked and could not find a job.

    «I'm trying to disable / enable a button "view" among the elements of this region from if a text field has a value or.»  I created a dynamic action for this but its not working only partially.  I can get the button to be disabled or enabled when I leave the text field, but what I'm trying to do is to get the State of button to change as soon as I start to type in the text field or return to people with disabilities if the text is deleted.

    I don't know that I'm missing something simple and help you can give is greatly appreciated.

    I use APEX 4.1 and that's how I got the dynamic action implementation, I tried different but no event types to give them action I want.

    I also install an example (details below)

    Event - change

    Selection type - point

    Article (s) - P1_TEXT

    Condition - is null

    Real Action

    Action - disable

    Fires when the result of the event is - real

    Fire on the loading of the Page - Y

    Items affected - button

    Article (s) - P1_BUTTON

    Action of false

    Action - Enable

    Fires when the result of the event is - fake

    Fire on the loading of the Page - Y

    Items affected - button

    Article (s) - P1_BUTTON

    workspace - show_issue

    user_name - show_issue

    password - show_issue

    app_id - 61707

    http://Apex.Oracle.com/pls/Apex/f?p=61707:1

    It works as expected if you change the event of 'Change' for 'key version?

  • HELP - lost the button "calculate" in the "text field properties"! I try to summarize the total for separate text fields in a summary box.

    Help, please!  I try to summarize the total for separate text fields in a summary box, but have lost the tab 'calculate' in the 'text field properties area.  Any help would be greatly appreciated!

    When in forms editing mode (Tools > prepare form), select: more > return to the Acrobat form

    In the future, check the box 'this document requires signatures' when you choose at the beginning: Tools > form prepare

    unless you plan to use the form with eSign Document Adobe cloud service.

  • Update calendar with a date picker and the text field

    Hello

    I have a box of text, dates and a button selector. When I click on the button, I want the calendar in a region to be updated with the details.

    For example: I select date: August 15, 2012 and text: meeting customer. When I click on the button (Update), calendar should display my meeting details for the respective date.

    Any suggestions please

    -Shema

    Although Santosh

    It's a normal insert processes for the elements of the Page.

    for example: insert into EMP (ENAME, HIREDATE) Values(:P3_NAME,:P3_HIREDATE);

    And you need to create a calendar of sql to do this for the extraction of data from this respected roll on this date...

    You must provide a query Select normal for this calendar of Sql

    For example, it is the request that I used in this page...
    Select ENAME from EMP HIREDATE

    Thank you

  • Fill in the text field when TWO radio button is unchecked

    Hello

    I don't know anything about javascript and need help.  I have a photography contract I want to offer a "discount package" of $50 when the two services will be used.  1 service is 'Photography coverage' and Service 2 'Photo Booth Rental'.

    Text field 1 = subtotal (calculates the values of checkbox and radio button)

    Text field 2 = discount (it's where I need help.  I would like this automatically filled with $50 when my default two boxes are not selected.  But only when the TWO are not selected)

    Text field 3 = Total (which has a basic calculation of the Subtotal-Discount)

    The services of two by default (it's done on purpose, I checked from the beginning) are both set to the '0' values to keep the subtotal $ 0.  If the client will use a service (which means one of the default selections will be selected), then there will be no discount, but if they decide to use photography and the cabin, they save $50.

    Can someone please help me to write a script for the text field, Discount calculation, to accomplish what I ask?

    Untitled-3.jpg

    You can use something like what the calculation script custom field discount:

    Event.Value = (this.getField("Service1").value == 0 | this.getField("Service2").value == 0)? 0: 50;

    Simply adjust the field names in the code to match the real in your file.

  • How can I add a right click Menu mouse to click 'CANCEL' * and * "REDO" button to change the text in Firefox?

    How can I add a Menu with the right mouse button to display a "UNDO" AND "REDO" button to change the text back in Firefox without losing or forgetting the changes as I can under Google Chrome? -OMG I told dinnt - SORRY!

    Glad you stuck with this issue cuz I pulled a real boner trying to fix. I was totally distraught on the main menu of * two * UNDO and REDO. If you remember that I tried to install the menu shortcut for UNDO them and REDO and totally rejected the idea that they might be under Edit on the crazy Main Menu which of course, they have been and worked like a charm. THANKS again man, you are a true hero!

  • Align the text field and a button.

    Hi all

    I use Oracle APEX 5.0.1.

    I tried to create a search page that contain a text field and a button.

    But I can't align the text field and button, so they can have the same top position.

    Could someone please help me solve this problem?

    APEX-ARE-Search.jpg

    Thank you and best regards,

    Troy.

    Hello.

    Have you tried to add a css attribute to the button? like: style = "top: 4px;

    Concerning

  • Pop the text field scrolling buttons on the stage

    Hello all;

    I am very new to Flash so please bare with me. If anyone can point me to some examples I would really appreciate it. I have 5 buttons on my stage (in fact they are just text that I made in buttons); I would like the user to be able to click on each of them, and it appears a text field scrolling where they can read and scroll the information in the text field and then they can go back and click Next and so on. On the left side of the stage is the buttons and on the side right would be the scrolling text field. Now I realize that I could accomplish this using frameworks separated for each button and just pointing to these images, but I feel that there is an easier way... There must be there is something I'm definitely missing...

    Thank you d ' attribute
    T

    A warning first. I have not tested this code, but it covers most of what is needed to do this with AS3.

    var source: String = "myTxtFile.txt";
    var dataFormat:String = pouvez;

    var loader: URLLoader = new URLLoader();
    loader.dataFormat = dataFormat;

    loader.addEventListener (Event.COMPLETE, completeHandler);

    var request: URLRequest = new URLRequest (source);
    try {}
    Loader.Load (request);
    } catch (error) {}
    trace ("there was an error loading the text file");
    }

    function completeHandler(evt:Event):void {}
    var variables: URLVariables = new URLVariables ((evt.target comme URLLoader) .data);

    for (var i: uint = 1; i<= variables.numvars="" ;="">

    var n: String = "button" + i;
    myTexts [n] variable = [n];

    }
    }

  • My button send and the toolbar have disappeared from the left side of the screen

    The button send and the toolbar usually located on the left side of the screen disappeared.

    It is the part of the records.

    In the menu bar select view-presentation-folder pane

    Make sure it is checked.
    If it is checked, and it always shows he was not pushed on the left side of the screen. Move your mouse on the left margin of the screen and look for that to change in a double headed arrow. When he, left click, hold down and drag to the right to find the folders pane.

  • How to change the space between folder icon and the text on the personal toolbar?

    I have some files in the personal toolbar with just a letter to indicate what they are, but on the theme that I use, the letter is too far from the record, it belongs to and partially falls under following folder icon. I don't want to increase the space between all the icons to show the full letter, as this decreases the amount of icons that you can have in the toolbar. Instead, I want to reduce the space between the file and the text belonging to him, so he is right next to him instead of 5 pixels away.

    I found various entries to change the padding and margins in userChrome.css, but it's always around the icon, I don't know where to look to close the space between the icon and the corresponding text.

    Any help would be greatly appreciated, thank you.

    Did you check the value of the left margin of the text?

    You can set if necessary negative margin values.

    #PlacesToolbarItems .toolbarbutton-text { margin-left: -2px !important; }

    Add .bookmark-item [container] If this enough for the items in the folder

    #PlacesToolbarItems .bookmark-item[container] .toolbarbutton-text { margin-left: -2px !important; }
  • I just upgraded to Firefox 17.0.1 and now I am unable to what it is concluded from the text fields.

    After the upgrade to Firefox 17.0.1 cannot enter text in the toolbar URL, the search bar, or any text boxes/entry forms/fields on Web pages. When you click on the text field, the cursor is positioned properly and flashes but typing does not generate any text.

    OK the solution to this problem (to fear for me) is completely restart the computer.

    Thanks ideato and cor - el to try to help.

  • Parameter of blackBerry Smartphones in order to display the VM and the text of the email

    How can I configure my phone for my VM and the text appear under the icon of my email?  My old man

    BB has been able to do this, but I can't understand the setting for this one.  Help, please.  Thank you.

    Deepen your Meesage Options combine, the Inbox settings, menu, Options, e-mail.

  • Menu is wrong color and the text unformatted when published?

    I can get an overview of the build in Muse and it looks fine, but when I publish, the looks of dark menu (bad color) and the text is the wrong size and color. Here is a picture in the preview in the Muse... http://i.imgur.com/3JMaiA7.PNG and here is the site... http://botticelliportraits.com/

    I publish direct from Muse to Business Catalyst. I tried to download all the files. I went even manually and remove the entire site and reissued, but I get the same result. Any help is greatly appreciated!

    Brian

    Hello

    Please refer to a similar thread and follow the suggestion of Zak.

    Re: New version of Muse certainly screwed things up.

    Kind regards

    Vivek

  • I created a PDF file in InDesign and the text boxes has a white line around one of the text boxes?   There is no color indicated on the sketch? How can I fix it

    I created a PDF file in InDesign and the text boxes has a white line around one of the text boxes?

    There is no color indicated on the sketch? How can I fix it

    Double post.

    Locked

Maybe you are looking for

  • Satellite A200 need reduce graphics display on/off

    Hello When my laptop stop working and after some time a blue screen appears and says "beginning dump of physical memory.What it means? Then, I saw a suggestion, I think he should reduse or try to disable graphics showing or hiding windows. I'm not su

  • Display 1-bit depth BMP file in LabVIEW

    I'm reading a depth of 1-bit BMP file in LabVIEW, but using 2D image control, it keeps out of the black.  It opens fine in painting/PhotoImpact applications and I can see the image as an array of Boolean (1 - bit pixmap) by using the code below - so,

  • Windows Update allows only XP, SP3 and NO Windows Server 3. Please help, Joanne

    I was checking my Windows Update history and noticed a few pages of updates that were not downloaded.  I printed the and proceededto make them manually.  In the middle of download I realized that I did not updated for Word 2003.  When I tried to do,

  • Pavilion dv5: I forgot the password of administrator/power on password

    I need help, I have a HP pavilion dv5 and I forgot the password of administrator/power on password... disabled system [70615950]

  • Help with Aironet 1252AG-E-K9 and weak signals

    Hello I have an AIR-AP1252AG-A-K9 and a LOOK - ANT2506 2.4 GHz omnidirectional antenna. First of all, I am new to wireless space... I have to connect to a local network with a PC which is 280 meters, only a single PC. We have the Aironet connected to