How do I use the form checkbox value?

I'm creating a form that has multiple checkboxes. I want to
use ActionScript to update a text box/area with the values each
checkbox as the checkbox is selected. Any ideas on how I might do
that?
SAMPLE CODE ATTACHED.

I figured out how to do it using both the last poster's
comments, and some others that I found.
A form is created using cfform format=flash.
A cfinput text box is created and flagged as not visible.
The "invisible" input value is set after a cfoutput
query="xxxx"
is completed.
Since I'm using the query to do double duty, I have a group
set.
My "second" group is the one on which I wanted the check
boxes to
be created dynamically.
I set a counter, and kept track of when a check box was
created.
The value of the counter was eventually set as the value of
my
first "invisible" text box.
Here's the code:
<cfformgroup type="horizontal" height="1" visible="no">
<cfif #BoxCount# GT 0>
<cfoutput><cfinput name="BoxQty" type="text"
value="#BoxCount#" visible="no" size="3"></cfoutput>
</cfif>
</cfformgroup>
Each check box was given a unique name, text + counter.
ex. camp#BoxCount#
A corresponding "invisible" text box was created:
ex. cost#BoxCount#
This way I can test if the check box "value" is true/false,
and
set a cost accumulator to the proper cost.
My cfsavecontent code looks like this:
// COST TOTAL
var a = Number(BoxQty.text);
var i = 0;
var j = 0;
var u = 0;
var x = 0;
var s = "";
for( i=1; i<=a; i++ )
r = "camp"+i;
if( eval(r).value ) // just like the JS eval()
// box was checked, i.e. is "true"
s = "cost"+i;
j = Number(eval(s).text);
if( j > 0 ) x = x + j; // add to the total accumulator
//campCost is the cfinput text box used to display the total
cost.
campCost.text = 0;
if( x != 0 )
campCost.text = "$" + x + ".00";

