If scritp with Radio button - Please help

Hi there.
Please help me.
in my form I have 4 Radio Buttons:
1. Married
2. Single
3. Divorced
4. Widowed
(only one can be checked ... )
now, there are following 6 input fields regarding the spouse.(like: name, family name etc....)
im looking for script that all all other 6 fields regarding the spouse will be invisible. BUT if user checked:married, (only Married) all other 6 fields will become,ready for input + required.
Thanks for your help.
Please guied me step by spet, as im new with that.

Have you tried to create 4 radio buttons all with the same name but different "Export" values and observed what happens when you check each button?
You can see the value of the radio button group if you use the JavaScript console.
Assuming you have named the radio buttons "Marital Status" then you can use the following code in the JavaScript console to observe the value available to JavaScript:
this.getField("Marital Status").value;
The Acrobat JavaScript Console (Your best friend for developing Acrobat JavaScript
You then need to decide with what action to use to test the value of the radio button group and adjust the fields as needed.
Since you will be using the same script for all radio buttons, I would suggest using a document level function to manipulate the spouse's fields. I would also use a hierarchical field name for the fields. Prefix all the spouse's field with "Spouse.".
You then could use the following document level function in the "Mouse Up" action for each of the buttons:
function CheckMaritalStatus(cStatus) {
this.resetForm(["Spouse"]);
this.getField("Spouse").required = false;
this.getField("Spouse").display = display.hidden;
this.getField("Spouse").readonly = true;
if(cStatus == "Married") {
this.getField("Spouse").required = true;
this.getField("Spouse").display = display.visible;
this.getField("Spouse").readonly = false;
return true;
You then use the following code for the "Mouse Up" action in each of the Radio Buttons:
CheckMaritalStatus(this.getField(event.target.name).value);
Entering Document Scripts

Similar Messages

  • New instances of an object with a button - please help

    Hi
    Hope anyone can help with a simple sample/solution.
    Think i seach the entire world !!!
    Want to make fx. 40 instances of an object ( chosen by user ) - in the "old Flash" there was eval();
    - as i remember I could create multiple instances of an object like this:
    int numberOfBikes = 40;
    for (i = 0;i < numberOfBikes;i++){
    newInstanceName = eval("bike"+i) ; // this is my only problem in the world - for now :o(
    Bike newInstanceName = new Bike() ; // newInstanceName translated to example "bike12"
    newInstanceName.moveTheBike(some arguments) ;
    // YEAH - then I had 40 different bikes
    Please - if anyone have a simple solution for that single line of code - 500 lines of complex array coding does not help a newborn !!!

    You are at once on my Buddy list :o)
    Now i have 40 bikes running all over town - looks pretty cool
    This worked in my run method:
              int i;
              int numberOfBikes = 40;
              test bikes[] = new test[numberOfBikes];
              for (i = 0;i < numberOfBikes;i++)
                bikes[i] = new test();
              }This code in my while loop to call the Class method:
              for (i = 0;i < numberOfBikes;i++)
                         bikes.goAhead(gcon, H, V);
    Cool - was a MEGA help !!!                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Need Help on JSP Radio Buttons please

    How do i create radio buttons on a HTML file to link to other JSPs??
    do i have statements in my HTML that gets a JSP i.e option and then that runs the links to the other pages?
    please help very stuck and confused. Thanks

    Hi ..kinda new to java and jsp , worked with abit ...
    I have a problem have to solve. I have 2 jsp pages..one is for header displays a picture at top and has four radio buttons choices. Then at bottom of window is other jsp this jsp displays the result of whatever is choosen fromt he four buttons at top in the other frame from 1st jsp.
    I kinda have part of answer from your post about onclick. But how do i pass a value from the 1st jsp to the 2nd. jsp. There is some code in the second page that displays certian pages depending on what the value is from the four radio buttons.
    any help much appreciated :)

  • How do I move a table with radio buttons to another page?

    I created a document in Word, converted to PDF, added a page (which was created in Adobe Forms Central, only way to get a table with radio buttons - see below for example).
    The issue I have is whilst using the Trial of Adobe XI Pro I was able to move this table up a page and place it under the header.  Now that the trial has run out I cannot complete this task with other documents.
    I started to edit using LiveCycle but it won't let me move the table.
    We have Acrobat X Pro but when I go to edit, it directs me to edit in LiveCycle.  I have tried moving the table using all of these programs.  Can anyone help/guide please? 

    Thank you for your reply.  I am new to editing a pdf and using these programs. I have subscribed to Acrobat XI Pro.  When I try to edit the document it directs me to LiveCycle.  I cannot move the table in LiveCycle.  It won't let me, and I cannot make changes in XI Pro as I did in the trial as it directs me to edit in LiveCycle.  Am going in circles.

  • Dynamic table with radio buttons

    I need to load a dynamic table with radio buttons that allow
    the user to select an item in the table. I need to have it add a
    radio button with a unique identifier for each table item.
    For example: the table will load all of the seminars
    locations available in a certain state, the radio button will allow
    the user to select the city in which they would like to attend and
    that value will get passed to the registration page. The value of
    each radio button would be equal to the location_id in the database
    for each of the locations in the table (The table includes the
    date, day, venue, address, hotel info, etc. details for each city.)
    When I add dynamic radio buttons and set the value to the
    location_id in the database, it allows the user to select multiple
    radio buttons. I cannot find any information on how to
    resolve.....??
    Any help is appreciated.

    beanieboo wrote:
    > I need to load a dynamic table with radio buttons that
    allow the user to select
    > an item in the table. I need to have it add a radio
    button with a unique
    > identifier for each table item.
    >
    > For example: the table will load all of the seminars
    locations available in a
    > certain state, the radio button will allow the user to
    select the city in which
    > they would like to attend and that value will get passed
    to the registration
    > page. The value of each radio button would be equal to
    the location_id in the
    > database for each of the locations in the table (The
    table includes the date,
    > day, venue, address, hotel info, etc. details for each
    city.)
    >
    > When I add dynamic radio buttons and set the value to
    the location_id in the
    > database, it allows the user to select multiple radio
    buttons. I cannot find
    > any information on how to resolve.....??
    > Any help is appreciated.
    Give each radio button the same name
    <input type="radio" name=theLocation" value="<?php
    $recordset['location_id'] ?>">
    Mick

  • How to create authorisation object for save button please help in abap

    how to create authorisation object for save button please help in abap

    Hi
    In general different users will be given different authorizations based on their role in the orgn.
    We create ROLES and assign the Authorization and TCODES for that role, so only that user can have access to those T Codes.
    USe SUIM and SU21 T codes for this.
    Much of the data in an R/3 system has to be protected so that unauthorized users cannot access it. Therefore the appropriate authorization is required before a user can carry out certain actions in the system. When you log on to the R/3 system, the system checks in the user master record to see which transactions you are authorized to use. An authorization check is implemented for every sensitive transaction.
    If you wish to protect a transaction that you have programmed yourself, then you must implement an authorization check.
    This means you have to allocate an authorization object in the definition of the transaction.
    For example:
    program an AUTHORITY-CHECK.
    AUTHORITY-CHECK OBJECT <authorization object>
    ID <authority field 1> FIELD <field value 1>.
    ID <authority field 2> FIELD <field value 2>.
    ID <authority-field n> FIELD <field value n>.
    The OBJECT parameter specifies the authorization object.
    The ID parameter specifies an authorization field (in the authorization object).
    The FIELD parameter specifies a value for the authorization field.
    The authorization object and its fields have to be suitable for the transaction. In most cases you will be able to use the existing authorization objects to protect your data. But new developments may require that you define new authorization objects and fields.
    http://help.sap.com/saphelp_nw04s/helpdata/en/52/67167f439b11d1896f0000e8322d00/content.htm
    To ensure that a user has the appropriate authorizations when he or she performs an action, users are subject to authorization checks.
    Authorization : An authorization enables you to perform a particular activity in the SAP System, based on a set of authorization object field values.
    You program the authorization check using the ABAP statement AUTHORITY-CHECK.
    AUTHORITY-CHECK OBJECT 'S_TRVL_BKS'
    ID 'ACTVT' FIELD '02'
    ID 'CUSTTYPE' FIELD 'B'.
    IF SY-SUBRC <> 0.
    MESSAGE E...
    ENDIF.
    'S_TRVL_BKS' is a auth. object
    ID 'ACTVT' FIELD '02' in place 2 you can put 1,2, 3 for change create or display.
    The AUTHORITY-CHECK checks whether a user has the appropriate authorization to execute a particular activity.
    This Authorization concept is somewhat linked with BASIS people.
    As a developer you may not have access to access to SU21 Transaction where you have to define, authorizations, Objects and for nthat object you assign fields and values. Another Tcode is PFCG where you can assign these authrization objects and TCodes for a  profile and that profile in turn attached to a particular user.
    Take the help of the basis Guy and create and use.
    Regards
    ANJI

  • Replacing SAP Object Selector with Radio Button in ALV table in WD ABAP

    Hi All,
    I have a view in Webdynpro ABAP which displays data in an ALV table view (using SALV_WD_TABLE component).
    By default we have the SAP Object Selector for selecting a particular row of the table. This has to be replaced with radio buttons.
    I mean instead of using the SAP Object Selector, I need radio buttons at the start of each row.
    What I have thought of is to make the SAP Object Selector Invisible and create another attribute for the radio button in the node which contains ALV output data.
    Can you please let me know how to remove the SAP Object Selector from ALV output table and also how to include a column with radio button in the ALV output table.
    Thanks and Regards,
    Sayan Ghosh

    Hi Lekha,
    I am working with HRASR00_PROCESS_EXECUTE WD component of MSS application. In order to generate the data, this in turn calls another component called DATAOBJECTPROVIDER. I need to make the table selection as none and replace the SAP Object Selector with the radio button.
    Do you know under which method in DATAOBJECTPROVIDER do we need make the changes. I tried to search all the methods but couldnt understand a suitable one.
    Thanks and Regards,
    Sayan Ghosh

  • I downloaded the new version of firefox, now my flash player wont work, the html text box is gone and so is the back and forward buttons. please help??

    I downloaded the new version of firefox, now I cant watch any movies, the html text box is totally gone, and so is the back and forward website buttons, please help? can i just have the old version back?

    Not sure whether for instance you initially had a Yahoo optimised version of Firefox, and have now overwritten it with an official Mozilla version. Although the Mozilla version should NOT add unwanted features, but the Yahoo version may well do.
    If you merely need to find the Yahoo emails page quickly just add it as a bookmark or as a bookmark on the Bookmarks toolbar and make sure that is visible.
    Clicking the star icon on the location bar whilst looking at your emails will bookmark the page.
    * [[How to use bookmarks to save and organize your favorite websites]]
    * [[Bookmarks Toolbar - Display your favorite websites at the top of the Firefox window]]
    I do not use Yahoo myself,and am not sure what add-ons are available. You could search yourself using
    * FirefoxButton -> add-ons
    ** see [[Find and install add-ons to add features to Firefox]]
    ** examples [https://addons.mozilla.org/en-us/firefox/addon/yahoo-toolbar/ yahoo toolbar] & [https://addons.mozilla.org/en-us/firefox/addon/yahoo-mail-notifier/ mail notifier]
    * also look at Yahoo's own information such as http://help.yahoo.com/tutorials/toolbar/cl3/c3_ff_toolbar1.html

  • How to render  radiogroup with radio buttons spread out across 2 columns

    Hi,
    I would like to render the following html using JSF (Renderer ??). How do I do that ?
    Basically it has a radiogroup with radio buttons spread out across 2 columns. and with an
    attached input text box along with
    the label for each radiobutton in the radio group.
    Any pointers or examples I can look at to do something like this is appreciated.
    <selectOneRadio does not achieve my functionality nor does MyApacheFaces with a layout="spread" option.
    TIA,
    Vijay
    Here is the html source for what i want to achieve:
    <TABLE border="0" cellpadding="0" cellspacing="1">
         <TBODY>
              <TR>
                   <TD></TD>
                   <TD><span id="searchForm:searchText1">Application Number</span></TD>
                   <TD></TD>
                   <TD><span id="searchForm:searchText2">Agreement Number</span></TD>
              </TR>
              <TR>
                   <TD><input type="radio" id="searchForm:customerSearchRadioGroupId" value="applicationNumber"/></TD>
                   <TD><input type="text" id="searchForm:applicationNumberId" value=""/></TD>
                   <TD ><input type="radio" id="searchForm:customerSearchRadioGroupId" value="agreementNumber"/></TD>
                   <TD><input type="text" id="searchForm:agreementNumberId" value=""/></TD>
              </TR>
              <TR>
                   <TD></TD>
                   <TD><span id="searchForm:searchText3">Infolease Cust.#</span></TD>
                   <TD></TD>
                   <TD><span id="searchForm:searchText4">eCredit Cust.#</span></TD>
              </TR>
              <TR>
                   <TD><input type="radio" id="searchForm:customerSearchRadioGroupId" value="infoLeaseCustNumber"/></TD>
                   <TD><input type="text" id="searchForm:infoLeaseCustNumberId" value=""/></TD>
                   <TD ><input type="radio" id="searchForm:customerSearchRadioGroupId" value="eCreditCustNumber"/></TD>
                   <TD><input type="text" id="searchForm:eCreditCustNumberId" value=""/></TD>
              </TR>
              <TR>
                   <TD></TD>
                   <TD><span id="searchForm:searchText7">Client Number</span></TD>
                   <TD></TD>
                   <TD><span id="searchForm:searchText8">Customer Name</span></TD>
              </TR>
              <TR>
                   <TD><input type="radio" id="searchForm:customerSearchRadioGroupId" value="clientNumber"/></TD>
                   <TD><input type="text" id="searchForm:clientNumberId" value=""/></TD>
                   <TD style="color:red"><span id="searchForm:searchText9">  AND  </span></TD>
                   <TD><input type="text" id="searchForm:custNameId" value=""/></TD>
              </TR>
         </TBODY>
    </TABLE>

    Yeah, I would love to know about this too.
    What I did is (you will hate this solution) I hacked my designers design to make the first column (the radio column) to be one big column. In side this column, I did
    <h:selectOneRadio id="customerSearchRadioGroupId" layout="pageDirection">
    <f:selectItem ..... />
    <f:selectItem .... />
    </h:selectOneRadio>
    this is wack, but I can't think of any other solution. in ASP.NET you get a groupName attribute, which make thigns a lot flexible.
    The problem with this solution is the layout of the output (a table of radio button) didn't line up with the next column of textbox, so I had to go to my designer and have her modify her css.
    If anybody have a solution for this, please let us know.

  • Check box with Radio button functionality

    Hi All,
    I have a requirement like I need to have two check boxes on selection screen when ever I check one the other should be cleared with out pressing enter or any thing on selection screen just like radio button, all helpful answers are rewarded
    Thanks
    Giridhar

    Hi Karnam Giridhar,
    Try thee following code.
    PARAMETERS: test1 RADIOBUTTON GROUP sc1 DEFAULT 'X' user-command u1,
                test2 RADIOBUTTON GROUP sc1.
    PARAMETERS : p_file TYPE rlgrap-filename.
    AT SELECTION-SCREEN OUTPUT.
    if test2 is initial.
      loop at screen.
        if screen-name EQ 'P_FILE'.
             P_FILE  = ''.
             screen-input = '0'.
             modify screen.
        endif.
      endloop.
    endif.
    AT selection-screen.
    if not test2 is initial.
      loop at screen.
        if screen-name EQ 'P_FILE'.
          if screen-input eq '0'.
            screen-input = '1'.
            modify screen.
          endif.
        endif.
      endloop.
    endif.
    Regards
    Raj

  • Microphone of my iphone is not working when i call anyone nobody can listen but me, its working with headphone but its also working with videocam recording, please help me to solve this probelm.

    microphone of my iphone is not working when i call anyone nobody can listen me its working with headphone. but it is working with videocam recording, please help me to solve this probelm.

    Try this:
    1. Reset the iPhone by pressing and holding the sleep/wake and home buttons and releasing them, when the Apple logo appears on the display. Now test again.
    2. If the issue persists: Restore the iPhone without any of your own content, using this description from Apple: http://support.apple.com/kb/HT4137
    3. If the issue persists, Your iPhone need repair.

  • My instagram account won't link in with my iphone please help

    my instagram account won't link in with my iphone please help... I can't upload any of my photos to instagram

    Won't like to what? Are you saying you can't access your camera roll from the Instagram app? Check Settings>Privacy>Photos and make sure Instagram is set to "On". You can't use the share button from a photo in your camera roll to post a picture to Instagram if that's what you're trying to do. That's not a feature of iOS.

  • My ipod generation 5 will not come out of recovery mode. i was simply updating my software and this happened. it will not let me restore it comes up with and error. please help, thanks.

    my ipod generation 5 will not come out of recovery mode. i was simply updating my software and this happened. it will not let me restore it comes up with and error. please help, thanks.

    Hey erinoneill24,
    Thanks for using Apple Support Communities.
    Sounds like you can't update your device. You don't mention an error that it gives you. Take a look at both of these articles to troubleshoot.
    iPod displays "Use iTunes to restore" message
    http://support.apple.com/kb/ts1441?viewlocale=it_it
    If you can't update or restore your iOS device
    http://support.apple.com/kb/HT1808?viewlocale=de_DE_1
    If you started your device in recovery mode by mistake, restart it to exit recovery mode. Or you can just wait—after 15 minutes the device will exit recovery mode by itself.
    Have a nice day,
    Mario

  • IPhone 4s not being recognized and cannot be activated for service--what does this mean? I can't sync with iTunes. Please help

    iPhone not being recognized and cannot be activated for service--what does this mean? I can't sync with iTunes. Please help.
    When I connect iPhone to USB iTunes is giving me the above message. Please advise if you know the fix.
    Thanks,
    Lina1116

    did you find a fix?

  • My Ipod wont Sync with ITunes! Please Help!

    My Ipod wont Sync with ITunes! Please Help! I have the latest version of Itunes, but my ipod will not sync with my laptop. The diagnostic test has no answers and says everything is normal. When i try to sync, it says "an unknown error occurred (-39)". Any suggestions?

    check for any viruses

Maybe you are looking for

  • How to set max length for TextField ?

    how do i go about setting a max length for a TextField in jdk1.1.8 ? a while back there was a topic on this but it was for jdk1.0 please help

  • Global Bike configuration (?) problem in dataset

    My class this semester is working through some of the Global Bike case studies.  We recently completed the initial case study where a new customer is created, an inquiry, quotation, sales order, etc. through to payment. Dataset 56 appears to have wha

  • Publishing / File Put question

    I am beginning to use Dreamweaver 8 after originally building and maintaining my site in DW MX 2004. In the 2004 version when using the Put Site or Put Files command it seemed to only send files to the server that were new or changed. Now in DW8, the

  • View link accessor for master view object with bind variables

    Is there a way to set bind variables for a view object to which a view link accessor is used to retrieve a view row from a detail view row in a master-detail relationship ? I understand that RowSet (or Row) returned by a view link accessor originates

  • I can not access iTunes due to 0x80092013 error

    I have tried everything to get rid of this error... Including having the geek squad take a look at it.  Their last resort recommendation was to reinstall Windows 7.  Apple support has sent me information, but nothing has worked.  The advisor I spoke