Making a form field required when another field is selected

I have a contact form with the usual fields required (name, address, city, etc.). I'm adding a Country pull-down list to the form, which will default to the US being selected. Since a "State" field is not relevant for anyone filling out the form from another country, I'd like to make the State field required only if the country selected is United States, and not required for any other country. Is there a way to do this?
Thanks,
R-Co

What you need is to be able to create a required textfield when the first textfield shows USA and destroy the required field when another country is selected.
The following may help to understand create and destroy
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Deleting and rebuilding validations</title>
<link href="http://labs.adobe.com/technologies/spry/widgets/textfieldvalidation/SpryValidationTextFiel d.css" rel="stylesheet">
</head>
<body>
<form id="form1" method="post" action="#">
  <p>
    <input type="radio" name="radio" id="Married" value="Married" onclick="val(this);">
    <label for="Married">Married</label>
  </p>
  <p>
    <input type="radio" name="radio" id="Defacto" value="Defacto" onclick="val(this);">
    <label for="Defacto">Defacto</label>
  </p>
  <p>
    <input type="radio" name="radio" id="Single" value="Single" onclick="val(this);">
    <label for="radio">Single</label>
  </p>
  <hr>
  <span id="sprytextfield1">
    <label for="f_married">Married</label>
    <input name="married" id="f_married" type="text" value="">
    <span class="textfieldRequiredMsg">A value is required.</span>
  </span>
  <span id="sprytextfield2">
    <label for="f_defacto">Defacto</label>
    <input name="defacto" id="f_defacto" type="text" value="">
    <span class="textfieldRequiredMsg">A value is required.</span>
  </span>
  <span id="sprytextfield3">
    <label for="f_single">Single</label>
    <input name="single" id="f_single" type="text" value="">
    <span class="textfieldRequiredMsg">A value is required.</span>
  </span>
  <hr>
  <input type="submit" value="Submit" />
</form>
<script src="http://labs.adobe.com/technologies/spry/includes_minified/SpryValidationTextField.js"></script>
<script>
var sprytextfield1,
        sprytextfield2,
        sprytextfield3;
