A set of fields that equal 100%

I have a situation where I need to take four text fields and make them equal 100%. The fields them selves can vary in percent but the total of all four must equal 100 percent.
Could anyone reccomend the best way to script this or if an example exist lead me in that direction?
I have an attachment below of what I'm looking for visually.
Thank you! =)

Nikki, the script for this is easy but as usual the devil is in the details.  When do you want the values checked and how do you want the warning displayed?  Do you want it checked when the user tries to submit the form and have a message pop up?  Or, do you want a message displayed in real time.  For example the message will be displayed on the form until the four values add up to 100%; as soon as the user makes an entry in one of the fields that causes the total to equal 100% the message will disappear.  If the user changes a field again the message will re-appear.  Sort of an instruction/warning.
Also, must all four fields have a value not equal to zero, or can they enter 100, 0 ,0, 0?

Similar Messages

  • Document Library set "Title" field automatically equal to "Name" field

    Hi,
    Is it possible to make Title field in document library automatically fill up with File name field? 

    Three ways you could do this really.
    #1 - Write a custom event receiver using .NET
    #2 - Write Javascript on the list form to update the field
    #3 - Create a custom workflow that kicks in when new items are added or modified and that would set the field
    Nikolas Charlebois-Laprade Microsoft Certified Professional Software Engineer and Senior SharePoint Advisor http://nikcharlebois.com

  • Anyone use acrobat 9 to set form fields that auto center?

    I am trying to set form fields for a form and am having trouble.  The input needs to go all the way to the left when done but spaced evenly ovver a set area.  This is confusing I know/  I have attached (2) samples.  # 1 is the way I want to be able to fill the form.  And # 2 is the form I am trying to set up.  Any help would be amazing.

    I think I have a working solution now, but for one problem.
    I have my remote page
    <!-- Start APP Area -->
    <center>
    <iframe name="appFrame" id="appFrame" width="860" height="600" src="http://serverx/register.asp" onload="setEmail();" >
    </iframe></center>
    <!-- End APP Area -->and my Javascript function in the page header
    <script type="text/javascript">
    function setEmail() {
      var emailVal = document.getElementById("P88_EMAIL").value;
      alert("Email: "+emailVal);
      var iframeElem = parent.document.getElementById("appFrame");
      iframeElem.contentDocument.getElementById('eAdr').value = emailVal; // error here
      alert("Email set?");
    </script>Problem now is that I get a access denied message from the remote server. This is might be to prevent some cross site scripting. Because the ApexServer tries to access methods on the remote server.
    Fehler: <http://apexServer> wurde die Erlaubnis für das Lesen der Eigenschaft HTMLDocument.getElementById von <http://serverx> verweigert.
    Translated
    Error: <http://apexServer> does not have the permission to read the attribute HTMLDocument.getElementById of <http://serverx>.
    So I will have to talk with some sysadmins to see if they can add some exceptions to the firewall rules. Not sure which rules excactly prevent this, but there should be a way to circumvent the error.
    Or does anyone have a different idea how to solve this?
    Edited by: Sven W. on Aug 6, 2010 10:17 AM

  • How to set a field that automatically generates a unique 'code'/'ID'  for fillable PDF form?

    Hi,
    I'm trying to create a PDF fillable form with Acrobat X Pro.
    Can Acrobat allow a function, so that it can automatically generate a 'number'/'code' which I could use as an 'identifier'?
    eg.  A hidden field named:  'DOC ID' and provide 100001 when added to response file as it's submitted and '100002' to another file when it another is submitted/added onto the response file etc...
    I am aware that Response files, if submitted correctly, could automatically generate numbers like 001, 002 etc...
    But I'd like to see if I could create a field, that 'numbers' the document for me automatically and uniquely.
    Any help and/or suggestions would be appreciated.
    Winnie

    Hi,
    to do this you need kind of interactivity in your form.
    You can achieve this either by:
    1) using JavaScript onchange-events on forename and surname items, or
    2) use the AJAX Computations option of ApexLib, see: http://www.oracle-and-apex.com/ajax-computations-rich-client-feeling/
    brgds,
    Peter
    Blog: http://www.oracle-and-apex.com

  • Require responses to equal 100?

    In the online surveys, I have a question set up as a text field for numerous items.  I've put a statement in there that the total sum of all the fields must equal 100, but is there any way to regulate that or to show a tally of what percentage they've entered?  Thanks.

    Hi;
    No, there is not, there are not "calculations" or formulas in the FormsCentral forms that the user fills out.
    Formulas can be used in the Response table on the response data, but nothing within the form.
    Thanks,
    Josh

  • Error message and set cursor field in subscreen

    hey ,
    i have a program with main screen 500 and many subscreens 501,502 and so own .
    when i  want to validate wrong input in a field and set message type 'E' in the PAI of the subscreen the program
    raise the message and exit from the program .
    if i try to put the message in the PBO of the subscreen it dosn't exit but after the message the program dosn't flow to
    command SET CURSOR FIELD that i wrote after the message .
    how can i solve this ?
    is there somthing that i'm missing in the basic code flow of the program ?
    ( screen 500 PBO - PAI ->  SUBSCREEN 50x PBO - PAI )
    best regards
    ASA

    hello and thanks for the answer
    let me  clarify my problem :
    i want to issue a message ( type e or i ) only if some fields are null and the user pressed on SAVE .
    when i'm in the tab-strip and writing error message in :
    PAI :
    chain.
    field XXX
    field YYY
    module issue_warning_message on chain-request.
    endchain.
    in  module issue_warning_message :  if XXX is initial --> message type E --> set cursor field XXX.
    here i get the message and cursor is set.
    when i try to post the message in without chain or any events :
    module user_command_tab502 .
    the message is issued and it exit the program if the type is e and if type message is I the cursor is not set .
    please advice
    ASA

  • Warning Message only if 1 to 3 fields do not equal 100%

    I have 3 potential fields that will be completed.  If Field1 (Primary Beneficiary) is 100%, then the user will leave Fields 2 and 3 empty.  If Fields 1 and 2 equal 100%, then Field 3 will be empty.  Otherwise they will have values in Fields 1, 2, and 3.  Regardless, they should not be able to continue completing the rest of the form until the sum of these three fields equal 100%.  Therefore I did modify the form as follows, but two issues: it throws the error message up even when first entering a value in Field 1.  This script need NOT run until all 3 fields have been tabbed through, or they click on the next section of the form to continue completing.  The "Total 100" (name of this particular field) is in the Tab Order to appear after "Beneficiary 3 Benefit Percent" field.  And secondly, it still permits the user to continue rather than returning to Field1 even if the total does not equal 100%.  Your assistance is greatly appreciated!  PS:  How do I mark that the post was either helpful or correct?
    Rita
    event.value = ''; // clear field
    // get the values of Beneficiary Benefit fields 1, 2 and 3 as string
    var sField1 = this.getField("Beneficiary 1 Benefit Percent").value.toString();
    var sField2 = this.getField("Beneficiary 2 Benefit Percent").value.toString();
    var sField3 = this.getField("Beneficiary 3 Benefit Percent").value.toString();
    // adjust for a field being 100 and others null
    if (sField1 == 100 & sField2 == '' & sField3 == '') sField2 = "0" , sField3 = "0";
    if (sField2 == 100 & sField1 == '' & sField3 == '') sField3 = "0" , sField1 = "0";
    // do only if Beneficiary Benefit fields 1, 2 and 3 are not null
    if(sField1 != '' & sField2 != '' & sField3 != '') {
    event.value = Number(sField1) + Number(sField2)+ Number(sField3);
    if (event.value != 100) app.alert("The sum of Benefit percent must equal 100.", 1, 0);
    this.getField("field 1").setFocus();

    Two problems just from a first glance at this line:
    if (sField1 == 100 & sField2 == '' & sField3 == '') sField2 = "0" , sField3 = "0";
    1. You're comparing a string to a number
    2. You're separating commands with a comma and not placing {} around the block of commands.
    It needs to be something like this:
    if (sField1 == "100" & sField2 == "" & sField3 == "") {sField2 = "0"; sField3 = "0";}
    There are probably more errors, but start by fixing those.
    Also, you should probably post which error message you're getting.

  • Updating Date field that is set as read only

    I have a date field that I have set the "HTML Form Element Attributes" to "readonly = "TRUE" " I would like to have the option of clearing the value in the date box without a computation, I'd like it to be java based so that it is "on the fly" without having to refresh...
    I have an example that I use that works on POPUP LOV's ...
    "<"img src="/i/delete.gif" onClick="document.getElementById('#CURRENT_ITEM_NAME#_HIDDENVALUE').value='';document.getElementById('#CURRENT_ITEM_NAME#').value=''" ">"
    Both examples are used here .. http://htmldb.oracle.com/pls/otn/f?p=22240:2
    Any ideas?

    Just use the same technique that you use for popup lovs except just use #CURRENT_ITEM_NAME#, not #CURRENT_ITEM_NAME#_HIDDENVALUE
    See an example at http://htmldb.oracle.com/pls/otn/f?p=24317:91

  • HCM F&P - How to set the field as Required based on drop down values

    Hi Experts,
    I have a requirement to set the Date field as mandatory when a particular value is selected in drop down list. I have already tried with MessageBox though it displays the error message but process moves further i.e. on clicking Check & Send button it throws an error message but still it moves further and i can see only Send button. Ideally it should halt there itself.
    Thanks & Regards,
    Jitesh Talreja

    Thanks for your valuable inputs
    Chintan
    I have already tried this. It only highlight the field with the red border but still allow to move further.
    Mukesh
    Yes, we can definately control this from the backend but that would be the last option i should execute. Ideally, this is something to be controlled in front end itself
    Poornima
    By setting the field attrbiute Required will set the field mandatory as a whole irrespective of drop down values or any other UI element.
    Regards,
    Jitesh Talreja

  • How to populate a set of fields multiple time in the page ?

    Hi All,
    JDev Ver : 11.1.1.5
    I have a requirement as follows,
    My page contains 1. Add Button
    2. Five fields.(one input text and four select one choice)
    The fields are like one input text and remaining select one choice. And also these fields contains validations.
    Actions
    On click of add button , I have to show the fields , similarly I have to add one more set of fields in the page below the first set when I click the add button, Like this I will add as many as I need.
    How to achieve this requirement,
    1. Do I need to generate the view objects dynamically from managed bean ?
    2. Do I need to create a custom component ?
    For Time being , I have added 3 set of fields pages and showing one by one. I want to do this dynamically.
    Please let me know the suggestion for this Requirement.
    Thanks,
    Gopinath

    Hi,
    to do this:
    1. reate a managed bean that exposes a HashMap property. The HashMap is of type e.g. Map<Person>
    2. To create a new set of fields, add a new entry to the HashMap and refresh the af:form. The af:form contains and af:forEach that you use
    to iterate as often as you have entries in the HashMap. Each text field you bind to #{bean.HashMapProperty['key'].attribute}, for example
    #{bean.HashMapProperty['key'].FirstName}
    #{bean.HashMapProperty['key'].LastName}
    #{bean.HashMapProperty['key'].EmployeeId}
    3. When the user updates a field, the HashMap is updated based on the "key"
    4. The managed bean should be in viewScope and referenced from the field's value property
    Frank

  • Is there a way to create a text field that shows on all slides?

    I'm trying to create a "Revised On" date field that can be shown on every slide. Or, do I just have to copy and paste on all slides?
    Thanks in advance.
    - Michael

    use the master slides
    view > show master slides
    click on the master slide that has a tick mark
    add a text box to master slide and any other objects that you want on every slide; enter text, then position, size and set colour
    click on the normal slide and add other content that is to be seen on that slide only
    adding new slides will use the background design

  • How to set key fields in a Database view

    Hi guru's
    iam balaji,plz guide me with how to set key fields in a view.......that field is a non key field in the base table....
    thanks in advance,
    Balaji.S

    take a look at this:
    Diagnosis
        In the view, not all of the mandatory fields were included as key
        fields. The key of the view therefore is not unique.
    System Response
        All the fields are regarded as key fields in order to guarantee that th
        key lengths are unique.
    Procedure
        For views with a large number of fields, this could have a negative
        effect on the performance for the language construction described below
        In this case, all the mandatory key fields should be included in the
        view.
    regards

  • CProjects - Set-up field control - Usage of conditions

    Hello
    In cProjects, in set-up field control it is possible to adjust behavior (display, updatable, mandatory, u2026) field by field.
    My questions are:
    - Where to find the complete list of conditions available?
    - Is any condition is usable everywhere, for example C001 Object is released on a DAG Document (means the object link to this document is released)?
    - Is there a condition with a meaning like u201CThe object is in creationu201D (to have for example a phase description not updatable after creation)?
    - How to create its own conditions?
    Thanks for your help.
    Rémy
    Here you can find a list of conditions for the main objects.
    CTO (Checklist)      C001 Object is released
    ITO (Checklist Item)      C001 Object is released
    MTG (Project Participant)      C001 Object is released
    PPO (Phase)      C001 Object is released
    TTO (Task)      C001 Object is released
    MTG (Project Participant)      C002 CATS is active
    TTO (Task)      C002 CATS is active
    TTO (Task)      C004 Confirmation for task
    MTG (Project Participant)      C005 Role start and finish are specified
    ITO (Checklist Item)      C006 Object has a superior phase
    TTO (Task)      C006 Object has a superior phase
    TTO (Task)      C007 Phase without approval
    TTO (Task)      C008 Appr. is in process, granted, rejected
    CTO (Checklist)      C009 Ind. 'Changeability' to 'Cannot Be Chgd'
    ITO (Checklist Item)      C009 Ind. 'Changeability' to 'Cannot Be Chgd'
    CTO (Checklist)      C010 Ind.'Changeability' to 'Partlly Chngble'
    ITO (Checklist Item)      C010 Ind.'Changeability' to 'Partlly Chngble'
    PPO (Phase)      C011 Project Type 'Initiative'
    PPO (Phase)      C015 Constraint: As soon as possible
    TTO (Task)      C015 Constraint: As soon as possible
    ITO (Checklist Item)      C016 Constraint: As late as possible
    PPO (Phase)      C016 Constraint: As late as possible
    TTO (Task)      C016 Constraint: As late as possible
    ITO (Checklist Item)      C017 Constraint (Finish Date): None
    PPO (Phase)      C017 Constraint (Finish Date): None
    TTO (Task)      C017 Constraint (Finish Date): None
    TTO (Task)      C018 Task is a summary task
    TTO (Task)      C019 'Remaining Work Man.'indicator is active
    TTO (Task)      C020 Object is part of a project version
    ITO (Checklist Item)      C030 Access to Forecasted Dates
    PPO (Phase)      C030 Access to Forecasted Dates
    TTO (Task)      C030 Access to Forecasted Dates
    OAG (Object Link)      C100 Object has not been specified yet
    RAG (Checklist Reference)      C200 Checklist reference was created
    ATO (Approval)      C300 Approval has the status: Created
    EAG (Project Element Link to Role)      C400 Status: Staffing in Process/Complete
    MTG (Project Participant)      C500 Status: Staffing in Process/Complete
    MTG (Project Participant)      C501 Confirmation for project role
    BAG (Link to Business Partner)      C502 Distribution is active
    MTG (Project Participant)      C502 Distribution is active
    MTG (Project Participant)      C503 Status: Staffing in Process
    MTG (Project Participant)      C504 Cost/revenue rate is initial
    TTO (Task)      C504 Cost/revenue rate is initial
    MTG (Project Participant)      C505 Org. Unit (Staff. Manager) is changeable
    MTG (Project Participant)      C506 Org. Unit (Cand. Manager) is changeable
    MTG (Project Participant)      C507 Staffing Manager is changeable
    MTG (Project Participant)      C508 Candidate Manager is changeable
    SAO (Individual Approval)      C600 Approval allows decision maker change
    DAG (Document)      C700 cProjects file is checked out
    DAG (Document)      C701 Plug-in for documents is used
    DAG (Document)      C702 Document has status 'Not in Process'
    DAG (Document)      C703 Document is changeable
    DAG (Document)      C704 Link to document template
    DAG (Document)      C705 Document in projekt-/checklist template
    DAG (Document)      C706 cProj. file is checked by current user

    Hi Matthias
    I am trying to setup field control to make a bespoke field in a bespoke tab toggle between READ only and Editable. 
    I have gone through number of posts and the SAP note you mentioned. I have setup the entire configuration required and it is still not working.
    What confuses me is that, to setup a field control dynamically, is it all done via configuration?. Is some coding still required in the VIEW methods?. I am setting up a debug breakpoint in the class method that is created for the condition I created, but the program is not stopping there so I think the condition method is not being called.
    Please can you give some more details.
    Thanks
    Raj

  • Set Key Field in Import Manager

    Hi All,
    I have 2 fields in my source file(name,category) .category(look up Field) is the key field and name(display Field) is the matching field.
    I got file like this......
    Name                  category
    1                           A
    1                           B
    1                           C
    While importing i got an error stating that Import failed. The destination record was referred to by multiple source records. Duplicate source records should be merged before importing them.
    Import action: Update (All Mapped Fields)Source record no: 1
    But in this case my key field is Category based on category  then these 3 records will be 3 different records.
    Please let me know the  use of Set Key field in the Import Manager and how it works?

    Hi,
    It's not about set of key field in MDM Import Manager but the reason is that you can not select more than 1 category(Lookup Taxonomy) in maintable for one record. thats why error is coming because for this Property Multi-valued always No.
    Even, you can try this in Data Manager manually create three Category A, B and C in taxonomy mode on selecting Sub table Categories, then on selecting main table, when you select category field(which is lookup to categories table)for a particular record you could able to select only one category A, B or C.
    i would suggest make a Attribute of type text having three values A, B and C and mark this as Multi-Valued in Attribute Detail and link this Attribute with your category. in this way you can attach three values A, B and C with your Record.
    Other thing you can do,make this category field as (Lookup Hierarchy not lookup taxonomy) in main table to Subtable(Hierarchy) then for this field in main table you can set Property Multi-valued = Yes in MDM console and then after Import using MDM Import Manager finally only one record will get created in Data Manager as:
    Name Category
    1         A;B;C
    Hope it will Help you,
    Rewards if Useful.....
    Mandeep Saini
    Edited by: Mandeep Saini on Jun 20, 2008 8:46 AM

  • How to call hr_location_api.create_location for different address style with only those fields that belongs specific to  that address style.

    How to call hr_location_api.create_location for different address style with only those fields that belongs specific to  that address style. It should decide at run time means at run time it will come to know the type of address style and based on that only the fields which belong to address details mapped to calling hr_location_api.create_location.
    Thanks in advance.

    You can create a wrapper package on top of the API (hr_location_api.create_location)
    In the wrapper package you set all the values dynamically based on your requirements(say the style and add_line columns are populated on your conditions) and then you call the API.
    Does that not work ?

Maybe you are looking for

  • How to pass the document from Webdynpro to SAP R/3?

    HI Gurus, I have a requirement to offer a Document uploading option through Java webdynpro screen. I have referred the below link https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/00062266-3aa9-2910-d485-f1088c3a4d71 which has the s

  • In elements 12 how to print borderless on custom paper size

    how do I get rid of margins on custom paper printing so the print is borderless?

  • Ipod to tv show music artwork?

    when i connect my ipdo to my tv i can get videos to play, but why wont the artwork or song title show up on the tv when music plays? can it do that? i was expecting to see what is on my ipod on the tv. any help on this? thanks in advacne!

  • Regarding issue in MM Module--Sale order generation & Purchase requiesition

    Dear Gurus I have one Quirey I have two plants and two profit centres One is  Mfg Plant and another one is  Service plant I am generating the sale order in Service plant but the purchase requisition to be generated in Mfg plant Please tell me the way

  • HT204370 cannot open error message

    I bought a tv series that downloads each current episode. I clicked the link, successfully downloaded the episode but when i tried to watch the episode an error message 'Cannot Open' keeps appearing?!