Field required if the radio button is checked

I created a form with two radio buttons (YES, NO) and I want to make two specific text required fields if the YES button is checked. The field is set for the radio button TO be checked by default.

How can I do?

Thank you

The MouseUp event of two option buttons, enter this code:

this.getField("Text1").required = (event.target.value=="Yes");
this.getField("Text2").required = (event.target.value=="Yes");

Tags: Acrobat

Similar Questions

  • Simple form: just 1 text field and the radio button 2...

    I have a question about the Muse Widgets when it forms.  I have a very simple interface, I want to try to apply an additional tax of an amount of entry; I want to give the user the ability to select Add fresh or not.

    The only widget I found on current Muse was a Simple Contact form emails. I've stripped down to 1 input text, group 1 radio. I exported html code, added in the onclick event in the HTML for the radio buttons perform the calculation of the additional tax.  On the action of the form = "xxx", muse creates a few php files for validation and finally sending the form as an email, I have a test in the form e-mail address.  I can stub out that php and put in my own actions to waive the sending of the email.  I have 2 questions: ONE QUESTION) on the level of code there is a control of the syntax form fields (corresponds to the entered text input, is a selected radio button, etc.). SimpleContact form comes with 3 < p > < / p > due to the action of the form = "xxx" statement. The 3 lines correspond to the errors, which is a generic "server has encountered a problem." (something like that).  Does anyone know what code is to identify the error and how it is returned to the call statement? MuseUtils.js?  It is not in the action = "xxx" php referenced file.  It maybe too much, I'm interlacing syntax, semantic validation on a form after the muse html export.  Second QUESTION) is before all this... it all simple forms of 3rd party, I can use (Group 1 radio 1 text, drop-down list), which I can integrate Muse?  Looked at Muse-themes.  Don't have a complete package of e-commerce, yet.  (This is for a non-profit and trying to reduce recurrent costs).  Sorry, this is so wordy, appreciated by any direction.

    Answering the second question, you can check out these alternatives:

    http://musewidgets.com/search?q=form

    Thank you

    Sanjit

  • Text in the radio button field triggers?

    I'm sure it is a simple and I just have a moment on Monday, but I can't seem to find it by searching on the forum...

    I have created a pdf form and I want an option button to automatically check when someone types the text in a certain area - how can I do this?

    I would be put in place so that none of the fields in each section can be filled-in unless one of the radio buttons is selected. If space fields are displayed if this option button is selected and the same thing with the hull of the Pre-Built program fields. You can do it in show/hide fields, and you would also want to reset the fields when they are shown/hidden. Coding can be greatly simplified if you use a field hierarchical naming system for the two groups. For example, fso.width, fso.depth, fso.area, fso.a$, etc. and pss.width, pss, depth, etc.

    You can then hide all fields selection of pre-designed Shell Scheme programs and reset and display all the fields only area and reset them with the following:

    Hide all fields selection of pre-designed Shell Scheme programs and reset the

    getField("pss").display = display.hidden;

    resetForm (["SSP"];

    Hide all fields only space floor and to reset

    getField("fso").display = display.visible;

    resetForm (["Fos"];

    This is not complete, but should help you get started. Note that you can set up A$ fields so that they are automatically calculated according to the value of the Total m2 field, so that the user doesn't have to come in and maybe make a mistake. You can also configure the computed fields to display a value only if the width and depth fields are completed.

  • Firefox crashes in typing or by clicking check box or the radio button, even with all the plugins / extensions removed. Check with many types of malware scanners.

    Firefox crashes in typing or by clicking check box or the radio button, even with all the plugins / extensions disabled, then deleted. Sometimes it hangs for five minutes. I checked the PC with several types of scanners of evil-ware, but none to be found. All hidden and deleted cookies, all DELETED & extension plugins. Remove all instances of Firefox PC and registry, then restored to bookmarks. The only thing that I did not is to remove and reinstall not my favorites.
    Windows Vista (yes I know) and FF 13.0.1

    Try disabling hardware acceleration in Firefox.

  • Hide the individual fields of a group (radio button) based on another field

    Looked through the archives, but couldn't find the answer, who worked... THANKS in advance.

    A form that contains a radio 2 field (named funding) group - 'Cash' or 'other '.

    The group following (FinancingType), which is independent now, is a group of radio buttons of the 5 field - "Cash", "FHA", "GO", 'Classic' and 'other '.

    "Cash" is selected in the first group, I want to [FinancingType]. Button of Cash to choose (what I work via a trigger MouseUp)

    If (event.target.value == "Cash).

    this.getField("FinanceType").value = 'Cash ';...

    However, I want the other 4 fields greyed out or hidden.

    In addition, if the radio button "Other" is selected, I want to [FinancingType]. Button of cash to be gray or hidden.

    (ps. I know just enough coding to get in trouble!)

    Yes, you can. The code would be:

    this.getField("FinanceType").readonly = true; or false, change it back

  • How to check if the radio button is selected?

    Hi, I know how to select the radio button, but the question is - how to check if this radio has been selected?

    to select the option button, I use:

    _root.rb_choice_1.selected = true;

    And I thought that checking its status should be similar, but it does not;

    {if (_root.rb_choice_1.Selected)}
    trace ("delivering choice 1");

    }

    and this does not work, too:

    if(_root.rb_choice_1.Selected == true) {}
    trace ("delivering choice 1");

    }

    What I am doing wrong?

    This will work.  Just change allowed to selected if you are using the correct property.

  • code to select the radio button according to requirement

    I need a code that selects a certain radio button according to requirement...
    also how disable the option button using codes...

    Hello

    To select a particular option button, assign the value of this radio button in the Radio button group.

    And to disable a particular option button, write,

    SET_RADIO_BUTTON_PROPERTY('', '', ENABLED, PROPERTY_FALSE);
    

    Kind regards

    Manu.

    If my answer or the answer to another person has been useful or appropriate, please mark accordingly

  • check the radio button does not submit the form?

    Hello


    Your name:
    E-mail address:
    Contact no.:
    Topic:


    Message:




    Can not read the image? Click here to refresh

    I have a form on my site,

    and all his work.

    But I noticed that the information of the radio button

    is not sent?

    may an advise why?

    Also, can someone suggest how I can configure the name where the email?

    as when the email is downloaded, it come with my Web Host/Server name?

    Thank you

    < Center > < form name = 'contact' method = "POST" action = "form_process.php" >

    < table width = "306" border = "0" cellpadding = "0" cellspacing = "0" >

    < b >

    < td width = "93" height = "28" valign = "top" > your name: < table >

    < td width = "213" > < input name = "name" type = "text" >

    < table >

    < /tr >

    < b >

    < td height = "28" valign = "top" > Correo electronico: < table >

    < td > < input name = "email" type = "text" > < table >

    < /tr >

    < b >

    < td height = "28" valign = "top" > Contact No.: < table >

    < td > < input name = "contact" type = "text" size = "24" > < table >

    < /tr >

    < b >

    < td height = "85" valign = "top" > subject: < table >

    < td > < label > < input name = "category" type = "radio" value = "Appointment" / > appointment < / label > < br / >

    < label > < input name = "category" type = "radio" value = "Schedule" / > opening hours < / label > < br / >

    < label > < input name = "category" type = "radio" value = "Products" / > Products < / label > < br / >

    < label > < input name = "category" type = "radio" value = "Other" / > other < / label > < table > < /tr >

    < td height = "28" valign = "top" > Message: < table >

    < td > < textarea name = "message" = "24" cols rows = "5" > < / textarea > < table >

    < /tr >

    < tr > < td > < table > < td height = "85" valign = "top" >

    < br / > < img src = "captcha_code_file.php? rand = <?" PHP echo rand();? ' > '.

    ID = "captchaimg" >

    < br / > < label for 'message' = > enter the above code here: < / label >

    < br / > < input id = "6_letters_code" name = "6_letters_code" type = "text" >

    < br / > < small > can not read the image? Click on < a href = "" javascript: refreshCaptcha(); "> here < /a > to update < / small >"

    < table > < /tr >

    < b >

    < td > < table >

    < br / > < td valign = "top" align = "center" > < input type = "submit" value = "Submit" name = "submit" > < table >

    < /tr >

    < /table >

    < / form > < / center > < br / > < table >

    OK - I see what is happening. The script that determines the content of captcha also sets the session variable. To read this variable on the processing page, you need to enable sessions there too. -Change

    If (isset($_POST['submit']))

    on this subject.

    {if (! isset($_SESSION))}

    session_start();

    }

    If (isset($_POST['submit']))

    If there is an error of Captcha, you will also need to print that the visitor sees an indication that they do not have this right. There are several ways to do it, but probably the easiest is just to send them to the test to white form with an error message, so change that-

    Header ('Location: thank_you.html "");

    }

    on this subject.

    Header ('Location: thank_you.html "");

    } else {header('Location:captcha_error.html') ;}

    then create the captcha_error.html page that explains what that went wrong, with a link to the page of the form.

    See if that helps.

  • Deactivation / activation of the Radio buttons

    Hi all

    I develop application in Oracle Application Express 5.0.0.00.31.

    In my page, I created a tabular form by using the query

    SELECT

    "ROWID",.

    'EMPNO ',.

    'ENAME ',.

    'STATUS ',.

    "ACCEPT."

    FROM "EMP".

    STATUS and ACCEPT two columns are type of radio button with a static query as

    STATUS: STATIC2: new; N, entitled; A, completed; D

    ACCEPT: STATIC2: accept; F, rework; R

    My requirement is

    1. When STATUS =has ' this time then ACCEPT column boxes must be activated. (I)

    2. another in('N','A') of STATUS then ACCEPT column buttons Radio must be turned off

    Note: Later I hide status column. Accept that column must be specified. Based on the value of the STATE Accept column column

    Radio buttons work

    I put my sample application in

    https://Apex.Oracle.com/pls/Apex/f?p=28020

    workspace: myspace77

    user: comments

    password: apex_demo

    -What someone will help me in this regard?

    Thanks in advance.

    Kind regards

    Colette

    Hi Colette.

    Check your Application-> Page 1 28020. I've implemented the toggle the radio button.

    Here are the steps to accomplish the toggling the buttons in table form:

    • Added STATUS column with alias STATUSD in the form of your table.
    • Added real action "Run the Code JavaScript" in your dynamic action "updating of the form: turn radio buttons:

    Action: Run the JavaScript Code

    Fire on loading the Page: Yes

    Code:

    $('th#STATUSD').hide();
    $('td[headers="STATUSD"]').hide();
    $('td[headers="STATUSD"]').each(function() {
        var row_val = $(this).text();
        var row = $(this).closest('tr');
        if (row_val == 'N' || row_val == 'A') {
          row.find('td[headers="ACCEPT"] input[type="radio"]').attr("disabled", true);
        } else {
          row.find('td[headers="ACCEPT"] input[type="radio"]').removeAttr("disabled");
        }
    });
    

    Assigned items: no

    Kind regards

    Kiran

  • How to use the Radio button

    Hello

    In my form, I want the radio button.

    On the selection of this radio button user can change the status of "QC" for "STOCK".

    Initially, when he disabled status should be "QC".

    How to put this in my form guide me please.


    Maury

    Make a group of Radio (say RADIO_GROUP16) with 2 buttons radio (mean RADIO_BUTTON17 and RADIO_BUTTON18).

    Specify the initial value of Radio group to U
    Specify the value of Radio to R and U buttons

    and in the status field to write after outbreak.

    If: block. RADIO_GROUP16 = 'U' then
    message ("can not update status '");
    raise FORM_TRIGGER_FAILURE;
    end if;

    I guess that when you select the second radio button (with the 'R' value) then only you would be allowed to change the status.

    Please check the answer correct/useful if th answer was helpful

  • How to show or hide the region of the shuttle during the click on the radio buttons?

    Hello

    I'm new to JDeveloper. Here is my requirement.

    1. create 2 radio buttons: Yes and no and default displays "" selected radio button.

    2. create a region of shuttle with select query in VO.

    Query is:

    Select 'No group' for_user, for_pkg double null

    Union

    Select "Company" for_user, for_pkg "SEGMENT1" double

    Union

    Select 'Rental' for_user, for_pkg 'SEGMENT2"double

    Union

    Select 'Cost center' for_user, 'SEGMENT4' double for_pkg

    Union

    Select 'Project' for_user, 'SEGMENT5' double for_pkg

    Union

    Select "Intercompany" for_user, "SEGMENT8" for_pkg of the double

    order by nulls first for_pkg

    3. initially hide the region of the shuttle during the loading of the page.

    4. click on the radio button 'yes', display area of the shuttle with values at the head of list of query VO and empty list leak.

    5. new click on the 'no' radio button, he must hide region and so screen shuttle shuttle dynamically according to the selected option button.

    But my problem is I am able to hide area shuttle when the page loads at the beginning and after that, when I'm clicking 'Yes' radio button, is just to display area shuttle empty without value in the main list and once when I'm clicking 'No' radio button, it should hide area shuttle but he's not hiding. I used the RPP to show or hide the area Shuttle under certain conditions. I use JDev 10.1.3.3.0 version as we Oracle EBS version 12.1.2 in our society.

    Please find the attached draft and suggest me proper with examples of sample approach.

    Monika,

    I tried to get this working in the lower version of Jdeveloper and looks like it works.

    Can you make the change below and see what happens.

    1. modify your query to VO as below: (I replaced null with SEGMENT0)

    select 'No Grouping' for_user, 'SEGMENT0' for_pkg from dual
    union
    select 'Company' for_user, 'SEGMENT1' for_pkg from dual
    union
    select 'Location' for_user, 'SEGMENT2' for_pkg from dual
    union
    select 'Cost Center' for_user, 'SEGMENT4' for_pkg from dual
    union
    select 'Project' for_user, 'SEGMENT5' for_pkg from dual
    union
    select 'Intercompany' for_user,'SEGMENT8' for_pkg from dual
    order by for_pkg
    

    2. place VO execution to the processFormRequest:

        public void processFormRequest(OAPageContext pageContext,
                                       OAWebBean webBean) {
            System.out.println("In process Form Request");
            super.processFormRequest(pageContext, webBean);
            OAApplicationModuleImpl appModule =
                (OAApplicationModuleImpl)pageContext.getApplicationModule(webBean);
            String eventParam = pageContext.getParameter(EVENT_PARAM);
            System.out.println("eventParam: " + eventParam);
            if ("showHideShuttle".equals(eventParam)) {
                //  appModule.invokeMethod("deletetrailing");
                System.out.println("Inside If");
                OAMessageCheckBoxBean messageCheckBoxBean = (OAMessageCheckBoxBean)webBean.findChildRecursive("checkBoxBean");
                System.out.println("messageCheckBoxBean : " + messageCheckBoxBean);
                String messageCheckBoxBeanVal = (String)messageCheckBoxBean.getValue(pageContext);
                System.out.println("messageCheckBoxBeanVal: " + messageCheckBoxBeanVal);
    
                if ("Y".equals(messageCheckBoxBeanVal)) {
                    OAViewObjectImpl shuttleVO1 =
                        (OAViewObjectImpl)appModule.findViewObject("ShuttleVO1");
                    if (shuttleVO1 != null) {
                        shuttleVO1.setWhereClause(null);
                        shuttleVO1.setWhereClauseParams(null);
                        shuttleVO1.executeQuery();
                        System.out.println("Executed Query : " + shuttleVO1.getQuery());
                    }
                    OAViewObjectImpl shuttleVO2 =
                        (OAViewObjectImpl)appModule.findViewObject("ShuttleVO2");
                    if (shuttleVO2 != null) {
                        shuttleVO2.setWhereClause("1=2");
                        shuttleVO2.setWhereClauseParams(null);
                        shuttleVO2.executeQuery();
                        System.out.println("Executed Query1 : " + shuttleVO2.getQuery());
                    }
                }
                String[] name = { "RenderAttr1" };
                String[] val = { messageCheckBoxBeanVal };
    
                Serializable[] params = { name, val };
                Class[] paramTypes = { String[].class, String[].class };
                appModule.invokeMethod("setXXCustomPVOValues", params, paramTypes);
    
            }
    
        }
    

    3. move Spel link shuttle Bean for the region of header above.

    Some useful links for the shuttle Bean:

    Technology blog based in Java of Sushant: 13. Area of application OFA shuttle

    Framework OA Blog: control of the shuttle as part of OSTEOARTHRITIS

    See you soon

    AJ

  • Delete all the radio buttons

    Hi, is anyway to find and remove all the ' Radio buttons ' in my form? Thanks in advance...

    It's much better for you if you write the code yourself. So you know and that you know exactly what you, and if things go wrong, you are much more likely to fix it. Or, if you need to adapt it for example delete all signature fields, you would know how to make this change as well.

    Take a look at these pages of documentation of JavaScript, they illustrate the necessary JS methods:

    Doc.numFields - DC Acrobat SDK Documentation

    Doc.removeField - DC Acrobat SDK Documentation

    Doc.getField - DC Acrobat SDK Documentation

    If you need help with Acrobat JavaScript in general, take a look here: Beginning JavaScript for Adobe Acrobat

    And, just to help you get started, here's how I would implement this feature:

    for (var i=(this.numFields-1); i>=0; i--) {
        var f=this.getField(this.getNthFieldName(i));
        if (f.type == "radiobutton") {
            this.removeField(this.getNthFieldName(i));
        }
    }
    
  • Status field change based on Radio button selection

    I have a form that has a text field 'Status' and several radio buttons named: submitted for approval, approved, not approved, items received and distributed.  I need the status of self serve option button is selected.

    For example, when the 'Submit for approval' option button is selected, I want the State to be "Submitted for approval", then when the 'Authorized' option button is selected, I want to be "authorized" status and so on.  How can I do this?

    Thank you!

    Here is one approach.

    Steve

  • Make the field required using the Validation

    Hello

    I use R17 and want to make a field required by the adding validation [< field >] IS NOT NULL

    Strangely, this does not work on a new Record. a NULL value is always accepted. It only works for a modified record.

    has anyone in front of it too? or is this a BUG in my environment.

    Any ideas?

    Just to check if it works, I tried a [< field >] validation IS NULL and it worked correctly on New and updated records.

    Thank you
    Royston

    Hello

    There is a solution to achieve this. PL download the configuration steps of the below mentioned link.

    http://DL.dropbox.com/u/3971519/make%20A%20Field%20Required%20Using%20Advanced%20Field%20Management.doc

    Let me know if you have any questions.

    Rgds,
    Amit samir

  • resize the radio button

    Hello

    How to resize the radio button face before image.i am using labview 8.6

    "" To create a resizable option button, right click on the option button control and selectreplace"classic"Boolean Classic'Round/Square option button. "" You can also place a Radio button Classic Round/Square directly on the front panel or in the box of radio buttons by right-clicking on the front panel to display the controls palette and selecting classic "Boolean Classic'Round/Square option button. This new radio button is now resizable.

