How to check Radio buttons with Differfent button values

Good Day,
I am currently trying to write a script that would hide 5 of 6 radio buttons
I have a radio button called "3. Transfer"
with values of :
     Yes;
     Supp;
     Reg; and
     do_not_transfer
as well I have a drop down called "REL.ITEM"
with values of
          3(A);
          3(B);
          4(A);
          4(B); and
          4(C)
I know how to get the value of the box and manipulate other fields
like
//START
var transfer = getField("3. Transfer").value
var relitem = getField("REL.ITEM").value
if (transfer = "Yes" || transfer = "Supp") && (relitem == "4(C)" || relitem == "4(B)"))
     getField("a. recommend").checkThisBox(0,true);
     getField("a. recommend").display = display.visible
    getField("a. I do not recommend").checkThisBox(0,false);
    getField("a. I do not recommend").display = display.hidden
else if (transfer = "do_not_transfer")
     getField("a. recommend").checkThisBox(0,false);
     getField("a. recommend").display = display.hidden
     getField("a. I do not recommend").checkThisBox(0,ftrue);
     getField("a. I do not recommend").display = display.visible
//END
I would like to make it so that if REL.ITEM != 4(A); 4(B); 4(C) that the radio box's with values of "Yes", "Supp" and "Reg" are hidden while "do_not_transfer" is still displayed and checked.
I've been going through forums, google and acrobat documentation and I can't seem to find what I'm looking for.
Thanks for your help in advance.

if (transfer = "Yes" || transfer = "Supp") && (relitem == "4(C)" || relitem == "4(B)"))
This should be:
if ((transfer == "Yes" || transfer == "Supp") && (relitem == "4(C)" || relitem == "4(B)"))
Similarly,
else if (transfer = "do_not_transfer")
should be:
else if (transfer == "do_not_transfer")
In order to work with an individual widgets of a form field, obtain an object that represents the widget using the getField method as specifically demonstrated in example #2 in the documentation: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.476.html