Similar Messages

  • To use the form variables in a workflow

    How can we use the form variables in the workflow..How will we refer the variables?Simply referring by name not working.

    hi,
    you can use the form variable by define the field name like this in ur form:-
    <Field name=':variables.fieldVariableName'>
    <Display class='Label'>
    <Property name='title' value='XYZ'/>
    </Display>
    </Field>
    and u can access this variabe simply
    <ref>fieldVariableName<ref>
    in ur workflow.
    thanx
    shant

  • Using the Form javascript.addrow() to pass values while creating a new row?

    Version: 4.1.0
    DB: 11g
    Theme- scarlet 21
    Hi,
    I have a standard tabular form with the add, delete, submit buttons. Now when we hit the Add button, it creates a new row in the form. I had a requirement such that the user selects a row using the standard checkbox and then when he hits add, it should create a new row, and also, copy the contents of the selected row to the new row.
    Is this possible? Any suggestions please? I am thinking that I need to create a pl/sql process under Add button to check if the checkbox is selected, and if yes, then maybe run the javascript addrow(not sure if it can be done) and then try to populate the values.
    Thanks!
    Sun
    Edited by: ryansun on Oct 4, 2012 12:34 AM
    Edited by: ryansun on Oct 4, 2012 12:46 AM
    Edited by: ryansun on Oct 4, 2012 12:46 AM

    Hi Joni,
    Thanks. I am not familiar with JQuery, is there some link where such a logic is implemented? Atleast a basic one of adding a new row, and traversing and capturing the values? In forms we could do it using cursor but not sure how to do it in Apex.
    In my case the requirement is straightforward. If there is a table with three rows and have a standard form in APEX with the add, delete and submit buttons along with the radio checkbox in a tabular form,
    If I select a row and then hit the add button, a new row should be added and the values of the previous row should be passed.
    Would you be having a link to any such demo or documentation on how this is done, would be very helpful.
    Thanks!
    Sun

  • How to call the form bean value on jsp withthe help of jstl tag

    hi
    all friends
    i am working in struts & i use jstl tag in jsp. i have one problem rise is how to call the form bean value in jsp page by using jstl tag.
    i now how to retrive the value through jsp:logic
    eg. <logic:empty name="userListForm" property="users">
    NO USER FOUND
    </logic:empty>
    see * userListForm mean formbaen name.
    * users means collection object.
    so how can i write above e.g in jstl

    You use the jstl core:if or core:choose combined with the EL:
    <c:if test="${empty users.userListForm}">
    NO USERS FOUND
    </c:if>I suggest you lookup the jsp expression language (EL) using google, it's very powerful.

  • How can I use the POST form in defining a SAMLCredentialMapperV2

    Hi,
    I am trying to configure the SAMLCredentialMapperV2 in our WebLogic Portal 10.3.2. There is a parameter called "POST form -
    The POST form used with this SAML Relying Party". Can anyone give me a hint of how I can use this form parameter, where I have to deploy this form
    and where can I find documentation about those parameters.
    Any help would be appreciated.
    Best Regards
    Edmund

    As far as i remember his parameter was optional
    http://www.oracle.com/technology/pub/articles/dev2arch/2006/12/sso-with-saml.html is probably a better article, dont know if has any updates since this was written for 9.2

  • How to make changes to .fmx file using the form builder

    Hi all
    I have a .fmx form in the AR_TOP directory of the Oracle E-business suite.Now I need to make some changes to the form and compile it and place it back .But the .fmx file didnot open using the form builder 6i .So is there any way that i can convert the .fmx to .fmb so that I can open the form using the Form builder 6i??
    I have the toad s/w installed but I dont know how to open the form using the Toad.
    Thanks

    I have a .fmx formYou cannot open a fmx-file with any developer tool. To make changes to the source-code you need the fmb-file and open it witj Forms-builder
    AR_TOP -directory of the Oracle E-business suiteBe careful when changing source-code in the ebusiness-suite. If its a module from oracle i don't if its supported if you do changes in it.
    I have the toad s/w installed but I dont know how to open the form using the Toad.Toad is definitely the wrong tool for forms-modules.

  • How to pass the FORM Fields value by Form Personalization

    Hi ALL,
    I want to pass form filds values in to procedure. I am calling this procedure through form personalization of that form..... But it's not accepting any form field's value there... when i am passing hardcoded vales procedure is executing fine...
    can any one suggest what to do???
    i tried with these syntax
    TEST_EMP_FP(:ADDR.ADDRESS_ID,'ABC')
    TEST_EMP_FP(${item.ADDR.ADDRESS_ID.value},'ABC')
    Regards
    Ravi

    Hi,
    Iam calling an SRS from forms personlization. Can any body tell me how to pass the Form field values as parameters to the Reports. (Example when they call this Concurrent request from Transact5ions screen, The invoice number should be defaulted in the report parameter).
    Regards,,
    Anil.

  • How to control and use the search criteria values "%" ?

    Hi,
    When I searched some information in my employee name. I filled in search criteria values "%" and selected the "Go" button to see the result. But I got errors that the search criteria values should not begin with a "%" or "_" for at least one if the listed fields.
    How to control and use the search criteria values "%" ?
    Thanks,
    sinolee

    sinolee,
    These kinds of details are mentioned in Dev guide. Always have a look into dev guide before posting.
    --Shiv                                                                                                                                                                                                                                                   

  • How can i use the nested table in form 6i

    how can i use the nested table in the form 6i
    ( i.e i want to insert record into the nestred table field ).
    bye siddharth singh

    Nested tables are not supported in Forms 6i, only simple object tables.

  • How can I add check boxes without using the form widget?

    I would like to use check boxes for our facets for our search engine.  You can see an example below.  Is there anyway to do this without using the form widget?
    PJM - Site Updates

    It is not possible to accomplish this with the Muse's Form Widgets. You may need to look for other online solutions and fetch the source code and add to the Muse page using the Insert HTML feature.
    Cheers,
    Vikas

  • How to print out answers using the form I created

    I created an application form for my company. People have submitted their applications, but I do not know how to print them out.
    Is there a way to copy the answers into the form and print that? Or something like that?
    I cannot just print the answers because it's over 100 pages and would be disorganized.
    I basically just need to know how to print out the form I created with the respondants answers.
    Thanks

    Here is what you can do...
    Open the form file
    Go to the View Responses tab
    Select the View menu in the upper right corner of the UI
    Select the Details View menu item on that menu
    The Details View pane will open on the right side of the window
    At the bottom of that pane there is a set of buttons
    The first button let's you print the detail view of the currently selected response
    The last button labeled Export will create a PDF file of the selected response
    Is that what you were trying to accomplish? I'll admit that we need to make print and export to PDF more discoverable and easier to get to - that was too many steps
    Randy

  • How do I use the VIs for the Fluke Hydra Series 2620a multimeter?

    This message refers to the VIs found at this link:
    http://sine.ni.com/apps/we/niid_web_display.download_page?p_id_guid=E3B19B3E9468659CE034080020E74861
    How do I use the VIs for the Fluke Hydra Series 2620a multimeter? I am conducting a Senior Design Project at Temple University. It is a Control System where I need to read voltages from sensors and output voltages to different system components. I am trying to set up a VI using the VIs found above to make sure that I can successfully read and send voltages. There was no documentation given with the 2620a VIs.

    Unfortunately, you've got a very old driver for an old instrument. The only available help is to turn on Context Help and move your mouse over the VI icon. It doesn't appear to have any help for individual controls and indicators. The only good news is that it appears to be a simple instrument with only a few functions. There's some main ones line initialize (to set serial port), configure channel, configure instr, and read values. One main thing is whether you're using gpib or serial, Each front panel has a setting. If it's gpib, set the port to the gpib address. If it's serial, set the port to one number less than the com port you're connected to. For example, if you're using Com1, set the port to 0. For the other controls, I'm afraid that you're going to have to try and compare what's there with the controls and settings of the actual instrument. Having access to the instrument manual will be essential. I would engourage you to experiment a little. There's probably very little chance of damaging the instrument especially if nothing is hooked up to it. Send a command and see what happens or set the instrument up manually and see if you can reproduce that via remote control.

  • How Do I Use the API to Abbreviate?

    How do I use the ACE API to limit the output field length and properly abbreviate the output field?
    Using the pwace command-line application, I get abbreviated output that looks like this for a 30 byte field:
    nnnnn GEORGE WASHNGTN MMRL HWY
    However, when using the API, I end up with a truncated field:
    nnnnn GEORGE WASHINGTON MEMORI
    This is from the PRIM_ADDR field.
    How do I use the API to get the same field value as the command-line application?
    Thanks,
    Rob
    Edited by: rriggs on Jun 30, 2010 11:36 PM

    Rob,
    The jobfile product has intelligent truncation built into the product.  However, with the API this would be up for the user to code around. 
    Thanks,
    Brandon

  • How do you use the Multiple Item Information dialog box ???

    How do you use the Multiple Item Information dialog box ???
    Where are the instructions on how the information in the Multiple Item Information dialog box equates to ...
    1. The way iTunes sorts tracks and albums
    2. The reason to select a leading check box
    3. Why there are Option selections (Yes /No) and leading check boxes.
    4. Why some changes remain in the track info, but do not "take effect" in iTunes (Part of a compilation is an example)
    Looked in Help, Support, went to the local Genius bar for an hour, even arrainged a call from apple support ...
    Thanks

    As Christopher says, it's a compilation. Different tracks are by different artists.
    Setting the *Album Artist* field to *Various Artists* and setting *Part of a compilation* to Yes should be all that is required. Depending on your *Group compilations when browsing* setting ( I recommend On ) either should suffice but I suggest doing both.
    Based on your commentary, I selected all the "O Brother" tracks, and checked the boxes for everything line that was blank in the Info and the Sort panes. Only exceptions were the album name and the disc number 1 of 1 and the artwork. I blanked and checked anything else.
    That's not what I meant. When you select multiple tracks, only those values which +are already common+ to all tracks are displayed. Typically these will include Artist, though not with compilation albums, Album Artist, Album, No. of Tracks, Genre plus various sort fields. A blank value may indicate that different tracks have different values or it may be that the value is blank for all tracks. For the drop down values on the Options tab the value shown may not reflect the information in every tag. If values you expect to be common, such as Album Artist or the Album title are not displayed you can simply type these in and click OK. This will often be enough to group the album.
    If you place a checkmark against the blank boxes and apply changes then you will clear those fields so you should only do this if that is the effect you want. Putting a checkmark next to an empty (representing different values) *Track No.* box, for example, will just clear the all the track numbers which is very rarely useful.
    Adding then removing extra text is for a specific problem where despite all common values being identical across the tracks of the album iTunes seems to "remember" that it should see two albums. A typical example would be when an album originally listed as *Album CD1* & *Album CD2* is given disc numbers X of Y and then has the Album name changed to Album. I've seen iTunes merge all but one track into the new album, but insist on listing one remaining track separately, despite both albums having the same title. In this case I've found overtyping the album title again has no effect whereas changing it to AlbumX and then back to Album does what I was trying to achieve in the first place.
    Don't forget that even properly organsied albums may still break up if you don't chose an album-friendly view. Sorting on the track name or track number columns can be useful in some circumstances but in general I revert to Album by Artist when browsing through my library.
    tt2

  • How can I use the button in one panel to control the other panel's appearing and disappearing?

    How can I use the button in one panel to control the other panel's
    appearing and disappearing? What I want is when I push the button on
    one button . another panel appears to display something and when I
    push it again, that the second panel disappears.

    > How can I use the button in one panel to control the other panel's
    > appearing and disappearing? What I want is when I push the button on
    > one button . another panel appears to display something and when I
    > push it again, that the second panel disappears.
    >
    You want to use a combination of three features, a button on the panel,
    code to notice value changes using either polling in a state machine of
    some sort or an event structure, and a VI Server property node to set
    the Visible property of the VI being opened and closed.
    The button exists on the controlling panel. The code to notice value
    changes is probably on the controlling panel's diagram, and this diagram
    sets the Visible property node of a VI class property node to FALSE or
    TRUE to show or
    hide the panel. To get the VI reference to wire to the
    property node, you probably want to use the Open VI Reference node with
    the VI name.
    Greg McKaskle

Maybe you are looking for

  • Working with movie clips

    I'm making an animation with movie clips inside the stage but if i put action in the end of these for go to another frame in the stage, dosnt let me because AS3.0 does'nt alow script inside buttons and MC's. Wath can i do for this issue. The new code

  • Cycle count Process - T code MI04

    Hi all, I am having a doubt in cycle count process. I have created some CC document using MI01. When I go to MI04 to enter actual count; I could see that some of the line itmes are non editable. One observation is that; column ZC (Zero count) against

  • Credential Alias in JCO connection - xMII 12.1.4

    Hi All, We are using SAP xMII of version 12.1.4 Build (46). We are trying to add SAP server details over system configuration editor under data services. While adding entries for JCO connection, we didn't find any place to update login credentials fo

  • Metadata, titles coming up in a player after burned to cd

    Is there any way in AA3 to embed the title, composer, ISRC numbers etc into a wav file so that after it's burned to cd, the titles show up in a car stereo, windows media player,  or anywhere else where titles show? If not, any suggestions how I can a

  • IWeb FTP help after a server crash

    I have been using IWeb to post changes to my web page. During one of these FTP sessions, the provider's server crashed. Now when I try to publish with IWeb, I get a message that the directory path can not be found. When I use CyberDuck to FTP to the