Syntax to hide an option button in a group of radio buttons

Good afternoon

Syntax question.

I have a group named 'CheckMainbox' with 4 appointed choices radio buttons "option 1" "choice 2" "3" and "choice4" choice. "»

My code project

{if(Event.Value=="true")}

this.getField("CheckMainbox").value = "choice1". display.hidden <-this is an incorrect code, but what is the correct syntax to do this?

}

I found this:

Field compared to the attributes of the widget

Some properties of the Field object as value, apply to all the widgets that are children of this field. Other properties, such as rect, are specific to the different widgets.

Methods and the following field properties affect the attributes at the level of the fields:
calcOrderIndex charLimit, comb, defaultValue, doNotScroll, currentValueIndices, doNotSpellCheck, delay, doc, editable, exportValues, fileSelect, multiline, multipleSelection, name, numItems, page, password,
ReadOnly, required, submitName, type, user name, value, valueAsString, clearItems, browseForFileToSubmit, deleteItemAt, getItemAt, insertItemAt, setAction, setItems, signatureInfo, signatureSign and signatureValidate.

Methods and the following field properties affect the attributes at the level of the widget:
alignment, borderStyle, buttonAlignX, buttonAlignY, buttonPosition, buttonScaleHow, buttonScaleWhen, display, fillColor, hidden, point peak, lineWidth, impression, rect, strokeColor, style, textColor, textFont, textSize, buttonGetCaption, buttonGetIcon, buttonImportIcon, buttonSetCaption, buttonSetIcon, checkThisBox, defaultIsChecked, isBoxChecked, isDefaultChecked, setAction and setFocus.

So I think the following would work for a widget:

Get the widget 0 for Radio Button1;

var f = this.getField ("Radio Button1.0");

f.Hidden = true; hide the widget;

Tags: Acrobat