// build validations and delete / destroy them
function val(e){
    // get the value
    value = e.value;
    // see what radion button we have
    if(value == "Married"){
        // if there inst a validaton build one
        if(!sprytextfield1){
            sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1");
        // if there is a validaiton in sprytextfield destory it, and clear the variable
        if(sprytextfield2 && sprytextfield2.destroy){
            sprytextfield2.resetClasses();
            sprytextfield2.destroy();
            sprytextfield2 = null;
        // same as the rest
        if(sprytextfield3 && sprytextfield3.destroy){
            sprytextfield3.resetClasses();
            sprytextfield3.destroy();
            sprytextfield3 = null;
    } else if(value == 'Defacto'){
        if(!sprytextfield2){
            sprytextfield2 = new Spry.Widget.ValidationTextField("sprytextfield2");
        if(sprytextfield1 && sprytextfield1.destroy){
            sprytextfield1.resetClasses();
            sprytextfield1.destroy();
            sprytextfield1 = null;
        if(sprytextfield3 && sprytextfield3.destroy){
            sprytextfield3.resetClasses();
            sprytextfield3.destroy();
            sprytextfield3 = null;
    } else if(value == 'Single'){
        if(!sprytextfield3){
            sprytextfield3 = new Spry.Widget.ValidationTextField("sprytextfield3");
        if(sprytextfield1 && sprytextfield1.destroy){
            sprytextfield1.resetClasses();
            sprytextfield1.destroy();
            sprytextfield1 = null;
        if(sprytextfield2 && sprytextfield2.destroy){
            sprytextfield2.resetClasses();
            sprytextfield2.destroy();
            sprytextfield2 = null;
    // proceed with the rest as normal
    return true;
</script>
</body>
</html>

Similar Messages

  • Making FieldA required when user changes value of FieldB

    Is this possible.
    When the user is filling out the form, the required state of fields needs to change based on input gathered from the user.
    FieldA - TextField
    FieldB - DDList - Values Yes and No
    FieldA should be required if the user sets FieldB to Yes, but it should be required if they set the value to No.

    I figured out how to change this, however I have one obstacle yet. The highlighting does not automatically refresh? I have to manually uncheck the required fields checkbox and reselectit for the highlighting to update.

  • How to make metadata fields required when creating folders

    Hello all....
    Related issue with SR 3-6472229431 and SR 3-6471130611.
    We're using DIS 11.1.6 64-bits (2011_11_29 (rev 9756) 11.1.6.97) in a Windows 7 64-bits workstation (with UCM 11.1.1.5 in a Linux machine). The check-in of images to UCM goes fine.
    I'm trying to make some metadata fields required when creating a folder. These fields are required when making a check-in, but not when creating folders.
    Folders_g is enabled. DesktopTag too.
    EDIT: Patch: 14695303 - WCC 11.1.1.5.0 BUNDLE ( MLR 16 ) NOV 6 2012 applied.
    Is it possible?
    Thanks for all.
    Edited by: fgomes on 22/11/2012 03:24

    After reading your response and rereading the original question a bit closer, the metadata prompting feature does not apply to creating new folders, only content.
    Again, though, I think the focus here is in the wrong place. The metadata applied to a folder is intended to be ultimately applied to the content. You can build global rules that fire on submission of content to check if a field has a value, and throw an error if the value is empty.
    If you expect users to create folders (and actually apply any metadata to the actual folder itself), you will be disappointed. Experience shows that users are not interested in that level of detail when creating content, let alone folders. Letting typical users create folders is a bad idea anyway, as they tend to create the same inefficient folder structures they previously created in file shares within Content Server.
    If you need to tightly control folder attributes, you'll be better served by locking down the ability to create new folders. Otherwise you're looking at some type of customization. Keep in mind that you won't be able to customize the right click behavior of DIS. Any changes to DIS would have to be an enhancement request.

  • How to make DFF mandatory in forms personalization based on another field

    how to make DFF field mandatory in forms personalization based on another field ,and also user can put values in the DFF field.
    Edited by: SinghP on Mar 14, 2012 12:16 AM

    Hi,
    4 DFFs are enabled.
    CASE1: when payment is voided DFF4 should be mandatory feild
    CASE2: when user queries the voided payment , above DFF4 should be readonly or not editable
    Unable to acheive both the cases with Forms Personalization.
    When trying case2 error pops up saying null canvas.
    Can you please provide some examples if you have any.
    I can find any customizations on this form
    Thanks
    Edited by: user11344029 on Mar 15, 2012 11:28 AM

  • Changing a field based on another field

    hi one and all
    i am looking for a way to change a field based on another field. if i have item 2 and item 8 on the page and item 8 needs to be required based on item 2 based on a requirement, how would this be done.
    ex if item 2 has a PO inputed, when it is moved off the field, item 8 should be changed from required false to required true. i have tried in both the process request and process form request with no luck
    any suggestions.
    thanks

    hello again
    after your input and after reviewing the tutorial ( which i accomplished based on data from a table but not a field ) , i did the following and have been fighting it for a day. am i doing this correctly
    on the itemid OrgRptCode1 i changed the action type to firePartialAction and the event is name o1
    then i added this code to see if the action would fire
    if (pageContext.getParameter("OrgRptCode1") !=null) // either line will be commented out
    if (pageContext.getParameter("o1") !=null) // either line will be commented out
    System.out.println("Field is not empty");
    else
    System.out.println("Field is empty");
    am i missing a step . also
    when i enter the page i get Field is empty. when i enter the field and tab off i get the error page w/ this msg
    oracle.apps.fnd.framework.OAException: java.lang.NullPointerException
         at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:888)
         at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErrorHandler.java:1064)
         at oracle.apps.fnd.framework.webui.OAPageErrorHandler.processErrors(OAPageErrorHandler.java:1294)
         at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:2396)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1512)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:463)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:384)
         at OA.jspService(OA.jsp:40)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
         at java.lang.Thread.run(Thread.java:534)
    ## Detail 0 ##
    java.lang.NullPointerException
         at uaboaf.oracle.apps.xxuab.hr.orghierarchy.webui.manageOrgCO.processFormRequest(manageOrgCO.java:289)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:734)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:352)
         at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processFormRequest(OAPageLayoutHelper.java:943)
         at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processFormRequest(OAPageLayoutBean.java:1546)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:929)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:895)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:751)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:352)
         at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processFormRequest(OAFormBean.java:373)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:929)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:895)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:751)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:352)
         at oracle.apps.fnd.framework.webui.beans.OABodyBean.processFormRequest(OABodyBean.java:340)
         at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:2392)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1512)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:463)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:384)
         at OA.jspService(OA.jsp:40)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
         at java.lang.Thread.run(Thread.java:534)
    java.lang.NullPointerException
         at uaboaf.oracle.apps.xxuab.hr.orghierarchy.webui.manageOrgCO.processFormRequest(manageOrgCO.java:289)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:734)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:352)
         at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processFormRequest(OAPageLayoutHelper.java:943)
         at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processFormRequest(OAPageLayoutBean.java:1546)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:929)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:895)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:751)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:352)
         at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processFormRequest(OAFormBean.java:373)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:929)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:895)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:751)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:352)
         at oracle.apps.fnd.framework.webui.beans.OABodyBean.processFormRequest(OABodyBean.java:340)
         at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:2392)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1512)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:463)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:384)
         at OA.jspService(OA.jsp:40)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
         at java.lang.Thread.run(Thread.java:534)

  • Required field dependent on another field in PDF form

    I understand how to make a field required. But client wants a series of fields to be required only if a different field is answered yes. IOW, form begins with the question "Do you want me to call you?" followed by yes/no radio buttons. If the yes button is checked, then the phone number field must be required. If the no button is checked, then the phone number field must not be required.
    Is this possible?
    Ken Benson

    Sure. In the Mouse Up event of each radio button, do something like:
    // Mouse Up JavaScript for radio button;
    getField("phone_number").required = event.target.value === "Yes" ? true : false;
    where "Yes" is the button value of the Yes radio button and "phone_number" is the name of the phone number field. Adjust these to match what you're using.

  • How to create an array in one field and have another field display certain elements from that array?

    I am making a form in Acrobat XI pro.
    In one text field, I created an array of several elements. I want other text fields to display certain elements from that array. For instance, one field should display the 3rd element, another field should display the 13th element, etc.
    The Javascript for making the array is very long, and so I don't want to have to re-calculate the array every single time (in order to reduce rendering time when I open the form on an iPad). This is why I'd like to only have to create the array once, and simply refer to it throughout the form.

    What code are you using to update the array currently? Are you completely rebuiding it when an element changes, or just changing specific elements for certain fields? I'm still not sure what exactly you are trying to do, but something like this in a document level script will create your array:
    var myArray;
    // Call 'updateArray' to initialize array
    updateArray();
    function updateArray() {
         // Code here to create/update array
         myArray = new Array();
         myArray[0] = "Value 1";
         myArray[1] = "Value 2";
         myArray[2] = "Value 3";
    Then, for each field that needs to update this array, you can add a call to 'updateArray()' in the appropriate event. This will rebuild the array completely; if you just want to update specific elements, then you can access them directly.

  • Copying a Calculated Field Value to another Field in the same List

    Hello! I have a calculated field that uses an if statement to determine a score. IE A field called Downtime Score contains this calculate:  IF Downtime Minutes =10, 100.  (not correct formatting, just basic to get point across)
    I simply want to use a workflow to copy the calculated value in Downtime Score (100) to another field called Final Downtime Score.
    In the workflow, I current have the following:  Set FinalDowntimeScore to CurrentItem:Downtime Score
    When I log both to workflow history, they both show 0 in history.  Nothing is copying.
    The calculated field is a number and I tried both number and text fields for FinalDowntimeScore.
    This is within SharePoint 2013 and using SharePoint Designer 2013.
    Any help would be appreciated!

    Ok, I did the same test as you and it failed.  I still return a 0 when I should see a 100.
    Not sure if this helps but when even though we are using sharepoint designer 2013, we only have "SharePoint 2010 Workflow" available in Platform type when creating workflows.
    Could you test again using SharePoint 2010 workflow as your platform type and see if you return the same results?
    Thanks!

  • How to update other field values when one field value is updating

    I am creating one ADF page.
    In one form suppose there are two fields ->
    Bank A/C [a combo box or "select one choice"]
    Balance [one Input Field]
    Now, when I am selecting one value in "select one choice" it will automatically make a query in database and fetch and show the balance in the "Balance" input field.
    How can I do that?
    Please note that I have done my development by creating entity object>view object.
    I have not used any EJB.

    Hi,
    is it ADF Business Components that your use then or POJOs? In either way, you set the select component's autosubmit property to true.
    If using ADF BC you can then create a method entry in the set<attributeName> VORowImpl file of the ViewObject that - whenever a new value is set - looksup the dependent value and sets it - call its set<attribute> method within this method.
    Define an ID property on the selectOneChoice component and set the same value to the PartialTrigger property of the textfield that you want to update
    Frank

  • VBA Programing Question - Very Basic - One Field Maps to Another Field

    I have a MS Project schedule where I created some custom fields.  I have one custom field for the number of items required to complete the task and then another custom field for the remaining "open" items.  I am using those two fields
    to make a calculated third column which calculates the "% completed"...I couldn't call it "% complete" since that is one of the built-in fields. 
    The problem is then I have to go down through and manually type in the "% complete" values so that they match my calculated "%completed".  It sure would be slick if I had a macro that would automatically make all of the "% complete"
    fields match the "% completed" fields. 
    Seems simple, but I have zero experience in VBA programming.
    Thank you in advance for your help.
    Bill

    Try:
    Sub UpdateCompleteStatus()
    Dim Job As Task
        For Each Job In ActiveProject.Tasks
        If Not Job Is Nothing Then
            If Not Job.Summary Then
                If IsNumeric(Job.Number3) Then
                    If Job.Number3 >= 0 And Job.Number3 <= 100 Then
                        Job.PercentComplete = Job.Number3
                    End If
                End If
            End If
        End If
        Next Job
    End Sub
    Number 3 being zero is not a problem, but being an error value or <0 or >100 is a problem.
    <p>Rod Gill</p> <p><a href="http://www.project-systems.co.nz/project-vba-book/index.html/">The one and only Project VBA Book</a> <a href="http://www.project-systems.co.nz/"></p> <p>Rod
    Gill Project Management</a></p>

  • Form design requirements when form should be rendered as HTML and PDF

    Hello,
    does anyone know if there is a complete documentation on the requirements when I want to design a form that can be rendered as PDF and HTML. I find only bits and pieces here and there. I found a document on which properties are working in HTML forms, however I'm not able to get my script object code working in HTML.
    Any help or hints are greatly appreciated!
    Regards,
    Karin

    The LiveCycle Forms documentation includes a document called "Transformation Reference". At least it did in version 7. That document details which properties translate into the various flavours of HTML that are supported. Also, the "Developing Custom Applications" document has a section called "Designing form designs to render as HTML".
    Jared Langdon
    www.jlangdon.ca

  • Have Image Restore only when another object is selected

    I have a menu of images at the top. When the mouse rolls over
    them a new layer appears on the page according to which logo was
    rolled over. When the mouse rolls over the image(s) i want Two
    things to happen 1) Image changes from gray scale to color (easy,
    rollover image) but 2) I want the image to remain color even when
    the mouse is not over it and only change back to gray scale when
    another image at the top is rolled over. Currently the image will
    only stay color when the mouse is over it. I need the corresponding
    image to remain in color when its layer is in view. I have thought
    of a few ways to do this with putting each image in a layer but i
    want an easier way. Any suggestions? Thanks in advance!

    Is this possible? Am I clear on what i want?

  • Making a text field required when a radio button is clicked

    Hello all, I am very new to designing PDF forms, and I want to implement this requirement but have no idea how to go about doing it. I am designing an order form, and in a few different sections of the form are text fields that I want to be required, but only if a certain radio button on the form is clicked. So for example, I have a radio button group on the page consisting of two buttons, and then immediately to the right is a text field. If the user selects button 1, the text field is not required, but if they select button two, the text field is required. How do I implement this? I am using Livecycle ES3. And when I say required, I am referring to the field value/property of "User Entered - Required". Also, I cannot accomplish this by hiding and unhiding the field depending on which button is clicked, as this form will also be printed and filled out by hand, so all fields must be visible at all times. This form does have a submit by e-mail button and that is how it will be used primarily.
    Also, I have searched around the forums a bit, and have tried some Javascript I have found, tying it to a mouseup event on the radio button, for example "getField("Text1").required = (getField("Radio1").value == "Yes");" and "getField("Text1").required = true;" with the names changed for my fields, but no matter what I try it has no effect
    Thanks!

    i hope this helps u.You can always optimize tht code a bit more , it's coded roughly but it works.
    <html>
    <head>
    <script>
    var cursel='r1';
    function radioClick(x)
         if(cursel!=x)
              cursel=x;
         if(cursel=='r2')
              var z=document.getElementById('mydiv');
              mydiv.innerHTML='<input type=text name=ss size=20/>';
              mydiv.style.display='inline';
         else
              var z=document.getElementById('mydiv');
              mydiv.innerHTML='';
              mydiv.style.display='inline';
    </script>
    </head>
    <body>
    <form>
    <input type=radio name=rtt onClick="radioClick('r1');" checked />Radio 1
    <br>
    <input type=radio name=rtt  onClick="radioClick('r2');"/>Radio 2
    <br>
    <div id=mydiv></div>
    </form>
    </body>
    </html>

  • Need help with a form where checkbox displays another field

    I created a from in january that works perfectly.  I have different departments as checkboxes and if the box is checked, it displays another subform with a comments, approval, and signature field.  However, we just added two new departments.  I copied one of the checkboxes and subsequent fields twice.  I then changed the script for the approriate field and checked to make sure there were no other functions I was missing.  However, now when I open the form, the two new fields show by default.  If I check the box and uncheck, the associated subform disappears.  I think there may be some simple thing i am overlooking. 

    I'm not getting any errors at all. The form isn't online as of yet so I dont have a link. I will attach a screen shot and maybe you can tell me where I went wrong.

  • Values in one field based on another field in the paper parameter form.....

    Hi All,
    I have two fields in the parameter form. One named 'employee number' and the other named 'document number'. Now, there are multiple document numbers for every employee. I'd like the document numbers to be displayed automatically as an LOV or would like to give the user some help when the employee number is entered manually. Please let me know if this is possible in Oracle reports. I read somewhere that I'll have to call the values from the form. if that is the case. then please let me know how to go about it....
    Regards,
    Shri

    Hi Hari,
    Considering both Market Segment and Application fields are dropdown,
    1) define an event for the first dropdown in the get_p method ie., Market Segment field
    2) In the get_v method of the second dropdown get the value of hte 1st dropdown and filter your field accordingly
    Note: The reason for defining an event in (1) is just to do a server submit.. its actually act as a dummy event if you dont want to handle your logic here
    Hope this was helpful.
    Best Regards,
    Lakshminarayana

