To Retrieve dynamic radio button values using jsp & javascript

Hi All,
How can i retrive the dynamically created radio button values and also want to get the clicked radio button values.I am using JSP and JAVA beans to retrive the values from the form. I dont have any probs to retrieve combo box values, text box values only problem showing with radio button values. If any data which is entered wrong in the form all the fields should prefills with the old value.Except radio button values all others fields such as combo box, text box values are prefilled with the old values.
I have given the code for radios.
document.write('<input type="radio" name="distradio" OnClick="sampleReq.fcidis.value=\'Y\'"/>Yes   ');
document.write('<input type="radio" name="distradio" OnClick="sampleReq.fcidis.value=\'N\'"/>No');
document.write('<input type="hidden" name="fcidis" value="">')
<form method="POST" action="Update.jsp" name="sampleReq" >
<tr>
<td class="Txt_gris">
<input type="radio" name="requester" OnClick="sampleReq.requester1.value='supplier'"/> supplier
</td>
<td class="Txt_gris">
<input type="radio" name="requester" OnClick="sampleReq.requester1.value='customer'"/>customer
</td>
<td class="Txt_gris">
<input type="radio" name="requester" OnClick="sampleReq.requester1.value='distributor'"/> distributor
</td>
<td class="Txt_gris">
<input type="radio" name="requester" OnClick="sampleReq.requester1.value='employee'"/> employee
</td>
<td class="Txt_gris">
<input type="radio" name="requester" OnClick="sampleReq.requester1.value='New partner'"/>New partner
<input type="hidden" name="requester1" value=""/>
</td>
</tr>
Advanced Thanks for help
Regards
Sona

Hi,
If you have this code
document.write('<input type="radio" name="distradio" OnClick="sampleReq.fcidis.value=\'Y\'"/>Yes ');
document.write('<input type="radio" name="distradio" OnClick="sampleReq.fcidis.value=\'N\'"/>No');
document.write('<input type="hidden" name="fcidis" value="">')
<form method="POST" action="Update.jsp" name="sampleReq" >
<tr>
<td class="Txt_gris">
<input type="radio" name="requester" OnClick="sampleReq.requester1.value='supplier'"/> supplier
</td>
<td class="Txt_gris">
<input type="radio" name="requester" OnClick="sampleReq.requester1.value='customer'"/>customer
</td>
<td class="Txt_gris">
<input type="radio" name="requester" OnClick="sampleReq.requester1.value='distributor'"/> distributor
</td>
<td class="Txt_gris">
<input type="radio" name="requester" OnClick="sampleReq.requester1.value='employee'"/> employee
</td>
<td class="Txt_gris">
<input type="radio" name="requester" OnClick="sampleReq.requester1.value='New partner'"/>New partner
<input type="hidden" name="requester1" value=""/>
</td>
</tr>
this field distradio will not be able Update.jsp.
You will need to insert these field into the form definition.
Now, to get a valeu from a radio button, you need only to do request.getAttribute("fieldName").
To generate dinamically all radio button values, i need to know where are these information? In database? If yes, you need to read the resultset na in value attribute you need to do somethink like this <input type=radio name=fieldName value="<%out.println(resultset.getString("FieldName"));%>">
If you have more question, only send me a email,
best regards
Edney Imme
[email protected]

