FormCalc or Javascript for the radio buttons?

I need to write a script that uses radio buttons.

If a radiobutton is selected (my radiobuttion is called rbJanuary) then textbox1 = textbox2.

How I write this and it's in FormCalc or Javascript? Thank you!

Hello

It doesn't matter what language you use for your request, it will work in both while FormCalc has a thinner syntax.

FormCalc:

if ($ eq 1) then
          Textfield1 = Textfield2
else
          Textfield1 = ""
endif

JavaScript:

if (this.rawValue === "1") {
          Textfield1.rawValue = Textfield2.rawValue;
} else {
          Textfield1.rawValue = "";
}

Tags: Adobe LiveCycle

Similar Questions

  • Label for the radio button question

    Hello

    I use a group of radio buttons in my Vbox container and generating radio buttons for this group at run time according to certain conditions.

    I am able to get the list of all radio buttons in execution, but the problem here is that I put the label property for each of the option button in the radio button group, but I can't see the label on my user interface with the exception of the small circle of option button. I tried I tried different ways of setting the labelPlacement and modification of the container for these components button radio etc etc, but in vein.

    If someone met a similar situation or know something about this issue, please let me know.

    See you soon,.

    G1

    What happens if you call the method addChild as follows: -.

    callLater(listWrappers.addChild,[newRadioButton])
    

    I think that maybe the components are added until they are ready...

  • Change the size of text for the radio button label

    Is it possible to change the size of the text of the label of a radio button component? I am creating a questionnaire for young people and the need for a much larger text...

    I know I could have no label and a text box, but the text box is not "clickable" while the label is.

    Thank you.

    ActionScript 3:

    var _textFormat:TextFormat = new TextFormat();
    _textFormat.font = "arial";
    _textFormat.size = 15;

    myRadioButton.setStyle ("textFormat", _textFormat);

    ActionScript 2:

    myRadioButton.setStyle("fontSize",15);

  • Background color for the radio button does not change during execution

    Hi everyone,

    I set the background color of shapes in blue in the formsweb.cfg file. I used 4 radio buttons in the form and at the time of execution, the background color of the option button is gray.

    So I used SET_ITEM_PROPERTY trigger to set the background color, but it is not chaning. It remains grey.

    SET_ITEM_PROPERTY('TRANS_MASTER.) MODE_OF_PAYMENT', BACKGROUND_COLOR, 'r90g117b148'); - Radio button group

    SET_ITEM_PROPERTY('TRANS_MASTER.) CASH', BACKGROUND_COLOR, 'r90g117b148'); - Radio button
    SET_ITEM_PROPERTY('TRANS_MASTER.) CREDIT_CARD', BACKGROUND_COLOR, 'r90g117b148'); - Radio button
    SET_ITEM_PROPERTY('TRANS_MASTER.) CREDIT_CUSTOMER', BACKGROUND_COLOR, 'r90g117b148'); - Radio button
    SET_ITEM_PROPERTY('TRANS_MASTER.) REDEEMVOUCHER', BACKGROUND_COLOR, 'r90g117b148'); - Radio button

    I used the RGB color as r90g117b148.

    Please help me,

    Thanks in advance,

    Published by: lola amrani may 5, 2010 07:56

    Hello

    When the desig, assign ownership of background color for group of Radio buttons and boxes option for

    François

  • Dysplaying for the radio button question

    Dear,
    I have 2 parts on my page, first of all, I have a region with my button element radio one after my display area.
    below my radio button element, there is a space empty and then my second region.
    I have two areas side by side.

    I do the test with a text element in the first region and it works very well, the two regions are side by side.

    Thx for your help.

    Hi Celio,

    Look at your main editing page in areas... you have 1 between envir and parts of equipment which is not displayed? If so, then remove this area...

    otherwise look the envir & regions material to see if there is anything the atrribute cell / or pre/post-upgrade shaped.

    If there is no reason then only start to redo the page (such as a new page) and see how it works correctly.

    Mike

  • Cannot change the color of the Label for the Radio button

    Simple question...

    Why I can't change the color of radio button to white?

    Code:

  • 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

  • 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");
    
  • State of the radio button

    Hi all

    I have two items on a page: an option button ('yes' and 'no' options) and a text element. If I select 'Yes' for the radio button item, I want to become read-only, the text element. How would I do that?

    Thank you!
    Adina

    Great! so if your question is entirely answered please mark so and shut up.

  • 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));
        }
    }
    
  • 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.

  • Average of the radio button selections, but exclude the equation 0

    This should be simple.  I've seen a lot of posts which should have led me to a Twitter.com response, but I still have trouble.

    Here we go:

    (1) I have 9 groups of radio buttons named: GMR1. 1_Score; GMR1. 2_Score; GMR1. 3_Score; GMR1. _Score 4; GMR1. 5_Score; GMR1. 6_Score; GMR1. 7_Score; GMR1. 8_Score; GMR1. 9_Score

    (2) each group of option buttons buttons 4 with the same values in each group:

    • "NA" where I put the Radio button choices under the Options tab = 0
    • "Fair" where I put the button choice Radio under the Options tab = 1
    • 'Good' where I put the Radio button choices under the Options tab = 2
    • 'Great' where I put the Radio button choices under the Options tab = 3

    Thus, the shape looks like a little at:

    GMR1. 1_Score

    • NA
    • Just
    • Good
    • Large

    GMR1. 2_Score

    • NA
    • Just
    • Good
    • Large

    and so on.  The user chooses a 1 option for each question.

    My goal is to get an average that excludes the selections of NA.  Compared with this average, I want to assign the specific text to appear.

    If I did it in 2 steps in excel, my formulas could look like:

    C7 = SUM (range) / COUNTIF (range, "> 0")

    = IF (C7 < 2, "overall score is fair, IF (C7 < 3, 'Overall rating is good', IF (C7 > = 3,"overall score is great!")))

    I think to that the following should work to count all selections does not match "NA" by excluding getField ("GMR1." + i + "_Score") .value == 0 a counter like the one below, but it is not!

    (The here's how I'm playing the part of the excel formula COUNTIF)

    ****************************

    var counter = 0;

    for (i = 0; i < = 9; i ++)

    {

    If (getField ("GMR1." + i + "_Score") .value == 1) counter ++;

    If (getField ("GMR1." + i + "_Score") .value == 2) count ++;

    If (getField ("GMR1." + i + "_Score") .value == 3) counter ++;

    }

    If (counter > 0) {}

    Event.Value = counter;

    } else event.value = "";

    ****************************

    The Sum (range) is simple enough using the "value is the sum "on the calculation of the properties of the text box tab.» But if I wanted, it's all happening in a block of code, then that won't work for me.

    ****************************

    The assignment of text based on the value average; I haven't got there yet.

    ****************************

    Help, please.  There must be a way to do all this in a fairly simple code that is simply eluding me.

    See if to change this instructs the following assistance:

    for (i = 1; i< 10;="" i++)="">

    It should have been an error in the JavaScript (Ctrl + J) console which provides clues as to what is wrong.

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

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

Maybe you are looking for

  • Thunderbird 38.1 cursor position is incorrect

    I've just updated Thunderbird to 38.1 on my Windows 7 laptop.Now the cursor position is incorrect. When I move the mouse around, I put on 3 lines below the button, I want to click to be able to click.It's very annoying. I don't see the error describe

  • I can not connect to twitter

    I use the latest version of firefox aurora I plu adblock and lastpass extensions. I can not connect to twitter. When I click to the "connect" button it stucks on the login screen.

  • What languages TestStand is written in?

    I was just curious to know if anyone knew what languages TestStand is written in. I guess his afflicted a language object-oriented and not of LabVIEW...

  • Laptop screen starts flashing and white lines appear

    While working on my laptop of her debut screen flashing and white lines begin to appear in this topic. And sometimes she closes down.my laptop is Acer company. R3 - 471 series.

  • Are popups in activity report?

    He showed on the activity report that my son has tried to access Facebook 54 times. He swore that it didn't, so I tested it myself under his log-in I accessed both, and he showed on the activity report I tried accessing it 4 times.  The only thing I