Radio buttons with values and how to calculate.

Hello

Im am pretty new to building Web site and in particular with script, so please be gentle ;) .
For the moment, I work with Dreamweaver CS4.

I create a formula of the "ecological footprint" with several questions of the Radiobutton.
These questions must have a certain value attached to each possible answer and then when I press 'submit' to end these values must be added together and display the score. But how?
Example:

Question 1
How will you work:

* Market/bicycle value: 0
* Value train/bus: 5
* Car                                value: 7

Question 2
How do you travel by train/bus.

* Never of value: 0
* A few times a month value: 2
* A few times a week value: 5
* Daily value: 10

* Submit * = calculate and display values. For example, Question 1, I had a value of 5 and 2 10 issue. So pressing submit should then dispay ' 15'.

That's what I have so far, the questions and answers are in Dutch.

Hoe ga jij naar school?</strong></p>
      <form id="form1" name="form1" method="post" action="">
        <p>
          <label>
<input name="question1" type="radio" id="question1_0" value="0" />
Lopend/Met de fiets</label>
          <br />
          <label>
            <input type="radio" name="question1" value="5" id="question1_1" />
            Met het openbaar vervoer</label>
          <br />
          <label>
            <input type="radio" name="question1" value="10" id="question1_2" />
            Met de auto</label>
          <br />
        </p>
    </form>      
    <p><strong>Hoe vaak reis je met het openbaar vervoer?</strong></p>
    <form id="form2" name="form2" method="post" action="">
      <p>
        <label>
          <input type="radio" name="question2" value="0" id="question2_0" />
          Nooit</label>
        <br />
        <label>
          <input type="radio" name="question2" value="2" id="question2_1" />
          Slechts een paar keer per maan</label>
        <br />
        <label>
          <input type="radio" name="question2" value="5" id="question2_2" />
          Wekelijks</label>
        <br />
        <label>
          <input type="radio" name="question2" value="10" id="question2_3" />
          Dagelijks</label>
        <br />
      </p>
      </form>    
    <form id="form3" name="form3" method="post" action="">
          <label>
            <input type="submit" name="Bekijk de uitslag!" id="Bekijk de uitslag!" value="Bekijk de uitslag!" />
          </label>
        


PS: I have an addon for Dreamweaver called "Form Calculator", created by KaosWeaver, but I don't really know how it works...

Sorry about that. I was looking at him in Live View mode. To stop the value of disappear, change the onsubmit for this event handler:

onsubmit="getScore(this);return false"

Tags: Dreamweaver