Maybe you are looking for

  • Performance Differences (complex)

    Hi! Almost 2 years ago we started to migrate our software from Oracle 8.0 to Oracle 10g. Soon we faced severe performance problems with some statements (Oracle 10g being 1000 times SLOWER than 8.0!), but we somehow managed to get around with this. Th

  • .war file vs properties files in weblogic 5.1

              I work with WebLogic 5.1 and I'm trying to deploy a web application which gets           a properties file. If I deploy it as an expanded directory hierarchy (with the           properties files into WEB-INF/classes) I have no problems. Whi

  • How do I install Firefox with Windows 7?

    I have Windows 7 and after I downloaded Firefox to my computer and tried to install it a message pops up asking me to log in as administrator or my user name. Since I am the administrator and never set up a password, I try to log in with my user name

  • My adobe CS2 programs will not open on my macbook pro osx 10.5.8

    Today my adobe cs2 suite programs will not open.  They were working just fine a couple of days ago.  And they have worked fine for years.  I did not update to any new os that would cause them not to work.  I really need to get some image work done so

  • Oracle Query Performance While calling a function in a View

    Hi, We have a performance issue in one of our Oracle queries. Here is the scenario We use a hard coded value (which is the maximum value from a table) in couple of DECODE statements in our query. We would like to remove this hard coded value from the