Calculation of the numeric fields radio button and checkbox-based response

I am to change a form that was created by someone else.  I added checkboxes and radio buttons based on the need to form. I would like for the amount of check calculate automatically based on the selection of a radio button.  I've implemented some numeric fields to play with adding the amounts and placed them in the field 'Amount to check', but I can't seem to calculate.  Once I have to calculate correctly, I need to know how to automatically enter a number in the appropriate digital field based on the option button or check box selected.  Here is a picture of what I've put up.  Help, please!  I read all the forums, watched the videos and tried everything.  I'm so frustrated.

MemberStatusHelp.jpg

Don't know if I have the layout if correct me if Im wrong. I assume you have a radio button group on the top line for the first 3 check boxes and boxes (when the user selects one) for the following 2 lines (where the user can select independently of the other 3 above) with a final calculation at the end to check the amount field.

You can either place the code on each change of each checkbox/radio button event to recalculate or just do it on the final checksum field. I tried putting a calculate on the last field to check the quantity, and it seems to do what it takes.

Try this in the case of calculating the amount of check field

var membershipAmount = 0;
if ( (RadioButtonList.rawValue == "2") || (RadioButtonList.rawValue == "3") )
{
    membershipAmount = 35;
}

if (CheckBox1.rawValue == "1" )
{
    membershipAmount += 15;
}

if (CheckBox2.rawValue == "1" )
{
    var txtAmount = TextField3.rawValue;
    var amt = 0;
    if ( (txtAmount != null ) && (! isNaN(txtAmount) ) )
    {
        amt = parseFloat(txtAmount);
    }

    membershipAmount += amt;
}

this.rawValue = membershipAmount;

Tags: Adobe LiveCycle