Similar Messages

  • How to make email link with a button with AC2 in flash cs3?

    How to make email link with a button with AC2 in flash cs3?
    I wrote this, but it does not work:
    btn_emailinfo.on (release) {
    getURL("mailto:"[email protected]");
    }

    I am guessing you put that on a frame?
    If so, the syntax is as follows:
    btn_emailinfo.onRelease = function(){
    getURL("mailto:[email protected]");
    Though, if you are placing it directly on the button itself,
    the syntax is:
    on(release){
    getURL("mailto:[email protected]");
    }

  • How to Check ADI Version With Patch Number?

    how to Check ADI Version With Patch Number?

    Hi,
    To find-out the version of 'Web ADI' , there are two methods
    Method : 1
    +. Login to Oracle E-business Suite and using 'Web ADI' , create a Document.
    +. When Excel is launched with the created Document, a Menu is created on the Toolbar in Excel called Oracle (in between Data and Window).
    +. From the Oracle menu select "About". A pop up window is displayed with the version of 'Web ADI' (something like 8.x.x.x)
    Method : 2
    +. Login into E-business Suite as System Administrator
    +. Once the Home Page is up, paste the URL below into the same Browser window (replace hostname,domain and portnumber as applicable)
    BNE ADMIN Servlet for 11i
    http://hostname:portnumber/oa_servlets/oracle.apps.bne.framework.BneAdminServlet
    BNE ADMIN Servlet for 12
    http://hostname:portnumber/OA_HTML/BneAdminServlet
    Cheers
    Ajikumar G
    http://oracleajidba.blogspot.com/
    Edited by: Ajikumar G on May 11, 2010 2:19 PM

  • How to know if implementation with a filter value exist for a BAdI in code?

    Hi all,
    Scenario:
    I created a BAdI. There will be a button on the UI to call its implementation(s); while if there is no implementation with specified filter value, this button needs to be hidden. Thus I need to know if the implementation exist before calling it.
    Question:
    In the ABAP code, how to get whether implementation with specified filter value exists for a BAdI?
    If it's possible, please help provide code.
    Thanks and regards,
    Said

    Problem solved:
    data: r_badi type ref to YOUR_BADI,
              badi_impl_num type i.
      get badi r_badi
        filters
          flt_name = fit_val.
      badi_impl_num = cl_badi_query=>number_of_implementations( badi = r_badi ).
      if badi_impl_num > 0.
        "there are badi implementation(s)
      endif.

  • How to check radio button as default on the basis of database value?

    Hi Friends,
    I have one jsp, in which I am having a field of radio button, which have two boolean values of 0 & 1. I want to check the radio button as default on the basis of database value, kindly help me out.
    Thanks a lot in advance. Please help me out.

    probably, when using struts you should do all your calculations in action class it self
    Eg. in jsp
    <html:radio name="myForm" property="myProperty" value="0">0</html:radio>
    <html:radio name="myForm" property="myProperty" value="1">1</html:radio>
    in Action class
    if (databaseValue == 0)myForm.setMyProperty(0);
    else if (databaseValue == 1)myForm.setMyProperty(1);
    rest will follow
    whatever be the value it will come selected

  • How to check radio button on view  layout?

    Hi All,
            How to check on view layout whether a radiobutton is checked or not?
    Thanks & Regards,
    Rahul Rathi

    Use the below in layout, it should work..
    <%
                    DATA: rbg       TYPE REF TO CL_HTMLB_RADIOBUTTONGROUP.
                  rbg ?= CL_HTMLB_MANAGER=>GET_DATA( request = request id = 'radio_id' name = 'radioButtonGroup' ).
    %>
    Here rbg->selection will have the selected radiobutton.
    <i>*Reward each useful answer</i>
    Raja T

  • How can i redirect to with one button to different pages!

    Hi All,
    For any application, for the first time,if a new table exists then there will no data in that table.
    based on this scenerio,in my application,i am handling apex validation staying that "you have no data. Please click here to go Reset symbol page.
    when it redirects to Reset symbol i am providing a text box and with a button. Once there enter a symbol and click on button it will inert in that table and again redirects to Home page for say-39.
    simillarly what are the functionality available in home page i had implemented same thing but only it differs page no for say-115.
    In both the scenerio's i will be redircting reset Symbol page where there can insert a symbol explained in above scenerio case.
    My problem is when i am throwing the error msg from page-39 i am redirecting to Reset symbol and when there enter symbol and click on button again i will be redirection t page -39 because the error had came from page-39.
    If the same error comes from page-115 then also i will redirecting to same Reset Symbol where there will be entering symbol and click on button, in this case it should redirect to page-115 instead of page-39 because i have got error from page-115 but not from page-39.
    How to handle the above scenerio, please help me out.
    Thanks in advance,
    Anoo.

    Hi Andy,
    Thanks for your suggestion, it is working fine..But i am facing one problem in page 115, i have two regions and both regiosn have same name but only difference is items names.. when i had tried to rediect to page-115 the umwanted one regions is showing instead of expected region. It is getting failed here bec it is rediecting to differnet region.
    Any suggestion on this!
    Thanks,
    Anoo..

  • How to control user input with a button?

    How do I control a user input from a dialog box by activating it with a button. I am saying "press zero", then when the user does press zero, it should zero the scale.

    The user has only one button they can press.  You should enable the cancel so that the dialog can output an F.  
    What you have works, but the zero will not occur until the case is activated.  If the insides of the case do not work, that is another story.  Put a pop up in the active case to convince yourself that the case is being entered.
    This, what you have, always returns T.
    Mark Ramsdale

  • How t o add Link with a button in jsp

    hi,
    I want to add link with a button in jsp. How will i do it? Is there anyone who can help me? Please help me.
    With Regards
    Bina

    Try this,
    <input type='button' onclick='window.location="a.html"'>

  • Cp6: How to stop a slide with multiple buttons in a non-linear presentation?

    Hello,
    I would be most thankful for a solution to this issue, as I haven't managed to find one yet in this forum.
    The presentation is non-linear, which means that the first slide is a kind of menu from which you can choose another slide to explore, and always return to the first one.
    Each slide has several buttons that activate various audio files, and there is an arrow button in the lower right corner to jump to the first slide.
    The problem is that the slide does not stop after some audio buttons are clicked, and continues onto the following slide (instead of pausing until the arrow button is clicked). When I click a few buttons and listen to the audio, eventually the slide automatically continues to the next slide.
    I have tried:
    adding a click box on top of that button with ''pause project until user clicks'
    changing all the buttons to Timing -> Pause after ...
    changing only the arrow button to Timing -> Pause after ...
    and don't want to make the time of the slide unnecessarily long
    Any ideas?
    Thanks in advance,
    best
    Agi

    Hi Lilybiri,
    Thank you so much for you reply, and the video instruction. Indeed, I had simple actions for the video, and now I have replaced these with advanced actions it is working fine - yey! It's a pity though that such a simple action requires such a convoluted way, especially because my presentation will be full of short audio files (= loads of scripts). I see that you are an expert in using Captivate, so this is still probably the easiest way to resolve the problem.
    Anyway, I guess my situation is exceptional, because I am using Cp for an online artwork
    Thanks again!
    Agi

  • How to check existing patches with a query

    Hi,
    I need to check the existing patches in oracle appls 11i with a sql query.
    I assume I can reference the table ad_applied_patches . But, I am not sure if the column PATCH_NAME is actually the number : 5903765 in ATG Rollup Patchset 6 (11i.ATG_PF.H.delta.6, Patch 5903765) . if not, how can i check that.
    Also, I couldn't find the proper TRM. so any help with that too would be appreciated.
    Thank you..

    Hi,
    You cannot query by name, but you can query AD_BUGS by the patch number -- See (Note: 390864.1 - How to check which Techstack patchsets have been applied on 11i or R12 ?) for details.
    If you want to check the latest Family Packs applied, see this thread.
    How to find Applied/Present Patches, Mini Packsand Family Packs in 11i
    Re: How to find Applied/Present Patches, Mini Packsand Family Packs in 11i
    Thanks,
    Hussein

  • How to check for duplicates - with a twist?

    As I'm importing music from my CD collection, is there a way to automatically check for duplicates - with an unusual twist?
    I already imported about 70 CDs using AAC format.
    I just bought a huge external drive specifically for storing my entire collection of CDs and LPs. Now that I have lots of space, I want to import everything in Apple Lossless format.
    Is there an automatic (or at least painless) way to check for duplicates as I'm importing CDs, and to have the old AAC music files over written by the new Apple Lossless files?

    Hi Clinto,
    Do you see the column headers above in itunes? They say Title, Album, Artist, etc. I don't know if it's the same for MAC but in Windows, Right Click on the column headers and click "Kind". This will display the format each song is in. If your column headers already take up all of your screen, you're gonna have to uncheck one to make room for "kind".
    Oh! and to overwrite existing files, make sure the ID3 tags are filled exactly to the old ones prior to ripping, though you don't need to fill all of them. I think you just fill the Artist, Album Artist, Album, and Title. A window will appear as you start to rip. It will ask if you want to overwrite the existing files, click "Yes". Again, don't know about Mac but it works this way in Windows.
    Message was edited by: fullcream

  • How to create a table with editable column values.

    Hi everyone,
    I think this is very simple but i'm not able to find how to do this. This is my requirement. I need to create a table with n columns and 1 row initially. user should be able to enter data into this table and click of a button should insert data into the data base table. Also there should be a button at the bottom of the table to add 1 row to the table.
    I know how to do the insert to database, but can anyone please let me know how to create a table that allows user to enter data and how to create a add 1 row button?
    Thanks in Advance!

    Raghu,
    Go through the ToolBox tutorial Create Page & Advanced table section of OAF Guide.
    Step 1 - You require to create EO & a VO based on this EO. This EO will be of DataBase table where you want to insert the data.
    Step 2 - Create a Advanced table region. (Refer this Adavanced table section for more on this)
    Step 3 - Attach this VO in the BC4J component of Adavanced Table region.
    Regards,
    Gyan

  • How do I write harmonies with different note values?

    I'm new to GarageBand and have been working with the score on the software grand piano.  At first, I'll write a melody line and then go back to add harmony.  When I try to add a harmony that has a different rhythm, GarageBand automatically changes the melody to match the rhythm of the harmony.  I'm trying to write the parts in the same staff so that the piano part can all be printed on the same page.  Any thoughts/help on how to write the piece with different rhythms in one measure?

    Have you tried to click the clef to get two lines of notation? I enter the chords in the bass clef line, if I need a different rhythm, for example: Or make the edits in piano roll.

  • How to find String associated with some long value.

    My requirement is to know the String associated with the long value, for ex 23423423 is having some value like 'skljflsjf'. Can any body findout soln for the same.
    Thanks
    ~ Chethangowda.

    My requirement is to know the String associatedwith
    the long value, for ex 23423423 is having somevalue
    like 'skljflsjf'. Can any body findout soln forthe
    same.
    Hum... I'm not 100% sure, but it seems the answeris:
    dgjldkgjfkljg
    Please, don't thank me before you confirm thething.
    Regards.Oooohhhh! That explains it! I guess I must've missed
    the part where he said he wants it translated to
    trollish. How stupid of me.You're absolutely not to blame... to be honest, if I had not read the OP 3-4 times carefully, I would not have found the solution.

Maybe you are looking for