Similar Questions

  • Hide an option button when a text field is filled?

    Hello

    I was wondering if someone could help with this.  I want to set up a form for a radio button is disabled when a field is filled in.

    I tried a simple Action (show/hide a field), but I would like the user to be able to change your mind - so if they begin to enter the field of information and then delete, they can always select Yes or not later.

    I hope I'm explaining this well.  I read through the discussions and the acticle of Thom Parker, but I am sorry to say that because I don't know Javascript, it is completely over my head.

    Any help would be greatly appreciated!

    Thank you.

    If you want the buttons radio is available that when the text field is empty and inactive when the text field is not empty, you can use the validation script customized for the text field:

    // Custom Validate script
    (function () {
    
        // Reset the radio button field
        var f = getField("rb1");
        resetForm([f.name]);
    
        // Set the readonly property based on this field's value
        f.readonly = event.value;
    
    })();
    

    Replace "rb1' with the actual name of the option buttons.

  • Best use of an option button n/d in collaboration with radio button groups.

    Hello

    I'm really new to LiveCycle ES, I would be too embarrassed to tell you how I came across this app.  I've attached a screenshot of a such question survey designed by our sales team.  Ideally, they want formulate me the answers to the question in such a way that the response of n/d, if selected by the user, does not allow other radio buttons on the same line selection.  Each group is a group of exclusion so that in each category is allowed that one answer, I built.  The problem is that the N/A option is its own group of radio buttons and cannot be deselected.

    Someone has advice on how to manage a radio button option N/A or may suggest a completely alternative way to handle this.  Its better if you look at the screen shot to see how hokey, it's really.

    Thank you

    Julie

    Julie,

    You copied my script, but did not change the names of path for the form variables. My root of form was 'form1 '. The root of your form is "SupplierSurvey".

    In addition, two variable shape rules of naming conventions: don't use dots (.) and don't use hyphens (-).

    I've renamed "on Page4-SurveyStart" to "Page4_SurveyStart" and removed the '. 1' extension of groups radio button exclusion to point 1.1. Accordingly, the code works for section 1.1 and you need to make the changes to the other sections.

    Steve

  • simple ' show / hide ' script using option buttons, need a bit of help

    Hello;

    I have a place in my form I need to swap out what type of form you need to fill in an area. If I don't do it, it makes the page look over crowded, and if I go off to a process 2 or 3 steps, it doesn't have enough information in each section to be worth. It is one or the other.

    At the present time, this code works well. Click on a radio button, and the form section appears and disappears. What I'm trying to do when the page loads, one of the radio buttons is selected and one of the sections of the form is visible. Then if you click the other radio button, it inverts the.

    can someone help me tweek this code if one of the buttons is selected all the time?

    Here is my script.

    < style type = "text/css" >
    {.showHide}
    position: absolute;
    background-color: #f1f1f1;
    Width: 350px;
    padding: 1px;
    color: black;
    border: 2px #999999 wiped out;
    display: none;
    }
    < / style >


    < script language = "JavaScript" >
    function setVisibility (id, visibility) {}
    document.getElementById (id).style.display = visibility;
    }

    < /script >

    < form >

    < input name = type type = radio onclick = "setVisibility ('sub3', 'inline'); setVisibility('sub4','none');" value "male" = checked > selection 1 "

    < input type = radio type value = 'female' onclick = name = "setVisibility ('sub3', 'none'); setVisibility ('sub4', 'inline');"; > selection 2

    < div id = "sub3" class = "showHide" > selection 1 content < / div >

    < div id = "sub4" class = "showHide" > selection 2 content < / div >

    < / make >

    That's the short of it with tons of other codes on anyone of dumping.

    Thank you

    You took the class attributes of option buttons that corresponding with the functions of jquery... very simple fix. I have re-uploaded the sample page with your code and the class number fixed. Seems to work well. If you have other questions give me a shout. New page updated.

  • Reading of the Page element only from option buttons

    Apex 4.2

    I have a page apex with a group of radio buttons and a text box. I try to have a user click on one of the radio buttons and the text box is read-only, depending on which is selected.

    P101_RAD_BTNS

    P101_TXT_BOX

    There are two buttons in the radio button group: active and inactive. If the user clicks on the 'Inactive' button, the text box (P101_TXT_BOX) becomes read-only. If the user then clicks on the "Active" button, the bbox text is no longer read-only.

    I tried to do this with a dynamic action, but it's not exaclty an option "read only". I tried to use "enable / disable", but it did not work. I thought to try some kind of javascript function, but I'm not sure of the syntax.

    Any help on this would be greatly appreciated. Thanks in advance.

    Assuming that the values of your P101_RAD_BTNS are for Active and N for inactive, I would call a JavaScript function custom event onchange dynamic Action on P101_RAD_BTNS.

    When:

    Event: change

    Selection type: item (s)

    Product (s): P101_RAD_BTNS

    Condition: No strings attached

    Action: Run the JavaScript Code

    Fire on loading the Page: false

    Code: f_setReadOnly (this.triggeringElement.id);

    function f_setReadOnly(pID){
      $val = $v(pID);
      if ($val == 'N') {
        $("#P101_TXT_BOX").attr("readonly",true).css("background-color", "#d9d9d9");
      } else {
        $("#P101_TXT_BOX").attr("readonly",false).css("background-color", "");
      }
    }
    

    Thank you!

    JMcG

  • Hide the "submit" button when there is nothing to report

    Hello

    I have a simple command with a 'running total' good quantities ordered at the top of the form, (FormCalc) calculated as follows:

    the sum of $ = (Products.PRODUCT_GROUPS. DATA[*]. PRODUCTS. DATA[*]. Quantity)

    If this amount is zero (that is, nothing has been ordered) so I want to ban the form submitted by e-mail. I thought that the best way to achieve this would be to hide the submit button when this field is zero and show when > 0.

    I tried adding this code for the same event in this field to calculate:

    If ($ > 0) then

    Button1.presence = "visible".

    on the other

    Button1.presence = "hidden".

    endif

    but no go.

    Sorry if it's real simple, but I would appreciate the help!

    Thank you.

    When, in the code window, you will see that it says something about Ctrl + click for the SOM expression. So if in the event code for an item, you can press CTRL, then click on another point and it will insert the correct reference in your code. We must ensure that emphasis is placed in your code when you do and the mouse cursor will turn into a broad V.

    You can do a right click in the code window and select check the syntax of the Script to see if there are problems.

    When you view the form in preview, Ctrl + J opens the JavaScript debugger. It may need a config first in Acrobat. It has been a while since I put that up. Instead of making app.alert, you can do console.println and it will write in the JavaScript console. Occasionally, you may need to debug something dealing with the development and the app.alert itself affect the focus.

    Have you thought about putting your code preSubmit event and displaying a message that nothing has been entered? Also don't xfa.event.cancelAction = true

  • Response from the user based on the capture option button

    I'm trying to capture the user's response based on the answer Yes or no to a required option button.  If they say yes, they need provide details.  Radio button values N and Y, nothing listed under the item, the captions are turned off. I used the sample LiveCyclePopUp.pdf by George Kaiser as a go - by and changed to my name of the radio button field/text and added the invisible/visible, but no luck.

    Here's what I'm trying, but it doesn't, nothing happens when I click either Yes or no, use javascript.

    Once it is not working properly, if possible, I would like to add to my button "submit" a double check to make sure if this radio button answer is Y and the text box is null, go back and give the answer, but the most important part is to get this working of the part.  Any ideas what I'm missing?  Thank you!

    switch (this.rawValue)
    {
        case "Y":
        Response25AY.presence = "visible";
        Response25AY = xfa.host.response("Please enter "YES" details (date, injury details, corrective action) below", "Q25A YES DETAILS", "Please enter "YES" details (date, injury details, corrective action) here . . . ");
        break; 
        
        case "N":
        Response25AY.presence = "invisible"; 
        break; 
    
    }
    

    Hello

    First of all, the syntax is JavaScript, so when the Response25AY setting, you must include .rawValue:

    Use of quotes in the script will give an error of syntax (around the YES).

    A small note: I would not repeated the question as a default value. It does not really add value.

    So this should be the closer:

    Response25AY.rawValue = xfa.host.response("Please enter YES details (date, injury details, corrective action) below", "Q25A YES DETAILS");
    

    Can you check the relative reference of the radio to the Response25AY object group. It may be that the reference in the script is not full enough and that it is incomplete.

    Also I place this script in the click event of the radio button exclusion group.

    Finally, check the JavaScript Console (control + J) when previewing the form, to find errors.

    Hope that helps,

    Niall

  • Show/Hide - advanced action buttons and images

    So, I thought I had a handle on usage shares advanced to show/hide, but apparently not.

    Here's the scenario:

    -Screen where the user must select one of the 6 options

    -When the user clicks on one of the 'boxes' of the option a check should appear and audio should play

    -All other "cases" should be disabled to avoid audio duplication

    Here's what I did to try to get this working:

    -' Boxes' are buttons, click on success:

    * Success box contains audio that plays (this works)

    Success of the button execute advanced action:

    > hide all other buttons on the slide (it does not)

    > display an image of a check mark in the "checkbox" which has been clicked (does not work)

    > go to the next slide (works, audio from the success box once completed)

    Thoughts? Help! Thanks in advance!

    Hello, unknown fan

    Overlay buttons will not work, so let this idea alone.

    I really want to finish this blog post on audio and widgets. Just an idea and will try to be at the time where I found the time to try something. Why don't you attach audio to an initially invisible object that you show with the same advanced action? This object can be a shape with no stroke and a fill alpha of 0% so that it is invisible to the user. You will have time before the sound can play completely before going to the next slide.

    Lilybiri

  • This option button who worked, the code no longer works?

    Hello

    I had a forum until a few months ago and got help to get option buttons to work with a button continue, causing Stop on a specific frame in the sequence. (All done it on the main timeline).

    Everything worked fine, now I keep trying it again, but regardless of which button I click, it only goes to the frame 2 where the Novice option button is supposed to go.

    I think the problem is in the line of code that reads:

    var frameNumber = 2 + Number (noviceButton.group.selectedData)

    I know he is set to only go to the area of novice, but my understanding is that since it was radio button, any click button would work, and only, I needed to type in one of the unique instance names.

    Here is the code:

    Stop();

    continueButton.enabled = false

    noviceButton.addEventListener (MouseEvent.CLICK, revealContinue);

    intermediateButton.addEventListener (MouseEvent.CLICK, revealContinue);

    expertButton.addEventListener (MouseEvent.CLICK, revealContinue);

    function revealContinue (evt) {}

    continueButton.enabled = true;

    }

    continueButton.addEventListener (MouseEvent.CLICK, clickContinue);
    function clickContinue (evt) {}
    var frameNumber = 2 + Number (noviceButton.group.selectedData)

    Stop (frameNumber);
    }

    Is there a better way to write this code so that you click any button on the radio, then press on continue, goes in and stops as appropriate frame?

    Thank you

    Babs

    Should I say turn off instead of hide... continueButton.enabled = false

    Based on the output window that appears, but nothing show, I have a moment difficult to conclude what could be bad, except that the radio buttons would need to have empty spaces assigned as their value parameters.  If they have no value I expect to see a null value appear in the output panel.

  • Display the option button if the number of rows in the table is equal to 1

    I'm having issues there buy maybe a simple script out there.

    I have a table which can have up to four lines. If the table contains only one row, an option button can be clicked to change the format/entry of cells in this row. I have to hide this box of a user option, if they added more of a line to the table and make it available again if they reduce the number of lines to one.

    I have everything else works well (radio buttons change line format, add/delete rows in the table using buttons, number of rows in the first column)

    Anyone have any ideas?

    See you soon

    Bobby

    You can place it in the code that adds more lines when running... If you have questions send the fomr to [email protected] so I can check it out...

    Thank you

    Srini

  • Thunderbird COMPLAINT: Using [back |] Forward] buttons, loses "Privacy, Options button. Exit/Startup [restart] Thunderbird needed to restore the Options button.

    Thunderbird 31.7.0 (and before) COMPLAINT: using [back |] Forward] buttons, loses "In order to protect your privacy, Thunderbird has blocked a remote content in this message." Options button. Exit/Startup [restart] Thunderbird is require to retrieve the button 'Options '. Is there another way, without rebooting? [There is no help / Feedback in Thunderbird button... so I'm reporting it via Firefox.]

    Check if this being due to any any addon.

    Restart Thunderbird in Mode safe:
    Help > restart with disabled addons.
    Whist in safe mode, run for a while to see if that happens.

    If it does not work then one of your addons can cause a conflict.
    Disable each in turn to test.
    She might need to update.

  • Could you please split the 'Options' button in two?

    Used to have a single button at the top of the e-mail message to show the remote content - of Thunderbird, but now there is an Options button with this choice as well as four more. Because so many messages force me to show the remote content, need me two clicks to continue with the message. Quite boring. If this button should be divided into a button 'Show remote content' and a button 'Other Options', things would return to the previous level of convenience. (I know I might opt for remote content automatically, but I like that another security measure). TIA!

    I agree with you.
    This has been reported as a bug.

    You can add your vote for this change.
    You vote by clicking on the link to Vote - at the top where it says:
    Importance:-normal with 4 votes (vote)
    You will need to register and sign in to vote.

  • option button missing in the Tools menu in ubuntu

    button in Firefox missing from the Tools dropdown
    using ubuntu 14.04, new intall

    downloads
    Add - ons
    set up synchronization
    etc...
    here but no option button to change settings
    as new tab jump
    or other parameters that are only FLEURIDAS under this option button

    IN Ubuntu box Option called "Preferences". This option is available under the Menu Edition

    If your using Firefox 29 and above you can see the Menu button in the right corner in your firefox

    • Menu key = > >

  • FF9 - hide window control buttons in the title bar (min, max, close) with userchrome.css?

    I use FF9. I userscript.css hide app titlebar button and orange, but the buttons control window always visible! I can't find the script working.

    I don't need min-max-closing button and used to hide if possible without extension.

    Here's screenshort:
    http://s018.Radikal.ru/i522/1201/50/f6a6ea445507.jpg

    If you use the full screen mode and you have these buttons on the Navigation bar, then you should use this code.

    #window-controls { display:none!important; }
  • How to programmatically set the option button selected on a group of radio buttons

    Hello, I have another question for you.

    How can I set an option specifically button selected programmatically on a group of Radio buttons? I think it's very simple, but I can't find a solution.

    Thank you in advance.

    You can use the SetActiveCtrl function

Maybe you are looking for

  • transfer files to a Macbook Pro

    Please bear with me. I'm not fine with a PC. I transferred my files from my Windows Vista PC to my new Macbook Pro lap top about a year using the Windows Wizard. The transfer was successful, however, I have not used my new Macbook Pro. I don't know,

  • HP Pavilion PC 500-314: how drop/reject the upgrade to Windows 10 permanently?

    How to stop 10 Windows to move or even to download on my computer? Is there a place where I can get out of this so-called "upgrade"? Thank you.

  • 15-f039wm HP: HP 15-f039wm does not

    HP 15-f039wm does not Used yesterday afternoon, all right, this morning will not turn on. 2 identical HP 15-f039wm - tried the battery and the power cord of this second work computer It not always light. Tried a Hard Reset, unplug the power cord, too

  • How to add Basler acA2040 - 180 km/kc as target in VBAI?

    I am a newbie to Labview and VBAI, which a basler ACE model acA2040 - 180 km/kc, how could I add it as a target in VBAI? I am also having a (F - 033 B AVT Guppy) camera interface IEEE1394, how could I add it as a target too? I use my own PC system, c

  • Inspiron USB 3521

    Hi, I have a Dell Inspiron 3521 with 8.1 Windows 64-bit. Lately when I plug my USB ports flash readers the laptop detects but it gives errors when installing the drivers for them. He started only recently. When I click on "update driver" it indicates