How to use a radio button state to calculate a value in another field

I produce a registration form that uses radio buttons to specify an accommodation meals and requirements for individual registrants - separate option buttons select the meal (YES or NO) plan and the type of accommodation (NO THANKS, A, B or D).

I want to ask the State of these boxes to option and, if selected (set), calculate the amount to pay for registration in the related areas of subtotal ( Plan -meals and accommodation).  In other words, based on the costs of $ for YES, A, B and D on a per Member basis, I want to enter an amount of $ in the subtotal fields 'meal Plan' and 'accommodation'.  In the ABSENCE or NO THANKS is selected, no calculation is necessary.

The form attached, if a given registrant (for example Reg01) chooses to include a meal plan (selected option button M01-Y ), then in the numMEAL subtotal field must increment of $80.  Similarly, if Reg01 wants to book a double room (R01-D) I want to add $268 for the subtotal numROOM field.  It goes without saying that the numMEAL and numROOM fields must reflect the cumulative amount based on the requirements of all listed registered (Reg01 via Reg05)

Example:  I want to use a FormCalc calculation something like... (If M01 - Y is set then $80) + (if M01 - Y is set then $80) + etc ... to calculate the value of the field numMEAL and any other equivalent expression for the numROOM field.

Also (but don't feel you have to answer), in the design-time view how to configure to display radio button selections No. or NO THANKS as the default selection (set) such as the other buttons in the PLAN of FOOD groups and the TYPE of ROOM are not selected (not set) - (I think that would correct indications of error that I see).  I managed to configure this radio button state initial for groups TYPE CITIZENSHIP and PAYMENT of the form but can't seem to do for groups of PLAN of MEALS and the TYPE of ROOM .

Thanks in advance for your help.

I think this is what you wanted... .view attachment. The problem with multiple selections in Design view is cause-in the name. I changed it to the rooms because it is to be interpreted as a subtraction. You must change them in meal option buttons as well and that will clear up the design problem you mentioned.

To get the room to add correctly, I changed the value for the room price. Then on the event rentals field calculate I simply add all room radioButtonList. The calculate event fires whenever a room is changed. For meals, I put the code on the RadioButtonList to every meal (just to show you a different technique). You could od it exactly the same way as the rooms but it is up to you.

Paul

Tags: Adobe LiveCycle

Similar Questions

  • 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 get the workflow rule to copy a picklist value in another field?

    I'm trying to copy the selected value in a list, which we will call "OldField" in the accounts and duplicate exactly in another version of this list of choices, that we will call "NewField" (with all the values in the drop-down list exactly copied). OldField is a required field, but this isn't NewField.

    NewField is configured with a default value of OldField, and I created a new rule of workflow as follows:

    * (IfNull (PRE ("< NewField > '"), 'Y') = 'Y') OR (PRE ("< OldField > '") <>[< OldField >]) *.

    When this condition is met, I created an action to a value equal to NewField * [< OldField >] *.

    When I edit an existing account, it copies the value very well, but when I create a new account record and click on save button duplication, fails to occur.

    Does anyone have any advice as to what I should do to correct my workflow rule?

    Published by: [email protected] on April 3, 2009 08:04

    Add the default value to the new field and check the default post.

  • How to use the prtsc button please, so I can capture Bank to receive the shipment?

    How to use the prtsc button please, so I can capture Bank to receive the shipment?

    If you can view receipts from the Bank to the screen... just left
    Click on your print screen button to copy the screen of your
    Windows Clipboard. Then... Open Windows Paint and
    Reach... Editing / paste. Then go to... File / save as / JPEG.

    If the file needs cropping... you can use the 'Fix' edition
    option in the Windows Photo Gallery.

    Another option:

    If you run any version of Vista Basic...
    the capture tool can be a better tool for the job:

    Use capture tool to capture screenshots
    http://Windows.Microsoft.com/en-us/Windows-Vista/use-Snipping-Tool-to-capture-screen-shots
    (Vista Home Premium, Business, Ultimate, Enterprise)

    Windows Vista - activate the Vista Snipping Tool
    http://www.PCWorld.com/article/137099/activate_vistas_snipping_tool.html

    Vista tutorial - How to use the tool captures of Vista
    http://www.Vistax64.com/tutorials/148532-how-use-Snipping-Tool-Vista.html

  • How can I add radio buttons to my form?

    How can I add radio buttons to my form?

    An update was released today which includes radio and checkbox button groups.

    Please update to the latest version.

    Thank you

    Sanjit

  • How to use Window.Print button attributes

    Hello

    I want to print a report using an impression button.so I use the function Window.Print in button attributes. But pop print screen doesn't pop up. How to use Window.Print button attributes.


    Thank you
    Maury

    Maury,

    The value target button in the form of URL and put after js for target URL

    javascript:window.print();
    

    see you soon,
    Hari

  • How do I delete an article based on the value of another field


    I have a pdf form that I added to the text fields. My challenge is that of the financial section of the form, if the value of a specific field is empty or null, I blank block of signature financial review.  I've been trying to find a way to cover the area of signature with a white box or have a text box with signature block text appear or disappear depending on whether the value is zero or empty.

    If seen many answers on how to make the field itself disappear based on value, but I did find something that causes another field or shape appear or disappear depending on the value of another field.

    Please try the following script,

    var signid = true;

    If (this.getField("finan").value! = 0) signid = true;

    of another signid = false;

    If (SignID) this.getField("signaturefield").display = display.visible;

    else this.getField("signaturefield").display = display.hidden;

    Please let me know if it solves the problem.

  • How to use an option button in the report of the IR to redirect itself to view another report

    IHH team, I have a requirement where I have an IR report option button. By clicking this radio button, another report appears under the main report with few other details of the selected item. The idea was to have a zoom of report as seen in the Group of MS Excel.  However, I am stuck because I don't want the user to press the "submit" button each time after selection of a radio button. I want the result to Report2 to change on the selection radio button in report 1.

    Please notify.

    Kind regards

    Samar

    for example

    Report1 details

    RB col_id text1 text2 Text3

    1 . abc erd 45

    2 ghj dfgrt 67

    Suppose the user selects the first option button, the page displays another report with details below the main report

    Report1 details

    col1_id text1 text2 Text3

    RB1 1 abc erd 45

    2 RB2 ghj dfgrt 67

    Report2 details

    col1_id col2_id text1 text2 Text3

    1 11 ihj pkpk 78

    1 23 ljl kpk 45

    user6255521 wrote:

    Please update your forum profile with a real handle instead of 'user6255521': Video tutorial how to change username available

    When asking a question, always include the information referred to in these guidelines: How to get the answers from the forum

    I was able to achieve using the linl. I created a link on the col_id and it redirected to itself after you set the value of col2_id. I also changed the style of the button link and so col1_id looks like a button.

    However, I was interested to know if we can achieve this with a radio button and use the update form the Report2.

    You mean like this? It is very simple to implement using dynamic measurements.

    1. Add a column of radio group to the main report:

    select
        apex_item.radiogroup(1, d.department_id) rbg
      , d.*
    from
        oehr_departments d
    

    APEX 5.0, apply a static ID "rbg" to the column of radio group.

    2. create a hidden page unprotected element to maintain the value of the selected radio button to use as a filter in the detailed report. In the example, it is P31_DEPARTMENT_ID.

    3 refer to the element of filter in the WHERE clause of the report detail:

    select
        *
    from
        oehr_employees
    where
        department_id = :p31_department_id
    

    Set the Items property of the Page to send in the definition of report P31_DEPARTMENT_IDretail area.

    4. create a dynamic action of change on the Group of radio buttons:

    Event: Change

    Selection type: jQuery Selector

    jQuery Selector:td[headers="rbg"] input[type="radio"]

    Real Actions

    Seq: 10

    Action: Set value

    Type of value: Expression of JavaScript

    JavaScript expression:$(this.triggeringElement).val()

    Selection type: Article (s)

    Point: P31_DEPARTMENT_ID

    Seq: 20

    Action: Discount

    Selection type: Region

    Region:

    The best way to get help with something like that is for you to reproduce the problem with an example on apex.oracle.com. Set up as much as you can before posting here and when you post the question, share identification information of developer comments for the workspace so that we can see the example and work the solution directly.

  • How to maintain pointing a button state, while it is in its current page?

    Hello

    I'm just a beginner in actionscript 3. I have this code on the navigation using the movieclip buttons. I just did the currently selected button disabled when it is in the current page, but I can not just know how to keep it in its stationary State (he keeps returning to its normal state). Any ideas, your help will be very appreciated. Thank you.

    Here is the code I wrote on the first frame of the timeline (scene1) main, I have 4 buttons namely mcButton1, mcButton2, mcButton3, mcButton4 and 4 images labeled page1, page2, page3, page4. :

    var page: String;

    var btnArray:Array = [mcButton2, mcButton3, mcButton1, mcButton4];
    var pageArray:Array = ['page 1', '2', 'page 3', 'page 4'];

    for (var i: int = 0; i < btnArray.length; i ++) {}
    btnArray [i] .buttonMode = true;
    btnArray [i] .addEventListener (MouseEvent.CLICK, onMouseClick);
    btnArray [i] .addEventListener (MouseEvent.ROLL_OUT, onMouseOut);
    btnArray [i] .addEventListener (MouseEvent.ROLL_OVER, onMouseOver);
    }

    function onMouseClick(event:MouseEvent):void {}
    for (var i: int = 0; i < btnArray.length; i ++) {}
    If (event.currentTarget is {btnArray [i])}
    btnArray [i] .mouseEnabled = false;
    page = pageArray [i];
    Play();
    }
    else {}
    btnArray [i] .mouseEnabled = true;
    }
    }
    }

    function onMouseOut(event:MouseEvent) {}
    event.currentTarget.gotoAndPlay ("out");
    }

    function onMouseOver(event:MouseEvent) {}
    event.currentTarget.gotoAndPlay ("over");
    }

    use:

    var lastClickedButton:MovieClip;

    var page: String;

    var btnArray:Array = [mcButton2, mcButton3, mcButton1, mcButton4];
    var pageArray:Array = ['page 1', '2', 'page 3', 'page 4'];

    for (var i: int = 0; i< btnarray.length;="" i++)="">
    btnArray [i] .buttonMode = true;
    btnArray [i] .addEventListener (MouseEvent.CLICK, onMouseClick);
    btnArray [i] .addEventListener (MouseEvent.ROLL_OUT, onMouseOut);
    btnArray [i] .addEventListener (MouseEvent.ROLL_OVER, onMouseOver);
    }

    function onMouseClick(event:MouseEvent):void {}
    for (var i: int = 0; i< btnarray.length;="" i++)="">
    If (event.currentTarget is {btnArray [i])}
    btnArray [i] .mouseEnabled = false;

    lastClickedButton.gotoAndPlay ("out");

    lastClickedButton = MovieClip (event.currentTarget);

    page = pageArray [i];
    Play();
    }
    else {}
    btnArray [i] .mouseEnabled = true;
    }
    }
    }

    function onMouseOut(event:MouseEvent) {}

    {if(lastClickedButton!=Event.currentTarget)}
    event.currentTarget.gotoAndPlay ("out");

    }

    }

    function onMouseOver(event:MouseEvent) {}
    event.currentTarget.gotoAndPlay ("over");
    }

  • Preloads the Radio button States

    I have a multiple choice quiz that uses radio buttons for users to choose a response from A to D. It tells you if you are correct or not, and allows you to progress when you give the right answer. The answers are stored in an external database. I remember the latter on the loading module in variables, but I need to know how to use the variable automatically check the correct in each question when a user returns in the quiz. So, they can see their previous answers because these boxes are automatically checked.

    Can someone help me to do this? I can't make it work.

    "Mark Tomlinson" wrote in message
    News:epcupt$9rd$1@forums. Macromedia.com...
    > I think you need this line instead of Amy:
    >
    > Checked@ChildNumToID (IconID,
    (> Code (MultipleAnswer [CurrentPageNum])-(Code ("A") - 1)): = TRUE - that is to say you
    > need a true assignment

    You are right. I tend to forget this part when the quick entry.

    > You must also make sure that the file is set up as she says to
    > a framework and your answers must be in a list called MultipleAnswer
    > which will look something like ['A', 'C', 'B', "D"].
    >
    > You can set as you spend your response in the interactions of the question
    > with something like [CurrentPageNum] MultipleAnswer: = 'A' (assuming they had
    > selected A and we are in the path of the answer: a.
    >
    > You can store the list in your database to the exit and re initialize it
    > the database when you then run the piece.
    >
    > You should be able to get it going now, I think?
    >
    > Mark
    >
    >
    > 83Dons wrote:
    > I can't seem to get your code works amy, any chance you could send me it
    > complete a question so I can try to get this working?
    >>
    > Much obliged
    >
    > --
    > ------------------------------------------------------
    > Authorware media synchronization command:
    >
    > www.authorwarextras.co.uk--> orders
    >
    > Synchronization of media with ease!
    >
    > EuroTAAC eLearning 2007
    > www.eurotaac.com
    >
    > www.AuthorwareXtras.co.uk
    > www.freelists.org/list/flashelearning

  • How to use the "back" button to return to the new page tab in FF15

    In FF14 I could
    (1) open the new tab and see the new tabs with thumbnails of page 9 page.
    2) click on a thumbnail and go to this page.
    (3) click on the back of FF button, who took me to the new tab page so I could click on some other thumbnail.

    In FF15 which doesn't seem to work. In step 3 above, the previous button is not active/active and so I can easily go back to the new page tab. How to get back in a simple way?

    No, you can no longer use the previous button back to the topic: newtab page if you have opened a page by clicking on one of the slots on this page.

    You need to close the tab and open a new tab to get this page or set as the home page and click on the Home button.

  • How to use the "next" button in the XML - SPA504G directory

    I have basic XML working directory (CiscoIPPhoneDirectory) stuff on the SPA504G. However, I realize that I can view only 32 entries and I see that there is a 'next' button activated, but it seems to do nothing. How can I link this button to get a new url to the next page of 32 results - I'm ok on the side of this server.

    Looking at the xsi_dev_guide (which I'm not sure applies to the SPA504G), discussions about adding an HTTP header refresh, but it is a little vague and every time that I add it to the HTTP response, the barfs (invalid response) spa504.

    Do I need to program the next key to send a URL or something?

     Do I need to program the next softkey to send a URL or something? 

    Yes, certainly. The 'Next' button is not a magic key of any kind. It comes standard "ask the HTTP Server page" key. It must issue an HTTP request for the page.  Content page previous application key as "Prev".

    If you need something like:

      Next https://.../Cisco/Directory.php?page=2 3  

    Note that you should NOT claim button Next on the last page. Phone will choke on empty CiscoIPPhoneDirectory (no entry for example). For the same reason, you must not declare Prev key on the first page.

     Looking at the xsi_dev_guide (which I am not sure is applicable to the SPA504G), talks about adding a Refresh HTTP Header, however it is a bit vague and whenever I add it to the HTTP response, the spa504 barfs (invalid response). 

    Yes, xsi_dev_guide is SPA504G as well. Although discounting is not claimed by an official standard, it is de facto standard recognized by many browsers already. Thus, it is not documented in detail heres. In the example above, you must issue...

    Refresh: 0; URL = https://.../Cisco/Directory.php?page=2

    ... header here.

    Rate of useful advice. It will help others to find solutions.

  • Chart with several selections of text by using the radio button

    Is there a way to make a menu of radio button before the interactive export? My goal is to have a graphic with a text box inside that when page header dropped into Indesign from a library opens a menu of radio button that I can choose a category to the page. Looks like a bit of scripting and I don't know where to start or if there is an easier way to get the end result.

    You will need a script. This lot will be able to help.

    Scripting InDesign

    The script will have to set some kind of event listener that detects when a library item is placed. Where you will have the different texts depends on how many and they are likely to change.

    P.

  • Get the status of a Department in a popup by using a radio button

    I have a use case. A page with a button. The user clicks on this button, and then a pop-up window will appear showing the table of departments. The user will choose the desired radio button. After that, the popup closes and the list of employees should appear in the page.

    I wrote a method in the property valuechangeevent of the option button (autosubmit is also set to true), but still I'm not able to get the current line. I need actually value departmentid.

    Can someone guide me?

        public void onClickRadio(ValueChangeEvent valueChangeEvent) {
            // Add event code here...
            System.out.println("onClickRadio Begins");
            hidePopup("p1");
            DCBindingContainer bc =
                (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
            DCIteratorBinding iter =
                bc.findIteratorBinding("DepartmentsView1Iterator");
            Row row = iter.getCurrentRow();
            Number departmentId = (Number)row.getAttribute("DepartmentId");
            System.out.println("departmentId: " + departmentId);
            OperationBinding method =
                (OperationBinding)bc.get("displayEmployeeTable");
            method.getParamsMap().put("departmentId", departmentId);
            method.execute();
            AdfFacesContext.getCurrentInstance().addPartialTarget(empTable);
            System.out.println("onClickRadio Ends");
        }
    JDev 11.1.1.6

    You can try with autoSubmit = true on selectBooleanRadio?
    Also set the group to a text attribute in your selectBooleanRadio.

    Of tagdoc -.

    in all cases, you must set the group attribute.

    http://docs.Oracle.com/CD/E23549_01/apirefs.1111/e12419/tagdoc/af_selectBooleanRadio.html

    Published by: Sudipto detrilles on May 21, 2013 03:52

  • How to disable the radio button to the page

    Hi all
    We have a requirement to disable or hide a button on the standard page Noritifacation reassign in R12.
    The page is/oracle/apps/fnd/wf/worklist/webui/NotifReassignPG.
    When I went to 'Customize Page', I see a "messageComponentLayout", when I put the property "Rendering" to "false".
    He hides the complete available, but I want to just hide only a single radio button in this provision.
    Can someone please?

    Thank you
    Dilip

    Dilip salvation,

    When you click on the link of customization on the OPS page, you can click on full view to display all possible customizations
    This can be done.

    Expand the full view and see if you can find the option button that you want to hide.

    If you are not able to find it, then you can try using controller extension (extension of CO)

    Enter the bean of your controller class processRequest() radio button and hide.

    The extension of controller code-sharing:

    {
    OAMessageRadioButtonBean testButton = (OAMessageRadioButtonBean) webBean.findChildRecursive ("RadioBttn1"); RadioBttn1 is the ID of RadioButton
    testButton .setDisabled (true);

    }

    Kind regards
    Had

Maybe you are looking for