Similar Questions

  • Radio buttons and checkboxes

    Does anyone know how the radio buttons and check boxes can be added to a site built with Muse from Muse Web does not come with these features?

    Hello

    Muse currently has no drop-down lists, radio buttons option and checkboxes in forms. You can check with the help of Adobe FormsCentral, Jotformor Wufoo and inserting them by object > insert HTML code as alternative forms of the Muse, as these forms will have lists, buttons, and check boxes you want.

    Another way, if you publish your site to Business Catalyst, then you can create forms in the BC admin section and copy the code from html form in the Muse page that will make the since you created in British Colombia in your Muse site page.

    More details:

    http://helpx.Adobe.com/business-catalyst/using/create-insert-form.html

    Thank you

    Sanjit

  • How can I add some radio buttons and textbox on the Web

    Hi friends,

    I have a few critical requirements for my application:

    1. There should be a background image.

    2. I need to have 2 radio buttons and a text box. where the user is allowed to give feedback.

    How can I achieve this requiments.

    What ui component I need to use: form or canvas.

    If form, so how can I set the background.

    How can canvas, I add the boxes to option and TextBox.

    can someone suggest me please.

    Thank you

    Maury.

    Thank you very much for your answer.

  • The award of radio buttons to the signatories Echosign.

    I have a form of EchoSign, which must be completed by the signer1, but cannot be modified by the subsequent signatories. I put all the fields must be attributed to the signer1, but the default value of "Anyone", radio buttons and I can not change this setting.

    Hello Paula3869,

    You can assign the specific role of radio buttons according to the signer by double clicking on it and selecting role as E-sign of Signer1, 2 as needed. Here is the link for reference:

    https://helpx.Adobe.com/content/help/en/document-cloud/help/field-roles.html

    Kind regards

    -Usman

  • Radio - text field - radio button

    How associate you two radio buttons to work together when you need to have the text in the middle of the radio buttons? (below the first radio button there are two text fields)

    It's a fluid subform and everytime I try to "Pack in the new group of radio buttons", it moves the text fields below two boxes.

    • radio button

    text field for the text field

    • radio button

    Hello

    use a subform set, where you can also your radio buttons and textfields manually and put this subform in you flowed subform.

  • radio buttons and PHP

    I'm having a problem getting data from php radio button and I can't seem to find answers. My project is simple, I have a group of option buttons, when one is selected and you press "submit" button I want data from the option box to fill in the subject line of an email and send it. It sounds simple, but I'm having a lot of problems to understand and would appreciate any help I can get. I'm good (not great) with flash, ok with PHP, but for some reason that this takes a lot of time to figure out. I can make a form work with input fields, but not with database radio button.

    You can do what you want, but not the way you did it... Close tightly.  You don't put quotes in the middle of the url/request and you don't start off the power of the query url with an ampersand string (and).  Use a question mark (?) to identify the beginning of the query string.  And trade is used to identify the arguments separated from the chain.

    getURL ("mailto:[email protected]?subject=dynamic or text here entry & body = this is the message");

  • Check box if the numeric field is equal to the value

    Newbie needs help!

    I am writing a script to check a box, but only after a numeric field adds up to "4".

    If you look at my attachment, "Student 1" has four check boxes (skills before the course, courses, etc.).  Each time that these boxes are checked/unchecked, the numeric field + or - 1 for the rawValue.  The script that I have problems with is on the box next to student 1...

    Here's the script of 'calculate' attached to this box:

    If (stu1_results.rawValue == 4) {}

    CheckBox_stu1.rawValue = true; Select the check box

    else {}

    CheckBox_stu1.rawValue is false; Clear the check box

    }

    Any advice would be great!

    Mike Schaefer

    (blinkyguy)

    There were two things wrong with your code. Logically, it was fine, but you have been mixing an entitled, declaration of the NTS and a comparison. In an if statement if you wantt o compare two values that you need two equal signs. If you want to assign a value to another, you need a single equal sign. Who was number one. The second is when you assign the value of the checkbox. The power values are 1/0 not true/false. So, you can either modify your code to assign a value of 1/0 instead of true/false or modfiy the box to the true/false as values instead of 1/0.

    The code should look like this:

    If (stu1_results.rawValue == 4) {}

    CheckBox_stu1.rawValue = 1;

    } else {}

    CheckBox_stu1.rawValue = 0;

    }

    Paul

  • The "Open new tab" button and the shortcut "Ctrl T" fail to open a NEW TAB

    The "Open new tab" button and the shortcut "Ctrl T" fail to open a NEW TAB

    Install Firefox 4 beta that healed, but brought other problems.

    The Ask toolbar is initially in the version of Firefox 3.6.13. Obviously something in this extension is not compatible with a Firefox security patch. Disable this extension or uninstall it.

  • change field bitmap on the focus of radio button

    Hello

    I have 4 radio buttons in a group of radio buttons. Each of the radio buttons has a picture that is linked to. I want to change the image of a bitmap field whenever a radio button got the update.

    How can I do?

    Thanks in advance.

    Call super.onFocus and super.onUnfocus, as well as the change of the bitmap of treatment.

  • fields to show or hide the function of radio button

    Hi, in my form there are two radio buttons available. one is for 'Yes' and other is for the 'no '. There is also another 6 available and that all fields 6 fields are hidden by default.  If I click on 'Yes' below 3 fields should visible.

    text-1

    text-2

    text-3

    If I click on "no" above 3 fields must hide & 3 fields should visible below.

    text-4

    text-5

    text-6

    then u can pls give me JavaScript to manage my requirement. Thanks in advance.

    Hiding and showing form fields by Thom Parker

    Disabling (graying-out) form fields by Thom Parker

  • Structures of the event, radio buttons and the property disable node

    Hello

    I have a very simple VI intended to simulate what I'm trying to accomplish in my program... in fact, when the 3rd option button is selected, I want the text box is disabled and grayed out.  Instead, the case of the event seems to perform the action on the * next * the iteration of the loop.  Can someone tell what I am doing wrong?

    Thank you!

    The terminal of the radio control is inside the case of the discipline concerned.

    (.. .or you can read the new value from the data event [NewVal] node instead if you need the Terminal also).

    Currently, it is read immediately and the value placed in the tunnel. When the event is triggered, the expired value is read from the tunnel.

    Once you pass the terminal in case of the event, it reads only after that the value has changed, and you get the current value.

    Also:

    • You also need an event for the button stop, otherwise the VI cannot be stopped easily.

    • You have the same property node in any of the structure of the case. Put it down after the structure of the case and one is enough.

    • Things that are different are inside the structure of the case.

    • You can combine the cases that are the same (not the default)

    • You can remove the case of timeout.

  • How to make the non selectable radio button field

    I want to UN selectable radio button field average user will be not be able to select. How can I achieve this. Please help me for this.

    You could remove them from the screen, or do unfocusable or make unmodifiable.  The choice will depend on what you're trying to reach.

  • Need to concatenate the put date in the form field and the numeric field

    Hello

    I have a date field and a 4-digit numeric field in my form. I want to concatenate these fields in a new field in the following format: "YYYYMMDD [4-digit numeric field]."

    For example

    Date: June 4, 2015

    Number: 1234

    Concatenated field: 201506041234

    When I try to concatenate the value of date, I get the string value is entered instead of the actual date (e.g. "4 June").

    Thank you.

    OK, the script might like:

    Get the values of field as strings

    var sDate = getField("date1").valueAsString;

    Var Nums = getField("number1").valueAsString;

    Convert string to date in a date object

    Kai var = util.scand ("mm/dd/yyyy", sDate);

    Concatenate number and the date strings

    var sDateNum = util.printd ("YYYYMMDD", letter) + nes;

  • Radio buttons and the theme of the ceremony

    This is in AS2.

    Is there an event "onFocus" for individual or is radio buttons it limited to the radiobutton group?

    If there is an event of development for the buttons, how to I set up?  I've set up an event listener with an event 'onFocus', the 'gotFocus"event, the 'focus' event and nothing does not fire...

    Kind regards

    Rich

    If you look through the help documents, all of the events associated with the radio button class are listed.  There is an event focusIn inherit from the UIComponent class with the option button.  Here is an example to use it...

    var listenerObject:Object = new Object();
    listenerObject.focusIn = {function (eventObj:Object)}
    trace ("radiobutton1 just focus");
    };
    RadioButton1.addEventListener ("focusIn", listenerObject);

  • define a field as requires it, from the Group of radio buttons

    I saw not a strong response if you can set the field as required - in this case a date field based on the selection of a previous radio button.

    A post was that you couldn't do with calc form, it will have to be JS.

    I'm not the best at that.  The form is sent by mail on a web server for data capture.

    Any help would be appreciated.

    Hello

    Yes, you can change the status of 'necessary' to one or more fields by using the validate.nullTest in Formcalc or Javascript. You can use script like this in the output of the option button event:

    If (this.rawValue == 1) then
    DateTimeField1.validate.nullTest = "error".
    on the other
    DateTimeField1.validate.nullTest = "disabled".
    endif

    'error' sets the field referenced on required; considering that the 'disabled' changes back to not required.

    Good luck

    Niall

Maybe you are looking for