Similar Messages

  • Setting a Radio Button value using Javascript

    After much research, I've figured out that the appropriate command to get the value of a Radio Button in APEX JavaScript is "html_RadioValue", but I haven't been able to figure out a command that will let you set the value of the Radio Button. Is there documentation on APEX's use of JavaScript that covers this issue?
    Here's a simplified version of the script:
    <script language="JavaScript" type="text/javascript">
    function showval()
    var item1 = html_RadioValue('P19_RADIO');
    alert(item1);
    //Reverse the current selection
    if (item1 == 'Y') then
    <mystery_statement> //set P19_RADIO to N.
    else
    <mystery_statement> //set P19_RADIO to Y.
    </script>
    I've tried the following, but none of them have worked:
    - document.getElementById("P19_RADIO").value = 'N';
    - document.getElementById("P19_RADIO").checked = 'N';
    - $x('P19_RADIO').value = 'N';
    - $x('P19_RADIO').checked = 'N';
    Thanks.

    Okay, that worked in the Oracle-hosted environment, but not in my development environment. Looking at the view/source output from each, it seems that the versions of APEX are different - my environment is using version 3.0.1.00.07.
    The most obvious difference between the sources is the javascript includes at the top:
    <script src="/i/javascript/apex_ns_3_1.js" type="text/javascript"></script>
    <script src="/i/javascript/apex_3_1.js" type="text/javascript"></script>
    <script src="/i/javascript/apex_get_3_1.js" type="text/javascript"></script>
    <script src="/i/javascript/apex_builder.js" type="text/javascript"></script>
    vs.
    <script src="/i301/javascript/htmldb_html_elements.js" type="text/javascript"></script>
    <script src="/i301/javascript/htmldb_get.js" type="text/javascript"></script>
    My fundamental question is: how does one learn Javascript, in the context of APEX? I can't find any documentation that explains what $v means, or what $x means, or what $s means.
    Thanks.

  • Setting/Clearing Dynamic Radio Button values

    Hi, i have the following Radio buttons defined within an iteration
    <c:forEach items="${searchresults}" var="post" varStatus="status">                                        
         <tr class = "text_results"> 
              <c:url value="/searchposts.do" var="url">
                   <c:param name="postitle" value="${post.postId.postTitle.title}"/>
                   <c:param name="postcode" value="${post.postId.postTitle.code}"/>                    
                   <c:param name="unitcode" value="${post.postId.units.unitCode}"/>
                   <c:param name="auth" value="${post.postId.auth}"/>
              </c:url>
              <td>
                   <a href='<c:out value = "${url}" />'>                                        
                   <c:out value="${post.postId.postTitle.title}"></c:out></a>
              </td>
              <td><c:out value = "${post.mustering}"/></td>  
              <td><c:out value = "${post.rank}"/></td>  
              <td>
                   <html:radio property="incmbt" 
                        value='${post.postId.postTitle.title}'>
                   </html:radio>                                             
                   <a href = "javascript:unCheckRadio(document.searchForm.incmbt)">
                        clear
                   </a>
              </td>                                             
         </tr> 
    </c:forEach>  The property "incmbt" is declared as a form property (String incmbt) with its getters and setters ... i plan to set each radio button with a value from database within an object called post. The actual value to set for each radio is a post title ... I seem to be getting a NULL value when i try to get the value in action class (form.getIncmbt() yields null) ... Am i assigning the value correctly?
    Further, here's is how i clear the values which seems to work
    Javascript
    function unCheckRadio(btngrp) {     
         for(var i=0; i < btngrp.length; i++)
              if( btngrp.checked == true ) {
                   btngrp[i].checked = false;
                   document.write("Selected Radio is :" + btngrp[i].value);
    But the "Selected Radio is :" displays "${post.postId.postTitle.title}", not the actual post title... ???

    I just thought about this quickly, i think its because an href link does not submit form values ... If so, how can i submit the value of a radio button through the <c:param/> tag or any other way after clicking the href link to submit the form?

  • How to get radio button value in JavaScript

    I have a very simple radio button with two values: 1 and 2. I am trying to pass the value using a JavaScript call to a popup window. I am assuming there is a different method of obtaining the value, as
    var v_typ = document.getElementById("P1520_TYPE").value;doesn't work.

    Hi,
    If you are on Apex 3.x or higher, use JavaScript API function $v
    http://download.oracle.com/docs/cd/E14373_01/apirefs.32/e13369/javascript_api.htm#CHDEJEIG
    var v_typ = $v("P1520_TYPE");Regards,
    Jari

  • Dynamic radio button population

    Hi There
    I have the following logic to be implemented
    1) show two radio buttons A and B
    2) if user selectes A then ok do noting
    but if user selects B then
    display another set of radio buttons (6 radio buttons)
    Please let me know how to get the value of the radio button (A or B) before the form gets submitted
    I thought i will use custom tags if possible but not able to do that
    or if there is any other approach please help.

    Hi BasulC,
    Thanks for your quick reply.
    Actually I can do it using DOM but i need to use preexisting costom tags while creating the radio buttons and custom tags cannot be used in javascripts hence i am not able to do it in javascript
    is there no way to get the selected radio button value in the custom tag handler
    kind regards
    Proffy

  • Dynamic radio button and group

    Hi, we have create dynamic radio button and group on “application creation complete” event , but which I am try to get number of radio button its show zero, see below code
    import flash.utils.setTimeout;
    import mx.controls.Alert;
    import mx.events.FlexEvent;
    import spark.components.RadioButton;
    import spark.components.RadioButtonGroup;
    private var  rbg:RadioButtonGroup;
    private var  rb1:RadioButton;
    private var  rb2:RadioButton;
    private var dcount:int = 0;
    protected function application1_creationCompleteHandler(event:FlexEvent):void
         // TODO Auto-generated method stub
         // TODO Auto-generated method stub
         rb1 = new RadioButton();
         rb2 = new RadioButton();
         rbg = new RadioButtonGroup();
         rb1.label = "Radio1";
         rb2.label = "Radio2";
         rb1.group = rbg;
         rb2.group = rbg;
         vbox1.addChild(rb1);
         vbox1.addChild(rb2);
         checkRadioButton (); 
    protected function checkRadioButton ():void
         Alert.show("In checkRadioButton function : " +  rb1.group.numRadioButtons.toString());
    If I put some Time interval to call  checkRadioButton function its working fine,
    //checkRadioButton (); 
    setTimeout(checkRadioButton,1000);
    but this is not best practice.
    why this happen ….can anybody  clear  this or any other way to do this.
    Thanks in advance

    @manjeet.patel,
    Just write the below line of code
    vbox1.validateNow();
    You need not use setTimeout() function
    vbox1.addChild(rb1);
    vbox1.addChild(rb2);
    vbox1.validateNow();
    Thanks,
    Bhasker

  • 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.

  • Dynamic radio button in web dynpro abao

    Hi expert,
    I want to dynamic radio button by  web dynpro abap .
    Kindly give me a soulation ASAP.
    Thanks and regard's
    Vikash

    hi,
    method wddomodifyview .
    if first_time eq abap_true.
    data: LR_CONTAINER         type ref to CL_WD_UIELEMENT_CONTAINER,
          LR_RADIOBUTTON1            type ref to CL_WD_RADIOBUTTON,
          LR_RADIOBUTTON2            type ref to CL_WD_RADIOBUTTON,     
          LR_FLOW_DATA         type ref to CL_WD_FLOW_DATA.
    " bind text property will give TEXT that appears next to Radio Button
    CALL METHOD cl_wd_radiobutton=>new_radiobutton
      EXPORTING
       bind_selected_key   =  '01' 
       BIND_TEXT           =  'saurav'
      receiving
        control             = LR_RADIOBUTTON1.
    " bind text property will give TEXT that appears next to Radio Button
    CALL METHOD cl_wd_radiobutton=>new_radiobutton
      EXPORTING
        bind_selected_key   = '02'
       BIND_TEXT           = 'mago'
      receiving
        control             = LR_RADIOBUTTON2.
    LR_FLOW_DATA        =  CL_WD_FLOW_DATA=>NEW_FLOW_DATA( element = LR_RADIOBUTTON1  ).
    LR_FLOW_DATA        =  CL_WD_FLOW_DATA=>NEW_FLOW_DATA( element = LR_RADIOBUTTON2  ).
    LR_CONTAINER ?= view->GET_ELEMENT( 'ROOTUIELEMENTCONTAINER' ).
    LR_CONTAINER->ADD_CHILD( LR_RADIOBUTTON1  ).
    LR_CONTAINER->ADD_CHILD( LR_RADIOBUTTON2  ).
    endif.
    endmethod.
    Thanx.

  • Position  for dynamic radio button

    Hi expert,
    i created a dynamic radio button in my web dynpro application but i want to give the position in top of the my view kindly give me on example for this issue.
    thank's and regard's
    vikash

    Use this.............
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/201ddd3b-b4ce-2b10-8883-880ae8147f89
    The sequence to place a new UIElement at the screen is as follows:
    1.Create the UIElement
    2.Create the LayoutData that fits to the Layout of the surrounding container
    3.Insert the UIElement into the surrounding container
    *Code to create new button dynammically:
    lr_button = cl_wd_button=>new_button( on_action = `CHANGE_TEXT` ).
    **The following coding changes the design of a button to "emphasized":*
    lr_button->set_design( cl_wd_button=>e_design-emphasized ).
    set the new text*
      lr_button->set_text( new_text ).
    For Step 2 and Step 3 refer code by Radhika.
    Thanx.
    Saurav.

  • How to give the radio button value dml statement

    Oracle Forms6i
    Hai All
    I have created a form I the form i have created two radio button and named as appr, Recmd when i execute the forms appr is marked by default
    So now i need to insert or update this radio button value in my Table
    how can i insert or update this radio button value
    pls tell me the steps to do
    Thanks In Advance
    Srikkanth.M

    Hi,
    :<your_radiogroup_name> will give the selected radiobutton value

  • When saving form with 'Save As', losing radio button value

    I recently upgraded from Acrobat Pro 8.2 to Acrobat Pro 10.  Now experiencing the following issue:
    I have a PDF form, that is filled by an application.   With Acrobat Pro 10, if I open the completed form, and then use 'File' > 'Save As' > 'PDF', then the radio button fields lose their value.  Other fields retain their value, only the radio button fields become blank.   If I use the 'Save' option, then the radio buttons do not lose their value.
    Any help is appreciated!

    Hi,
    Can you check on your page to see if you have "reset page" process - if so, you could probably remove it. Also check on your page branches so see if you are clearing the cache for the page. If your page item is not related to a table field, you can also change the "Source Used" setting for it to "Only when current value in session state is null".
    When you submit a page, all page items should be stored in the session and would be available the next time the page is reloaded UNLESS you clear the cache for the page or the Source settings instruct Apex to retrieve the value from elsewhere - the above are the most likely causes, so check them first
    Andy

  • Dynamic radio buttons - Saving state?

    Hello
    I am trying to add some radio button groups to a page displaying products for sale. The number of groups depends on the record being displayed. For example, a television might have two option groups, one named 'Size' with options 24", 26", 28", another named 'Colour' with options black and silver.
    I have a DataTable bound to a HtmlDataTable in a backing bean This has an ArrayDataModel as its value. The DataTable has two columns. The first one displays the attributes name, e.g. 'Colour'. The second column displays the attributes values as a radio button group.
    When the product is loaded, the ArrayDataModel ('attributesArray') in the backing bean is populated with the product attributes. The class of objects held in the array are Object[] as this is necessary to split the data for the two columns.
    E.g. for two attribute in the table 'Size' and 'Colour'
    Object[] attributesArray = new Object[2];
    ArrayList colourSelectItems = new Array();
    ArrayList sizeSelectItems = new Array();
    SelectItem 24inch = new SelectItem(new Integer(24),"24 inch");
    SelectItem 26inch = new SelectItem(new Integer(26),"26 inch");
    SelectItem 28inch = new SelectItem(new Integer(28),"28 inch");
    SelectItem black = new SelectItem("silver","Silver");
    SelectItem silver = new SelectItem("black","Black");
    colourSelectItems.add(black);
    colourSelectItems.add(silver);
    sizeSelectItems.add(24inch);
    sizeSelectItems.add(26inch);
    sizeSelectItems.add(28inch);
    Object colourAttributeArray = new Object[]{"Colour",colourSelectItems};
    Object sizeAttributeArray = new Object[]{"Size",sizeSelectItems};
    attributesArray[0] = colourAttributeArray;
    attributesArray[1] = sizeAttributeArray;On the page i display the datatable as follows:
    <h:dataTable id="attributesTable" binding="#{addProductBean.attributesTable}" var="attribute" cellspacing="0" cellpadding="0" border="0" width="100%" columnClasses="default">
      <h:column id="attributeNameColumn">
        <h:outputText id="attributeName" value="#{attribute[0]}:" style="margin-right: 4px;"/>
      </h:column>
      <h:column id="attributeValuesColumn">
        <h:selectOneRadio id="attributeValues">
          <f:selectItems value="#{attribute[1]}"/>
        </h:selectOneRadio>
      </h:column>
    </h:dataTable>This works fine except I would like the first radio button in each group selected by default.
    This can be done pretty easy.
    I just change the row array to hold an extra element with the id of the default select item in it and add a value parameter to the h:selectOneRadio tag
    Object colourAttributeArray = new Object[]{"Colour","silver",colourSelectItems};
    Object sizeAttributeArray = new Object[]{"Size","24inch",sizeSelectItems};
    <h:selectOneRadio id="attributeValues" value="#{attribute[1]}">
      <f:selectItems value="#{attribute[2]}"/>
    </h:selectOneRadio>But there is a problem...
    Since the number of rows is dynamic there could be any number of radio button groups. As there is only one h:selectRadioButton in the display code (within the datatable tag) it can't be bound to a HtmlSelectOneRadioButton object in the backing bean. Each group loses its value if the form is submitted and returned with errors on it.
    Any solution or other help greatly appreciated. Thanks.

    I believe in this case, the standard way of doing things would be best. Create two String variables and a respective getter and setter. One String will hold the selected size, the other will hold the selected colour. Bind the value attribute of each selectOneRadio to the respective getter/setter of the backing bean.
    If you want to set the default to "silver" or "24inch", just initialize the String with those values.
    Here's how you're code will break down:
    Object[] attributesArray = new Object[2];
    ArrayList colourSelectItems = new Array();
    ArrayList sizeSelectItems = new Array();
    SelectItem 24inch = new SelectItem(new Integer(24),"24 inch");
    SelectItem 26inch = new SelectItem(new Integer(26),"26 inch");
    SelectItem 28inch = new SelectItem(new Integer(28),"28 inch");
    SelectItem black = new SelectItem("silver","Silver");
    SelectItem silver = new SelectItem("black","Black");
    colourSelectItems.add(black);
    colourSelectItems.add(silver);
    sizeSelectItems.add(24inch);
    sizeSelectItems.add(26inch);
    sizeSelectItems.add(28inch);
    Object colourAttributeArray = new Object[]{"Colour",colourSelectItems};
    Object sizeAttributeArray = new Object[]{"Size",sizeSelectItems};
    attributesArray[0] = colourAttributeArray;
    attributesArray[1] = sizeAttributeArray;
    String selectedColour = "silver";
    String selectedSize = "24inch";Don't forget to create your getter and setter for selectedColour and selectedSize in the addProductBean.
    And then create your datatable the same, but change the selectOneRadio tag like this:
    <h:selectOneRadio id="attributeValues" value="#{addProductBean.selectedColour}">
      <f:selectItems value="#{attribute[1]}"/>
    </h:selectOneRadio>Does that make any sense? Let me know how it turns out.
    CowKing
    PS - BTW, when you set the SelectItems for the TV size, you use Integer's as the value. Then later in your examples, you set the defaults using a String. Is this just a typo? I assume that you can get it working fine in whatever way you need it.

  • Dynamic radio button and retreving data

    Ineed help with this. On my JSP i dinammicaly create radio buttons.
    <c:forEach items="${ScoringTestForm.scCategoryRs.rows}" var="ctg" varStatus="statusCtg">
    <c:out value="${ctg.DESCR}" />
    <c:forEach items="${ctg.SCORINGITEM_RS.rows}" var="item" varStatus="statusItem">
    <c:out value="${item.LABEL}" />
    <c:forEach items="${item.SCORINGITEMVALUE_RS.rows}" var="itemVal" varStatus="statusItemVal">
    <c:set var="ivalcnt" value="${ivalcnt + 1}" />
    <input type="radio" id='rb<c:out value="${ivalcnt}" />' name='type<c:out value="${itemVal.IDSCITEM}"/>' value='<c:out value="${itemVal.VALUE}" />' >
    <label title='<c:out value="${item.LABEL}" />' for='rb<c:out value="${ivalcnt}"/>' ><c:out value="${itemVal.LABEL}" /></label>
    </c:forEach>
    </c:forEach>
    </c:forEach>
    this code creates multiple radio buttons with different names (type1, type2.....).How can i get the values from the radio buttons to my form bean. The radio buttons are populated from Rs objects witch contain Value objects. Thx

    @manjeet.patel,
    Just write the below line of code
    vbox1.validateNow();
    You need not use setTimeout() function
    vbox1.addChild(rb1);
    vbox1.addChild(rb2);
    vbox1.validateNow();
    Thanks,
    Bhasker

  • AS3.0 Need to Store Radio Button Value  as SharedObject

    I am under a tight deadline. Friday Aug.22!!! I am trying to
    store the value of a radio button (in a group for yes/no) when a
    'Next" button is pressed. I have a nextBtn.addEventListener(...) to
    contain a function which holds code to store the value of each
    radio button on the page into its own SharedObject. As such:
    _so.data.DrugName1 = DrugName1.selected;
    I do not know the AS3.0 code to get the value of the selected
    radio button in a grouping and then to use that value and store it
    into the SharedObject _so.data I have been banging my head for
    days. I fear I keep trying to use AS2 code for an AS3 project.
    AAAAAhhhhhhhh!
    Can someone please help me determine the value or data of a
    radio button or radio button group. Is it "selected" or
    "selectedData" or "getValue()" or "value" or "data" or what ??????
    I don't know where else to turn. :(
    alexdove at comcast.net
    Please email direct if you can help. I'll be sure to re-post
    a solution once I get it.
    Thank you in advance.
    Alex Dove

    FlashTastic, thanks for the reply. I entered the code but I
    cannot get the values to repopulate in the page when I return. I
    try to put the SharedObject data of the radio button back into the
    button on the page but it will not take. Here is my code:
    //*************code in page to load SharedObject value back
    into radio button when the page loads if a value
    exists*****************
    if((HumiraY_Row1.selected == false) &&
    (_so.data.HumiraY_Row1 != null)){HumiraY_Row1.selected = true;}
    if((HumiraN_Row1.selected == false) &&
    (_so.data.HumiraN_Row1 != null)){HumiraN_Row1.selected = true;}
    //******** Here is when the Next button is pushed to save the
    data***
    nextBtn2.addEventListener(MouseEvent.CLICK,
    mouseDownHandler2);
    function mouseDownHandler2(event:MouseEvent):void {
    if(HumiraY_Row1.selected == true){_so.data["HumiraY_Row1"] =
    HumiraY_Row1.selected;}
    if(HumiraN_Row1.selected == true){_so.data["HumiraN_Row1"] =
    HumiraN_Row1.selected;}
    Still stuck. Look forward to another post. :)
    Alex

  • Dynamic radio button fields do not display again after form is saved

    Hello,
    I have a group of radio button questions within a dynamic form that display additional questions based on the answer.
    So for the question "Is there a basement?" if the user indicates yes, there is a basement, additional questions are displayed to gather more information about the basement. If the user indicates no, then those questions do not appear.
    Everything works beautifully in the form. However, when the form is saved and then re-opened, the additional questions do not appear in the form. So the structure goes from this:
    To this:
    The users must toggle the radio buttons to make those questions reappear...and when they do reappear, they have maintained whatever answer the user indicated before saving.
    I'm not sure why this is happening...does anyone have any advice?
    Thank you,
    Theresa

    Hi,
    Thanks so much for your response! I am using Designer 8.2.1.
    I just played around with more of my form...this seems to happen whenever I am working with a hidden subform that is displayed when the user clicks a button (or selects the appropriate radio button). I have a couple of other places within my form where this occurs.
    Here is an example of the script on one of those buttons:
    var intNewIndex = form1.construction_type.const_type_repeat.instanceManager.count-1; 
    form1.construction_type.resolveNode("const_type_repeat[" + intNewIndex + "]").percentage.presence="visible";
    const_type_repeat.instanceManager.addInstance(true);
    The script on the radio button is:
    if (basementyes.rawValue == 4){secondwd.sump.presence ="visible"
      secondwd.sumpradio.sumpyes.presence ="visible"
      secondwd.sumpradio.sumpno.presence ="visible"
    else {secondwd.sump.presence = "hidden"
      secondwd.sumpradio.sumpyes.presence = "hidden"
      secondwd.sumpradio.sumpno.presence ="hidden"
    I am pretty new at this so it might be something obvious...thanks again for your help!

Maybe you are looking for

  • Cancel or credit memo biling document

    hello ,everyone,    as we all know that ,we can cancel the billing decument ,which result a document type s1,and we also can create credit memo with reference to the billing document, now I want to realise this funciton: as to the billing document of

  • Submit Button Works for Me but Not Client

    I have created an interactive PDF form, using Adobe Acrobat 7, for my client so they can pass it to their clients. It's basically an agreement form where they have to sign and date then press the submit button to email it to my client when finished.

  • Converting Word DOC to PDF changes to PP

    I'm converting a Word DOC to PDF, and my header has several Registered marks. In Word it looks fine, but the PDF has added the letter 'P' before and after, changing '®' to 'P®P' I've tried the same source doc on two different machines, and tried usin

  • Simple Request for Answers of Today's Questions.

    I realize that you are likely the recipient of very limited information, but as one of the worlds largest retailers I would hope that someone at the Best Buy corporate office would have a list of details that is being circulated to upper management a

  • BDC FOR f-02 plz correct it

    hi experts, i am uploading xl data to F-02 using BDC. see my code and correct me THIS IS FLAT FILE. DDAT        DTY CC     PDAT        REFF       CK  PK ACC G/LTY     AMOUNT   REFF         DUEDATE 01.04.2008 DR KAP  01.04.2008 MW/S6-06 INR 09 6000