Maybe you are looking for

  • Load Firefox on Amazon Fire TV Stick - side does not fit screen

    Aside I loaded Firefox apk on Amazon fire t tv to activate my fire t tv in a device capable of web browser. Works fine, but the image on the TV screen is about 2% to 4% too large for the screen. Kodi (other side responsible apk) allows photo 'zoom' t

  • I won a mini iPad 4 generation how to get applecare for my iPad

    Hi I have a question I win an iPad mini 4 generation is possible to get Applecare for my mini iPad 4 given that I have not received. Thank you for your support Rolly

  • iTunes won't install correctly

    Hello I am using windows 7 32 bit. Updating to iTunes, I encountered a problem that many seem to have. I've deleted and reinstalled iTunes 10 times with the instructions in the following link: https://support.apple.com/en-ca/HT204275 I usually find m

  • If the file exists, create a new file...

    Hello I am using Labview to make a ranking system. When it will create a file that already exists, I want a number that will be concatinated at the end of the file. For example if I record without title, I want that it automatically create Untitled-1

  • Restrict logon on the basis of the time and days

    In windows XP Professional when net use /times:M - his; 10-22; order is applied, it gives an error. Invalid date range is specified. Also, if we want to change the time of 10-22-9-21, it does not change. It says command has completed successfully, bu