When radio button is enabled the block should be enable

I have a 4 radio buttons and a four blocks in a same single canvas , and when ever i enable a radio button the related block should get enable .. pls help me with coidng

Use the when-radio-changed trigger. There is a RADIO BUTTON VALUE property per radio item. You can place in the trigger...
IF CONTROL.TEMP_RADIO_BUTTON = 1 THEN
SET_BLOCK_PROPERTY ('BLOCK1', ENABLED, PROPERTY_TRUE);
ELSIF...
END IF;
Hope this helps...

Similar Messages

  • Radio buttons on form are not always Re-enabling when i Tell them to re-ena

    I have a game setup where there is 1 server and 2 clients. The 2 clients each have a gui where they have 3 radio buttons to select from. Once they make their choice then their buttons are re-enabled when the server sends the message "#newround" to the 2 clients.
    this.sendToAllClients("#NewRound");
    when the clients receive this message:
    else if(copyMessage.startsWith("#NewRound")){
    //Re-enable the radio button choices and the play button.
    jButtonPlay.setEnabled(true);
    jRadioRock.setEnabled(true);
    jRadioPaper.setEnabled(true);
    jRadioScissors.setEnabled(true);
    newRound();
    It works 90% of the time but sometimes it doesn't re-enable any of the radio buttons on 1 of the 2 forms and sometimes it only re-enables 2 of the 3 radio buttons on the forms.
    Anyone know why this would be?

    Are you executing this code in a separate thread? If so, Try enabling them from the event dispatch thread. Refer to SwingUtilities.invokeLater() and SwingUtilities.invokeAndWait() for more info.

  • I'm running Safari 6.0.5 - Mac OS 10.8.4 -- when I load my gmail the block around the DELETE and MOVE tabs are not usable - press buttons but nothing happens. ???

    I'm running Safari 6.0.5 - Mac OS 10.8.4 -- when I load my gmail the block around the DELETE and MOVE tabs are not usable - press buttons but nothing happens. ???
    I can see the block (flashes) and the buttons are no longer usable.
    I have Empted Cache but doesn't seem to help.

    From the Safari menu bar, select
    Safari ▹ Preferences ▹ Extensions
    Turn all extensions OFF and test. If the problem is resolved, turn extensions back ON and then disable them one or a few at a time until you find the culprit.
    If you wish, you may be able to salvage the malfunctioning extension by uninstalling and reinstalling it. Its settings will revert to their defaults. If the extension still causes a problem, remove it permanently or refer to its developer for support.

  • Is it possible to fire an event when radio buttons are clicked in a report?

    Hi All,
    I have got a requirement. In the selection screen i have certain input fields and three radio buttons. When radio buttons are clicked i have to grey out certain input fields. Is it possible to fire an event when i write program through se38??
    Thanks
    Rakesh

    Hi Rakesh,
    Check this code.
    SELECTION-SCREEN BEGIN OF BLOCK FINPUT WITH FRAME TITLE TEXT-001.
    PARAMETERS  : FILENAME(132) TYPE C LOWER CASE  NO-DISPLAY,
                  FDLOAD RADIOBUTTON GROUP RAD1
                  USER-COMMAND R1 ,
                  FUPLOAD RADIOBUTTON GROUP RAD1 .
    SELECTION-SCREEN END OF BLOCK FINPUT.
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-002.
    PARAMETERS : FUNAME(132) TYPE C LOWER CASE MODIF ID AA.
    SELECTION-SCREEN PUSHBUTTON /33(30) ACTION USER-COMMAND
                     BTNACT MODIF ID AA VISIBLE LENGTH 8 .
    SELECTION-SCREEN PUSHBUTTON 43(30) CANCEL USER-COMMAND
                     BTNCAN MODIF ID AA VISIBLE LENGTH 8  .
    SELECTION-SCREEN END OF BLOCK B1.
    SELECTION-SCREEN BEGIN OF BLOCK B2 WITH FRAME TITLE TEXT-002.
    PARAMETERS : FDNAME(132) TYPE C LOWER CASE MODIF ID BB.
    SELECTION-SCREEN PUSHBUTTON /33(30) ACTIONS USER-COMMAND
                     BTNACT1 MODIF ID BB VISIBLE LENGTH 8.
    SELECTION-SCREEN PUSHBUTTON 43(30) CANCELS USER-COMMAND
                     BTNCAN1 MODIF ID BB VISIBLE LENGTH 8.
    SELECTION-SCREEN END OF BLOCK B2.
    DATA : ACTNAME(8) TYPE C,SCRGRUP(2) TYPE C.
    INITIALIZATION.
    ACTIONS = 'Download'.
    CANCEL = 'Cancel'.
    ACTION = 'Upload'.
    CANCELS = 'Cancel'.
    ACTNAME = 'Download'.
    SCRGRUP = 'AA'.
    AT SELECTION-SCREEN ON RADIOBUTTON GROUP RAD1.
    IF FUPLOAD = 'X'.
         MOVE 'Upload' TO ACTION.
         MOVE 'Upload' TO ACTNAME.
    ELSEIF FDLOAD = 'X'.
         MOVE 'Download' TO ACTION.
         MOVE 'Download' TO ACTNAME.
    ENDIF.
    AT SELECTION-SCREEN.
    IF SY-UCOMM = 'R1'.
        IF ACTION = 'Download'.
          SCRGRUP = 'AA'.
         MESSAGE S007(ZMESSAGE).
        ELSEIF ACTION = 'Upload'.
          SCRGRUP = 'BB'.
         MESSAGE S008(ZMESSAGE).
       ENDIF.
    ELSEIF SY-UCOMM = 'BTNCAN' OR SY-UCOMM = 'BTNCAN1'.
      LEAVE PROGRAM.
    ENDIF.
    *AT USER-COMMAND.
    CASE SY-UCOMM.
       WHEN 'ACTIONS'.
         LOOP AT SCREEN.
           IF SCREEN-NAME = 'FUNAME'.
           ENDIF.
         ENDLOOP.
    ENDCASE.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR FUNAME.
      PERFORM call_filedialog CHANGING FUNAME.
    PERFORM call_filedialog CHANGING FUNAME.
    AT SELECTION-SCREEN OUTPUT.
    LOOP AT SCREEN.
    IF SCREEN-GROUP1 = SCRGRUP AND ACTNAME = 'Download' .
      SCREEN-ACTIVE = 0.
      MODIFY SCREEN.
    ENDIF.
    IF SCREEN-GROUP1 = SCRGRUP AND ACTNAME = 'Upload'.
      SCREEN-ACTIVE = 0.
      MODIFY SCREEN.
    ENDIF.
    ENDLOOP.
    FORM call_filedialog CHANGING fname.
      DATA: li_filetable TYPE STANDARD TABLE OF file_table,
        lv_return TYPE i,
        lw_filetable TYPE file_table.
      CALL FUNCTION 'TMP_GUI_FILE_OPEN_DIALOG'
        TABLES
          file_table = li_filetable
        EXCEPTIONS
          cntl_error = 1
          OTHERS     = 2.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
      READ TABLE li_filetable INDEX 1 INTO lw_filetable.
      fname = lw_filetable-filename.
    ENDFORM.                    "call_filedialog
    Reward Points, if useful.
    Regards,
    Manoj Kumar

  • Having trouble figuring out how to forward text messages.  Can someone tell me how to do that?  Where the forward button.  You used to be able to hit forward and put radio button on all the messages.  The screen looks blank to me.

    In the new iOS7, Having trouble figuring out how to forward text messages.  Can someone tell me how to do that?  Where the forward button.  You used to be able to hit forward and put radio button on all the messages.  The screen looks blank to me.

    In the new iOS7, Having trouble figuring out how to forward text messages.  Can someone tell me how to do that?  Where the forward button.  You used to be able to hit forward and put radio button on all the messages.  The screen looks blank to me.

  • Radio button in two different blocks in the selection screen

    Hi folks,
             In my selection screen i have two selection blocks. First block to create a new document no, second block to display the list of the created document numbers.User has to go any one of that..can i keep first radio button in the first selection block and the second radio button in the second block...I have already tried..but its not allowing..is this possible..if so please suggest me how...
               Thanks,
               Shyam.

    Hi,
    Hope the following logic will help u.
    selection-screen begin of block input with frame title text-000.
    parameters :desktop     radiobutton group rg_f user-command rg_f,
                       in_file type ibipparms-path modif id ps,
                menu     radiobutton group rg_f,
                       sys_file type ibipparms-path modif id as default  '/sapia/iface/in/comm/sapfin/' .
    selection-screen end of block input.
                                        AT SELECTION-SCREEN.                                       *
    at selection-screen.
      case sy-ucomm.
        when 'RG_F' or 'RG_B'.
          perform f_toggle_finputs.
        when 'ONLI'.
          if ( desktop = c_x and in_file is initial ) or ( menu = c_x and sys_file is initial ).
            message e100.
          endif.
      endcase.
    FORM    :  f_toggle_finputs
    loop at screen.
        if screen-group1 = 'PS'.
          if desktop = c_x.
            screen-input    = 1.
             sys_file = c_server_path.
          else.
            screen-input    = 0.
          endif.
        endif.
        if screen-group1 = 'AS'.
          if menu = c_x.
            screen-input    = 1.
            clear: in_file.
          else.
            screen-input    = 0.
          endif.
        endif.
        modify screen.
      endloop.
    endform. "f_toggle_finputs
    Thanks.

  • Why not autoskip for radio buttons? and the  update_allowed FALSE issue

    I would so dearly love there to be autoskip for radio buttons. (forms 11.1.1.4 jre 6...24) There is no autoskip property for the radio group nor for the individual buttons.
    I don't find an easy way to emulate it either. Or am I missing something?
    Anyone else solve this problem already? When the user selects a radio choice I want the focus to move
    to the next enabled item on the form. You can do this with text items but not with radio groups. (In some cases the radio group has a when-radio-changed trigger
    that enables/disables following items). This would all be a lot easier if radio groups just had autoskip. I wonder why they don't?
    BTW the following has cost me a huge amount of time. In 6i it was the case in my experience that if you
    disabled an item like this:
    PROCEDURE disable_item (myitem in varchar2) IS
    BEGIN
         copy(null,myitem);
            set_item_property(myitem,enabled,property_false);
         set_item_property(myitem,visual_attribute,'DISABLED');
    END;Then that could be reversed as so (the weird thing was you had to set navigable also despite not
    having changed it yourself.
    PROCEDURE enable_item (myitem in varchar2) IS
    BEGIN
      set_item_property(myitem,enabled,property_true);
      set_item_property(myitem,navigable,property_true);
      set_item_property(myitem,visual_attribute,'ENABLED');
    END;But in 11.1.1.4 I had lots of trouble with Lov's not rising after the item had been disabled and then
    re-enabled. No error message. Just didn't do it. Eventually I figured out that what happens is that
    after disabling an item the item as also non-updateable. This was not the case in 6i. So then
    the enable item code has to be something like this: [Note despite that not update_allowed it did not
    automatically grey out the item firefox 3.6.17 and it still has to be done programmatically.]
    PROCEDURE enable_item (myitem in varchar2) IS
    BEGIN
      set_item_property(myitem,enabled,property_true);
      set_item_property(myitem,navigable,property_true);
      set_item_property(myitem,visual_attribute,'ENABLED');
      set_item_property(myitem,update_allowed,property_true);
    END;

    Well right now 11.1.1.4 for autoskip for radio buttons this seems to be working ok. Crossing my fingers!
    a block level when-radio-changed trigger with after scope (where item level when-radio-changed triggers
    have before scope) with a simple next_item in there.
    Where I was having problems before was next_item-ing onto disabled items. There was some kind of issue
    with lov's. I'm having less trouble raising the lov programmatically. but also I had the problem that
    items were getting set non-update_allowed without my realization.
    when new item instance:
    declare
         currfield varchar2(70) := null;
    begin     
         currfield := :system.trigger_field;
    if (get_item_property(currfield,UPDATE_ALLOWED) = 'TRUE')
         and (get_item_property(currfield,UPDATE_PERMISSION) = 'TRUE') then
           list_values;
    else
         mess(currfield || ' UPDATE not allowed');
    end if;
    end;(mess is my program to display alerts.)

  • Disabling radio buttons in multi record block

    Need to be able to disable/enable one or more radio buttons in a group dynamically in multiple record block. Tried setting enabled properties but it sets for all records in the block. At the very least, I need to reset an item using radio to previous value if setting is invalid but when-radio-changed has already set value. Thank you.

    Your one row record has 5 items, then I assume empno, ename, ssn, phone, deptno 5 items on your multi-record block.
    you entered first row record as,
    empno, ename, ssn, phone, deptno
    100 John Smith 123-45-9999 234-333-9999 2
    101 Al Brown 222-34-1111 123-456-7890 2(duplicated)
    You want your code to duplicate the second deptno record as 2 instead of typing in, right?
    If so, then you add KEY-NEXT-ITEM trigger on item :phone, inside put,
    go_item('deptno');
    duplicate_item;
    It will copy the first deptno record 2 for the second record as showed above.

  • How do I make each Radio button appear in the tab order?

    When users tab through the form, the tab only highlights the first radio button of a group before moving to the next field or group of fields.
    Example: the user is asked for the following information:  LastName, Gender (M/F radio buttons), and BirthDate.
    When tabbing through the form, users are taken from from the LastName field to the Male radio button, to the Birthdate Field. Never does the tab allow them to select Female unless they click it with the mouse.
    It seems like this should be a simple fix, but I can't find it anywhere!
    Thanks for your help.

    That's the way they work. Think of a radio button group as a dropdown or list box. When any of these types of fields receives the focus, you can use the arrow keys to move through the options and the tab key moves to the next field.
    If you set up the group using check boxes instead, giving each in the group the same name but different export value, they will behave as you want. A group of checkboxes will behave a bit different than a group of radio buttons, but it's close.

  • Passing radio button values to the backing bean

    Hi all,
    I need help with passing group of radio button values to a backing bean. I have page which has a dataTable to display a list of alerts. For each alert there are two radio buttons (YES & No) to indicate whether the email option for each alert is set or not. Now when i change the radio buttons and click on a submit button i should be able to pass these radio button values into action method in which i need to update the alerts. This is my code
    <h:form>
    <t:dataTable id="sub"
                       var = "alert"
                       value =#{subscriberBean.alertsList}">
    <t:column>
    <h:outputText value="#{alert.name}" />
    </t:column>
    <t:column>
    <h:selectOneRadio id="subscriptions" value="#{alert.sendEmail}">
      <f:selectItem id="item1" itemLabel="Yes" itemValue="0" />
      <f:selectItem id="item2" itemLabel="No" itemValue="1" />
    </h:selectOneRadio>
    </t:column>
    <t:dataTable>
    <h:commandButton id="button1" value="Save changes" actionListener="#{subscriberBean.updateAlert}" />
    </h:form>
    {code}
    I tried to to do something like below and get the updated list in the action event in the backing bean but it didn't work.
    {code}
    <h:commandButton id="button1" value="Save changes" actionListener="#{subscriberBean.updateAlert}" >
    <f:attribute name="alerts" value="#{subscriberBean.alertsList}"/>
    </h:commandButton>
    // Backing Bean
    public void updateAlert(ActionEvent e){
    List<Alert updateList = (List<Alert>)event.getComponent().
                    getAttributes().get("alerts");
    {code}
    Can someone advise how to get these update radio button values in my actionListener method.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    The value the user selected will be written to the sendEmail property of the managed bean named alert. We know this because you set the value attribute to #{alert.sendEmail}. So simply access the managed bean in your action method.

  • ValueChangeListener on a Radio button doesnot populate the list

    Hi all,
    First thing, thanks everybody for helping me out with this project.I have been struggling with populating the drop down list for quite some time now.
    On my page...I have 2 radio buttons New and Existing.
    Clicking on New should do nothing.
    Clicking on Existing RB should display the "hidden div" which is a drop down list with values from the DB.
    New works fine.
    When I click on Existing RB for the first time, the "hidden div" is displayed and the drop down list looks empty .
    On the server console though, it appears that the list size is 14 and has the values from the DB.
    Only when I toggle back and forth between New and Existing that the List is populated with values.
    select.jsf
    <h:form id="form1" styleClass="form">
    <h:selectOneRadio id="radio1" styleClass="selectOneRadio" value="#{selectBean.newOrExisting}"  onclick="return syncRadio();"
    immediate="true"  valueChangeListener="#{selectBean.doSave}" onchange="submit()">
    <f:selectItem itemValue="new" itemLabel="New" id="one" />
    <f:selectItem itemValue="exist" itemLabel="Existing" id="two" />
    </h:selectOneRadio>
    <tr>
    <td align="right"><div id="wait"  style="visibility:hidden;">Select an existing Application</div></td>
    <td align="left"><div id="wait1"  style="visibility:hidden;" >
    <h:selectOneMenu id="exist" styleClass="selectOneMenu" value="#{selectBean.selected}">
    <f:selectItems value="#{selectBean.list1}"></f:selectItems>
    </h:selectOneMenu>
    </div>
    </td>
    </tr>
    function syncRadio() {
    /* retrieve the form object */
    var f = document.getElementById("form1");
    /* retrieve the collection of options for the radio button in the form */
    var r = f.elements["form1:radio1"];
    if (r && r.length > 0) {
    if (r[0].checked == true || r[1].checked == false){
    document.getElementById("wait").style.visibility="hidden";
    document.getElementById("wait1").style.visibility="hidden";
    else if (r[1].checked == true || r[0].checked == false){
    document.getElementById("wait").style.visibility="visible";
    document.getElementById("wait1").style.visibility="visible";
    return true;
    //f.submit();
    selectBean.java
    public void doSave(ValueChangeEvent event) {
    logger.debug("value event method");
    String value = (String) event.getNewValue();
    if (value != null) {
    this.fullName = value;
    logger.debug("fullname" +this.fullName);
    if (this.fullName.equalsIgnoreCase("exist")){
    try{
           logger.debug("hello there");
           this.list1 = new ArrayList<SelectItem>();
            this.list1.clear();
    List test = this.getOwners();
    SelectItem[] myitem = new SelectItem[test.size()];
          for(int i=0;i<test.size();i++)  {
             Object[] arrayOne  = (Object[])test.get(i);
                        try{
                             SelectItem tmp = new SelectItem();
                             tmp.setLabel(arrayOne[0].toString()+(String)arrayOne[1]);
                             tmp.setValue((Integer)arrayOne[0]);
                             myitem[i] = tmp;
                                    this.list1.add(myitem);
    }catch(Exception e){
              logger.debug("$$$$$$$$$");
              logger.debug(e.getCause());
              e.printStackTrace();
    logger.debug("List" +this.list1.size());
    catch(Exception e){
    logger.debug("%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%");
         logger.debug(e.getCause());
         e.printStackTrace();
    //FacesContext context = FacesContext.getCurrentInstance();
    //context.renderResponse();
    }It would be of really great help if you could help me solve this.
    This has been a show stopper on my page for quite some time.
    Thanks Again                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    I found the problem.
    The real culprit was my Javascript which I used to show and hide the list.
    Now, the valueChangeListener on my drop down list also works fine.
    But, I have to find a way to hide/display the list dynamically based on the radiobutton selected.
    Iam planning on using the rendered attribute.
    Please let me know if anything else is more suitable.
    Please.
    Thanks.

  • Is there a way to automatically align and make same size of check boxes/ radio-buttons like in the image below?

    I create PDF forms on daily basis for multiple people around but still, I create a table in Word and then manually convert it to PDF. I'm using Acrobat X and then I manually create radio buttons or check boxes in each cell of the table so aligning those buttons or check-boxes in the same line is a problem. I know there would be some solution to this but can anyone guide me to that? Also, making the same size of the radio-buttons of check boxes likewise ? ? ?
    Please see the image above and advise how to align them in the same line and how to make them same size using Acrobat X?
    Your help appreciated.

    You should create these fields using the Place Multiple Fields command, so that they are aligned properly and all the same size. Read about it here:
    http://help.adobe.com/en_US/acrobat/X/pro/using/WS8C2DDC1C-C174-4ad1-893F-B14A1C0289B4.htm l
    Read how to align and distribute fields here:
    http://help.adobe.com/en_US/acrobat/X/pro/using/WS6D2D2BFC-6F69-4a8b-BDE6-8043D7EE240D.htm l

  • How do I enable the button to use the tree list in excel? (Enable the list type: Tree enabled in Office 2013 - VSTF 2013)

    Hi, I was looking to see if anyone knows how I can troubleshoot my connection problem with TFS view in excel. I'm trying to  produce a tree view in Office 2013 as described in the following KB -
    https://msdn.microsoft.com/en-us/library/dd286627.aspx
    I have followed the instructions on the KB all the way up to : 'Add backlog items and tasks and their parent-child links using a tree list' and at this point I can't seem to get it to work as the button is greyed out.
    Note that I have completed steps 1-6 for the previous procedure... all 6 steps work just fine. However on step 2 of the second procedure - the instructions state I should be able to 'Add Tree Level' - However the button is greyed out.
    Anyone know what I need to do to enable the button to use the tree list in excel? 
    Frank

    Frank,
    I believe your issue is that you have opened a Flat query and are trying to add tree levels. A flat query is just that and you cannot change the query type from Excel.
    The second process is managing a backlog (which is a tree). TFS web access has a link on the backlog view to create a query. That query will be a "tree of work items" query that returns the items in the backlog including their parent-child relationships.
    This type of query supports the Add Tree Level and Add Child functionality as does a new Input List (not bound to an existing query).
    "You will find a fortune, though it will not be the one you seek." -
    Blind Seer, O Brother Where Art Thou
    Please Mark posts as answers or helpful so that others may find the fortune they seek.

  • Using radio buttons to set the value of a text field

    I have a set of three radio buttons on a form (a performance evaluation). If I select the "1" button, I want 1 to populate in the text field. The same goes for "2" and "3"
    I have not been able to code the buttons correctly for this scenario, and can't figure out how to do it.
    From a previous post, I was able to get check boxes to do what I want, but they won't really work because I can't set them so that only one back may be selected.
    Can this be done?
    Thanks!

    The information for this specific case isn't anywhere. The best that you can do is understand what triggers each of the events, then ask yourself which of those triggers are pertinent to your current issue.
    http://help.adobe.com/en_US/livecycle/es/LiveCycle_Designer_Scripting_Basics.pdf ...
    The above link contains a great deal of information regarding how to use scripts within Livecycle Designer. The section that you would be most interested in in order to learn about the available events can be found under "Events >> List of Events".
    You needed to use the initialize event so that the text field would be updated when the document was opened. This ensure that the text field has the value of the default radio button when it is opened for the first time.
    You needed to use the change event so that, when the use selects a different radio button, the text field is updated with the new value.
    That's about it. That PDF file that I link to above is a bit long, but it's a great place to get a good grasp of the basics of scripts.
    If you have any further questions, feel free to ask. =) Have a good one.
    - Scott

  • Displaying a field when radio button clicked

    I am new using Acrobat and JavaScript and am trying to create a form. I have a radio button called Rate with 2 values, Pay and Bill. I also have 2 text boxes, called Pay_Rate_Fillin and Bill_Rate_Fillin which are initially set up as hidden fields. I would like for the Pay_Rate-Fillin text box to be visible when Pay is select and hidden otherwise. Then if Bill is selected the Bill_Rate_Fillin text box is visible. I have tried many different scripts and I just can't seem to get this right.

    Place this code as Rate's custom calculation script:
    var rate = event.value;
    if (rate=="Pay") {
        this.getField("Pay_Rate_Fillin").display = display.visible;
        this.getField("Bill_Rate_Fillin").display = display.hidden;
    } else if (rate=="Bill") {
        this.getField("Pay_Rate_Fillin").display = display.hidden;
        this.getField("Bill_Rate_Fillin").display = display.visible;

Maybe you are looking for