Similar Questions

  • How I can scan the registry valuHi, how I can scan the Windows 7 registry value and how do I come to know if the registry value is same as it has been installed previously?

    Hello

    How can I scan the Windows 7 registry value and how do I come to know if the registry value is same as it has been installed previously?

    Hello
     
    The Windows registry is a vast and vital part of the computer, which continues to evolve being modified or deleted or new entries are created all the time.
     
    Case where the registry keys of change.
     
    At startup
     
    So that updates
     
    While making customization or custom settings in windows
     
    While to install the software
    Virus... etc.
     
     
    Each click Open and save is related to the registry.
     
    This is something very tedous to verify the integrity of a registry of windows with all of the above modifications being carried out.
     
    You can back up the registry of the computer after you install Windows new and update with all Windows updates and the custom software, into a registry backup or create a system image / restore point.
     
    Please visit these links for more information.

    Windows registry Description of the audit of the Windows Registry tool (Scanreg.exe) How do I add, edit or delete subkeys in registry and values by using a registration entries (.reg) file Hope this information helps

     
     
     
  • Radio buttons with drop-down menus?

    I have created a form for the HR Department of my company, and I need a few radio buttons with dependent drop-down lists.

    In other words, I would (for example) three radio buttons. None of the drop down lists appear until one of the buttons is selected and displayed the appropriate drop-down list. Is this possible? Or is there a better way to do it? I don't want a drop down menus not selected to be available.

    I have 9 Pro for Windows and Pro X for Mac. I know almost nothing about scripts, but I know it can be done.

    Thanks in advance for any help!

    Theresa

    Add this code to the action of the group, or individual radio button actions?

    For each individual button.

    Make the drop down menus visible or hidden?

    Their visibility will be determined by the State of the radio buttons. By default, you can set to hide, when no radio button is selected.

    Can I put any code in the drop-down list properties, or just in the radio button properties?

    Only in the option boxes.

    And when you say "integrate this code at the level of the doc", does that mean?

    Go to Advanced - Document Processing - Document JavaScripts...

    Create a new script, delete the default text that appears in the window, and paste the code I provided instead.

  • Create the form in word with checkboxes, radio buttons, comment fields and signatures

    A couple of years, I have created a form that has been filled with some radio buttons and checkboxes, then sent for signatures. Example below:

    Project owner : {{                   $ReqName}}

    {{I0}} {{K0}}

    Udio has

    Project Manager:

    {{$K1}}

    {{$K2}}

    {{$K3}}

    APPROVED

    REVISE and resubmit

    DENIED

    {{SBlk1_es_:signatureblock: signer1}}

    {{#ReqName = * RequiredName_es_:sender}}}}

    Is it still possible to use, or should I drag-and - drop all the buttons?

    Hi sarahm62404467,

    Yes, you can do it with services eSign, but central form is abandoned.

    Kind regards
    Nicos

  • How to intercept the radio button was selected and its data?

    Good day everyone,

    Need help on this one. This is my first post about components, specifically radio button.

    Here goes my problem, I have several groups of option button. And I want to follow the radio button on each group chose, and I'm going to get the data and pass it to a function loadVariablesNum.

    Thank you

    Any help is appreciated.

    You did not answer to my second question.  Is the button in the same timeline as the mc of content?  And now that you mention the function of the buttons, where you use this code of mine you said gives 'undefined '?

    It will be to your advantage to create a new file to resolve this problem when you have just a few radio buttons and another normal button that uses this code blue.  Once you have that working, you should be able to adapt more easily in your scenario.

  • Using a radio button with a calculation

    Hello

    I have a question of calculation for the group.  I'm trying to calculate creatinine clearance.  Sounds easy, but I'm stuck at the end.

    creatinine clearance is: ((140-age) * weight (kg)) / (72 * Scr)

    Women are multiplied by 0.85 to get the final result of creatinine clearance

    I have a box for the age, weight and scr and the user has entered the number.

    Here where I'm stuck at is the end... I have a radio button for women so that the result is multiplied by 0.85.  I thought that something like this might work... but nothing helps.

    var crcl2
    CrCl2 = (140 - this.getField('age').value) * (this.getField('weight').value) / (72 * this.getField('cr').value);

    var crcl3
    function validate (carbbox)
    {
    If (carbbox.checked == 1)
    CrCl3 == crcl2 * 0.85;
    on the other
    CrCl3 is crcl2;
    }

    Im kinda new to this obviously... any help would be really appreciated.

    Thanks, chris

    Unless you repeat the calculation in function in several places with different values or you want a funciton of type library which could be adeed to other forms, use of the service may not be necessary.

    Event.value = "; assume not performed calculation
    perform the calculation if the divisor is not equal to zero
    If (this.getField('cr').value! = 0) {}
    adjustment for sex
    var adjGender = 1;
    If (if (this.getField("carbbox").value == 1) {})
    adjGender = 0.85; fit for the female sex
    } / / end of adjustment for sex
    calculate creatinine clearance
    Event.Value = (140 - this.getField('age').value) * (this.getField('weight').value) / (72 *)
    this.getField('cr').value)) * adjGender;
    } / / end of calculation

  • Radio buttons with a specific text necessary to provide in particular for the selection of RB

    Hi all

    Adobe Acrobat 9 Pro.

    1. I'm not sure how to set up this script, because I'm very inexperienced in terms of coding.

    Each radio button has specific text areas to be filled according to the selection of the radio button.

    'Radio Button1' has 4 values/selection (1, 2, 3 and 4).

    Note: Option 4 has 3 separate text boxes must be filled (proposal4, Text5 and Text6).

    If a user selects 1: Text1 should be filled and no admission for Text2, Text3, proposal4, Text5 Text6.

    If a user selects 2: text 2 must be filled in and no entry for Text1, Text3, proposal4, Text5 Text6.

    If a user selects 3: text 3 must be filled in and no entry for Text1, Text2, proposal4, Text5 Text6.

    If a user selects 4: Test 4, Text5 and Text6 must be filled in and no entry for Text1, Text2, Text3.

    When I'm saying no entry, basically locked or will receive an error if the data is inserted.

    2. I am also uncertain where I would like to insert the code and how it works.

    Thank you in advance,

    Josh

    For the example given and newness to the coding, you might try to display / hide the fields instead of scripts. An example is attached.

    Discover the activities of each of the radio buttons. Basically, for each choice of radio, corresponding text fields will be displayed or hidden. (The default property for each text field is hidden.) Each choice will remove the text field data previous choice via a form of reset action applied to these fields.

  • Group of radio buttons with the URL of image in a table

    I try to display text and an image for a group of radio buttons to make the form look like

    text (*) for point 1 {image for point 1}

    text () for article 2 item 2 {image}

    text () to the point 3 {image for point 3}

    I found these:

    Re: Is it possible to display an image instead of the button in a group of radio buttons?

    Display image in the Group of radio buttons?

    It looks like all I have to do is create a LOV that looks like:

    SELECT {complex stuff that generates the text string, tag img and image URL}

    DB_PK

    OF dynamic_view_for_lov - public synonym

    But my images are stored in a table.

    I was able to create an IR using the "= BLOB column Format" method.

    The SQL code for the report looks like:

    Select

    display_text, db_pk, image_len, image_clob

    of dynamic_view_for_lov - public synonym

    And the IMAGE_LEN column number/Date Format is:

    IMAGE: DYNAMIC_VIEW_FOR_LOV:IMAGE_BLOB:DB_PK:Inline:Download

    My question: how to create the URL for the tag img for the LOV?

    Thank you very much

    MK

    MikeKutz wrote:

    My question: how to create the URL for the tag img for the LOV?

    Use of the apex_util.get_blob_file_src method of the API.

  • Is radio buttons with images - possible?

    Hi, I would like to create a list of radio which went from horizontally (Western characters). Before each selection, to do a picture. It's pretty easy to rig through tables/subforms when you use a low flow top, but in the interest of saving space on the form, they really need to be Western characters. Anyone know of a way to do this?

    Not that I can think of, unless they are named the same and you set a global being. Once you do this, then they act like a group of radio buttons. Another advantage to this is that you can uncheck. Radio buttons cannot be deselected when you select one, you can change to another within this group.

  • Button with URL and JS problem

    Hi guys!

    I recently posted on the deactivation of the items if another value of points is a value. I have enableItem() and disableItem() JS, and recently, I still had the process of default ApplyMRU. My buttons that url has been
    JavaScript:enableItem();doSubmit('SUBMIT');disableItem();

    but now when I created the Custom PL/SQL update process and it is subordinated to the INSERT query

    this:

    JavaScript:enableItem();doSubmit('INSERT');disableItem();

    don't nothing ;/ without the JS to update works great... but I also need the JS... Guys have encountered a similar problem before?

    With respect,

    PsmakR

    Hello

    First of all, I guess that your MRU is not subordinate to what whatsoever and that the request for INSERTION must always initiate the process?

    Secondly, I've seen problems with javascript calling a model button. I tend to use a custom template (as described here: button and function )

    Finally, as long as the doSubmit() happens in reality, the disableItem() function call will not work (the page is loaded by sending, so javascript on this page stop right there). If I understand your needs, you must activate a front element of the subject so that it is presented with the page. The page is unloaded and reloaded after sending, you must make sure that the disableItem() is called when the page is reloaded

    Andy

  • Where to see app revenue appworld and how to calculate

    Hi all
    I'm an Android developer and I'm used to use to manage my app the Android Console and see revenues of every day I use Google Checkout to see not only the recipes, but % in taxes for each order as well.
    But with the AppWorld, I have some difficulties: where can I see day after day when someone buy my app, what are my income after taxes (according to what I read, it is a tax of 20% VAT and 30% AppWorld?)
    So, if I sell an app for $ 4.99:
    $ 4.99 - 20% VAT = $ 3.99 - 30% AppWorld = $ 2.80?

    I do this operation for each purchased app or change of operation with the country?

    PS: even if off-topic, someone can tell me what is the difference between tier003 and layer RIM, every two years with a $ 4.99?

    Thank you and I'm sorry for my bad English and many questions... but I'm still at the beginning

    The price that you set in the App World is duty-free. Taxes will be added to your $4.99 and depending on the country, the user is in.

    You can see the total sales in the graphics of "download reports". Note that this includes the 30% share of App World, so you get 70% of the reported value.

    I recommend to use Distimo to monitor your sales. It has a ton of useful features and can report on the various app stores.

  • I want to know how to turn on bluetooth on a laptop lenovo G570 series, where the button is located and how to connect, bluetooth switch

    I have a lenovo G laptop model 570. I'm not able to switch on the bluetooth so I want to know that how to switch on bluetooth, how to connect with the bluetooth mobile, how to pass it in order to transfer any image or a song from the laptop to the mobile & vice versa. Please provide a detailed answer.

    Hello

    Method 1: Connect to Bluetooth and other wireless or network devices

    http://Windows.Microsoft.com/is-is/Windows7/connect-to-Bluetooth-and-other-wireless-or-network-devices

    Contact the computer manufacturer for help in activating the Bluetooth to your laptop.

    Add a Bluetooth device to your computer

    http://Windows.Microsoft.com/en-in/Windows7/add-a-Bluetooth-enabled-device-to-your-computer

    Change settings for a Bluetooth compatible device

    http://Windows.Microsoft.com/is-is/Windows7/change-settings-for-a-Bluetooth-enabled-device

    Method 2: Update the Bluetooth driver.

    http://support.Lenovo.com/en_US/research/hints-or-tips/detail.page?docid=HT072724

    For reference:

    Bluetooth devices do not work correctly on a computer that is running Windows 7.

    http://support.Microsoft.com/kb/980396

    If the problem persists, contact Lenovo to get help.

    http://support.Lenovo.com/en_US/

    I hope this helps.

  • button with icon and lable

    I want this bean PJC display icons on my form
    http://Forms.PJC.Bean.over-blog.com/article-1957712.html

    Here, it is clear a note that
    Note: Note that the icons used in this demo files are stored in the root of the jar file

    I do not understand what I'd do if I want to display icons as oher delete, edit, see icons on my form.
    do not know where to copy images to display?

    Thank you.

    Hello

    To display other icons like the one you mentioned that you need to re-create the jar file.
    Here are the steps:

    (a) extract the jar with the following command file, make sure that %ORACLE_HOME%\jdk\bin is in the path

    jar xf your.jar

    (b) delete the "META-INF" folder

    (c) add the required files in the directory where the images others exist.

    d) d) of the 'd:\your_jar_name' directory, re-create the file 'your_jar.jar' using the following command.

    Windows

    jar - cvf your_jar.jar *. *

    UNIX

    jar - cvf your_jar.jar *.

    (e) now copy the new your_jar.jar in $ORACLE_HOME/forms/java

    (f) run the sign_webutil.bat or the sign_webutil.sh as follows and re-sign the jar file

    Example for Windows, assuming that your ORACLE_HOME = d:\oracle\frs1012
    Start the command prompt
    -the value of ORACLE_HOME = d:\oracle\frs1012
    -cd %ORACLE_HOME%\forms\java
    -the value of PATH=%ORACLE_HOME%\jdk\bin;%PATH%
    -%ORACLE_HOME%\forms\webutil\sign_webutil.bat your_jar.jar

    Example for UNIX, assuming your ORACLE_HOME is /u01/oracle/product/10.1.2

    -Connect to the server
    -export ORACLE_HOME=/u01/oracle/product/10.1.2
    -cd $ORACLE_HOME/forms/java
    -export PATH = $ORACLE_HOME/jdk/bin: $PATH
    -$ORACLE_HOME/forms/webutil/sign_webutil.sh your_jar.jar

    Kind regards
    Alex

  • My Internet access icon have been blocked, but I'm still using the Internet. What's wrong with that and how to fix this?

    Here is the picture: http://nr2.upanh.com/b4.s35.d1/f0428b61579eb31e18e8dceb3772e094_50166922.untitled.png
    Thanks for reading :)

    Hello


    Thanks for asking! If I have understood correctly, you can access the Internet when the icon of Internet access is blocked.

    1. what exactly do you mean by "icon Internet access have been blocked?
    2. you receive an error message?

    3. what web browser do you use?
    4. is this a wired or wireless?
    5. How do you get to know that it is locked?
    6. are you referring to the icon of Internet Explorer?
    7. don't you make changes on the computer before the show?

    Please refer to the below link mentioned before asking your question so that you can provide all the relevant information for us to help you:
    Suggestions for a question on the help forums
    http://support.Microsoft.com/kb/555375

    We are not able to view the screenshot, you can see the link to send a screenshot.
    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-security/how-do-i-post-a-screen-shot-on-this-forum/c86de820-C620-401c-A804-9f6337cd3053

    Just reply with the results. I'd be happy to help you further.

  • Sign up between 2 tables without correspondence with values and keep the number of rows in the first Table

    Hello Experts,

    I have a problem that is a little tricky. Requirement is if 2 columns (region and Code in the tables below) match exactly, then it is Best Fit, if one of the columns match while it is average in shape, if the two columns do not match then it's worse to adapt.

    Create Table Table1 (varchar2 (10), varchar2 (10) of the filter region, Code varchar2 (10), revenue Number (15), owner varchar2 (5));

    Table1:

    Insert into Table1 values ('Test1', 'Midwest', '0900', 3000286, 'P1')

    Insert into Table1 values ('Test1', 'Midwest', '0899', 36472323, 'P2')

    Insert into Table1 values ('Test1', 'Midwest', '0898', 22472742, "P3")

    Insert into Table1 values ('Test1', 'West', '0901', 375237423, 'P1')

    Insert into Table1 values ('Test1', 'West', '0700', 34737523, null)

    Insert into Table1 values ('Test1', 'West', '0701', 95862077, "P3")

    Insert into Table1 values ('Test1', 'South', '0703', 73438953, 'P4')

    Insert into Table1 values ('Test1', 'South', '0704', 87332089, 'P1')

    Insert into Table1 values ('Test1', 'South', '0705', 98735162, 'P4')

    Insert into Table1 values ('Test1', 'South', '0706', 173894762, "P9")

    Insert into Table1 values ('Test1', 'South', '0902', 72642511, 'P6')

    Create Table Table2 (filter varchar2 (10), region varchar2 (10), Code varchar2 (10), plafond1 Number (15), Limit2 Number (15));

    Table2

    Insert into Table2 Values ('Test1', 'ALL', ' 0902', 15000, 10000)

    Insert into Table2 Values ('Test1', 'ALL', 'ALL', 20000, 12000)

    Insert into Table2 Values ('Test1', 'Midwest' ' 0900', 10000, 5000)

    Insert into Table2 Values ('Test1', 'Midwest', 'ALL', 18000, 8000)

    Insert into Table2 Values ('Test1', 'West', 'ALL', 16000, 6000)

    Insert into Table2 Values ('Test1', 'West', '0901', 10000, 5000)

    Final output

    Filter the income Code region owner plafond1 Limit2

    Test1 0900 3000286 P1 10 000 5 000 - Best Midwest (region because both Code Matches)

    Test1 0899 36472323 P2 Midwest 18 000 8 000 - way (because the region corresponds to only), we consider 'ALL' for the Code

    Test1 0898 22472742 P3 Midwest 18 000 8 000 - way (because the region corresponds to only), we consider 'ALL' for the Code

    Test1 West 0901 375237423 10 000 5 000 - Best P1 (region because both Code Matches)

    Test1 West 0700 34737523 16 000 6 000 - medium (because the area corresponds to only), we consider 'ALL' for the Code

    Test1 West 0701 95862077 P3 16 000 6 000 - way (because the region corresponds to only), we consider 'ALL' for the Code

    Test1 South 0703 73438953 P4 20 000 12 000 - worse (because region both Code DON T Match ' "), we consider option as worst 'ALL', 'ALL '.

    Test1 South 0704 87332089 P1 20 000 12 000 - worse (because region both Code DON T Match ' "), we consider option as worst 'ALL', 'ALL '.

    Test1 South 0705 98735162 P4 20 000 12 000 - worse (because region both Code DON T Match ' "), we consider option as worst 'ALL', 'ALL '.

    Test1 South 0706 173894762 P9 20 000 12 000 - worse (because region both Code DON T Match ' "), we consider option as worst 'ALL', 'ALL '.

    Test1 South 0902 72642511 P6 15 000 10 000 - way (because the Code corresponds to only) we consider 'ALL' for the region

    In the final result, we should have row count equal to Table1, and as soon as there's game (best first, then middle, then the worst), then if is once again, that we should ignore.

    There are other columns in the tables as well.

    Thank you very much!

    As you wish...

    select filter, region, code, region2, code2,
    revenue, owner, limit1, limit2, match
    from (
      select filter, region, code, region2, code2,
      revenue, owner, limit1, limit2, match,
      row_number() over(
        partition by filter, region, code order by match
      ) priority
      from (
        select a.filter, a.region, a.code, a.revenue, a.owner,
        b.region region2, b.code code2, b.limit1, b.limit2,
        case
          when (a.region, a.code) = ((b.region, b.code)) then 'Best'
          when a.region = b.region or a.code = b.code then 'Medium'
          else 'Worst'
        end match
        from table1 a
        join table2 b
        on a.filter = b.filter
        and (b.region, b.code) in (
          (a.region, a.code),
          (a.region, 'ALL'),
          ('ALL', a.code),
          ('ALL', 'ALL')
        )
      )
    )
    where priority = 1
    order by region, code;
    

Maybe you are looking for

  • Missing email icon iphone 6

    My icon of e-mail dissappeared a weeks ago. I checked all the icons of the utility etc. cannot always can ffind it. I went to settings > general > reset home presentation of the screen several times, but nothing happens. Please notify

  • Difficulty accessing an XML to display

    I built a site that pulls in the XML data from a file to appear in a box on the page. I know that the code was working properly because he has and is displayed correctly in previous versions of FF and other browsers. When I was first building this, I

  • Lack of support for HP

    for some reason any (windows 8.1) I have a HP Support exe prog of los. I try to reinstal it but I get a message Error 1316 of the allredy account exist one installation. is failure. How can I solve this problem. HP support is very useful for me. Than

  • The keys Y470P and Windows 8

    Hello community, I have a little problem. I have recently upgraded to Windows 8 and now the touch buttons (the thermal and the other I don't know what it is) no longer work. I tried looking around, but I can't really find a solution to what I need...

  • Problem of e1-731 wifi Acer Aspire

    Hi, first off I hope you guys can help with this probblem and sorry for the long post. So that's 3 days ago I reinstalled Windows 7 Ultimate x 64 for my fathers laptop, (Note everythign was working fine b4 that) and after I installed, automatic updat