Check box w/validation form troubles

hello there, I am under a major, major Deadline!
I have a flash and php contact form with a validation made
with all input text boxes. I need to add 1 check box to the form,
but I don't know how to pass it to through.
here is the code I have for my form now.
function checkForm():Boolean {
// this checks whether required fields have been filled in
// initialize missing flag on assumption everything OK
var missing:Boolean = false;
// clear all error text fields
error1_txt.text = error2_txt.text=error3_txt.text="";
// check each field
// if problem is encountered, display message
// and set missing flag to true
if (text_field_1.text == "") {
error1_txt.text = "Please enter your name";
missing = true;
if (text_field_2.text.indexOf("@") == -1) {
error2_txt.text = "Please enter a valid email address";
missing = true;
if (text_field_5.text == "") {
error3_txt.text = "You have not entered any comments";
missing = true;
// if missing is true, return false
// otherwise return true
return missing ? false : true;
function sendMessage():Void {
// check whether form has been correctly filled in
var formOK:Boolean = checkForm();
// if no problems, process the form and send variables to
PHP script
if (formOK) {
// Form processing goes here
message.from = text_field_1.text;
message.email = text_field_2.text;
message.comments = text_field_5.text;
message.sendAndLoad("feedback.php?ck="+ new
Date().getTime(), messageSent);
// display message informing user that email is being sent
gotoAndStop("sending");
function backToForm():Void {
// send playhead back to the main form
gotoAndStop("theForm");
// create and apply text format for date
var dateDisplay:TextFormat = new TextFormat();
dateDisplay.font = "Georgia,Times,_serif";
theDate_txt.setNewTextFormat(dateDisplay);
theDate_txt.autoSize = "left";
// create LoadVars instance to retrieve date from PHP script
var getDate:LoadVars = new LoadVars();
// initialize LoadVars to send form data
// and receive response from the PHP script
var message:LoadVars = new LoadVars();
var messageSent:LoadVars = new LoadVars();
// load date from PHP
getDate.load("
http://localhost/phpflash/ch02/today2.php");
// assign theDate property of the LoadVars instance to text
field
getDate.onLoad = function() {
theDate_txt.text = this.theDate;
messageSent.onLoad = function() {
if (this.sent == "OK") {
gotoAndStop("acknowledge");
} else {
gotoAndStop("failure");
failure_txt.text = this.reason;
gotoAndStop("theForm");
any help would be greatly appreciated.
thanks,
hutch

if by check box you mean a radio button, you can add the
following to your code:

Similar Messages

  • How to create check box in tabular form

    Dear Friends
    i have craeaed tabular form .Recently all column are default text field but i want to change some column from text field to check box .
    i have try it with simple check box but there is no option to pass return value in to table.
    How to create check box in tabular from.
    select
    "CLAIM_ID",
    "CLAIM_ID" CLAIM_ID_DISPLAY,
    "EMPLOYEE_ID",
    "CLAIM_DATE",
    "START_FROM",
    "END_TO",
    "REIMB_NAME",
    "REIMB_AMOUNT",
    "REMARK",
    "ACTIVE_FLAG",
    "STATUS",
    "APPROVE_NO",
    "APPROVE_FLAG"
    from "EMP_REIMBURSEMENT_DTL
    {code}
    i want to change column from text field to Check box
    Cplumn Name :
    1.ACTIVE_FLAG Return value 'Y'
    2.STATUS Return Value "APPROVE"
    How to pass it with check box in tabular form.
    Thanks                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Visit this demo app:
    http://apex.oracle.com/pls/otn/f?p=31517:1
    Section VI has a lot of tabular form stuff with checkbox handling.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.apress.com/9781430235125
    https://apex.oracle.com/pls/apex/f?p=31517:1
    http://www.amazon.de/Oracle-APEX-XE-Praxis/dp/3826655494
    -------------------------------------------------------------------

  • Preview not saving check boxes in PDF forms

    For some reason 10.6's preview will not save check boxes in PDF forms, you can click them but as soon as you save them they disappear.

    I'm having the exact problem. I have a fillable PDF form that has many checkboxes. Saving the pdf (doesn't matter whether it's 'Save', 'Save All', or 'Save As' under the File menu) will clear/reset the checkboxes in the file.
    Anyone know of a workaround for this? Or, is Apple fixing this soon? I really don't want to get Acrobat Pro 9 (well, I don't think it's compatible with Snow Leopard yet anyway)
    If you'd like a sample PDF file to try it out, let me know.
    Thanks.

  • How to add check box to the forms in scripts

    Hello experts,
             i got one requirement. to add a check box to the form. how can we add a check box in form. is it possible to adda check box in scripts?
    thanks in advance.

    Hi Pammi,
    In a window go for text elements & then go for change editor & use the following:
    Insert->Characters->SAP symbols->SYM_CHECKBOX
    It will not show checkbox in print preview. Take a printout.
    Ashven

  • Want Print Priview of check box on smart forms

    Hi Expert,
    I want  Print Priview of check box on smart forms.
    I get the checkbox symbol when i give the print out but it not show in priview.
    So pls suggest how it show in print priview.
    Thanks & Regards
    SwatantraPathak

    Hi,
    If you used the symbols then you cannot see the print preview of the checkboxes. This can seen in the print. If you want to have the print preview of checkbiex you have to create the Window of same size as check size and place it where you required. This cannot be possible with symbols

  • Disable Check box in tabular form

    Hi,
    I am working on apex4.1. I have created a tabular form.There is 2 columns Approve and Cancel. if I tick on cancel check box then Approve check box column should disable and vice versa.
    How can i do this ?
    Thanks & Regards
    Vedant

    hi,
    this thread maybe help you
    Tabular Form: Enable/Disable a field based on the status of a check box
    regards,

  • "Check Box" in ADF Form is not Working in JDev11.1.1.2

    11gR1 :
    I created an ADF Form in a JSF Page and I deleted one column and draged the same column again as an "ADF selectBooleanCheckbox "
    and in Edit Boolean Binding Dialog : I entered the value selected as 'True' and unselected value as 'False'
    and when I run the Page the data did not Synchronize with the chech box item.
    Note :- although the check box Item is working with Adf Table in example #145 at link http://blogs.oracle.com/smuenchadf
    can anybody help me?
    regards
    Forakora

    Hi,
    just tried and found out that you have to set partial triggers for the af:selectBooleanCheckbox like:
                  <af:selectBooleanCheckbox value="#{bindings.Deptno.inputValue}"
                                            label="#{bindings.Deptno.label}"
                                            shortDesc="#{bindings.Deptno.hints.tooltip}"
                                            id="sbc1" partialTriggers="cb1 cb2"/>
                  <af:commandButton actionListener="#{bindings.Next.execute}"
                                    text="Next" partialSubmit="true" id="cb1"/>
                  <af:commandButton actionListener="#{bindings.Previous.execute}"
                                    text="Previous" partialSubmit="true" id="cb2"/>regards,
    Branislav

  • Create Check box in Tabular form and report

    This is Marilyn. I wanted to know if anybody can help me with the following scenario.
    I created tabular form which has some LOV columns, and some check boxes. When the user clicks on "add row" button, I want to populate the row with the values from the LOV display to be selected by user, and some of the blank check box also display as empty check box in order for user to select check or uncheck them.
    If this is possible, can you provide an example?
    Thanks

    Visit this demo app:
    http://apex.oracle.com/pls/otn/f?p=31517:1
    Section VI has a lot of tabular form stuff with checkbox handling.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.apress.com/9781430235125
    https://apex.oracle.com/pls/apex/f?p=31517:1
    http://www.amazon.de/Oracle-APEX-XE-Praxis/dp/3826655494
    -------------------------------------------------------------------

  • Referencing Check Boxes on Another Form

    From one form, I want to reference the rows that have been checked on another form.
    The Process
    I have a form with many items/rows. Each item/row has a check box and Unique Id on this form. I would like to click multiple check boxes indicating the rows I want to work with. When I click a button, I would like to open a new form with only those items I have checked.
    While I have lots of documentation, I am so new I am not sure where to look.

    And here's another: http://acrobatusers.com/tutorials/so-where-does-javascript-go-in-acrobat
    Thom has a number of other tutorials on acrobatusers.com that shold be helpful as well.

  • How to use a check box in smart forms????

    Hi All,
    Pls let me know how to use check boxes in smartforms.....??
    there are check boxe available which are crossed (i.e,, selected checkboxes) in the smartforms..
    But i need a checkbox which are not selected.( i.e.., which are not crossed).
    Its really urgent...
    Quick responses are highly appreciable..
    Bye

    Refer this thread
    Re: how to display symbols in smartforms
    We can create symbols in smartforms. For this, change the editor to text editor and then goto insert->characters->SAP Symbols and select the symbol you want.
    You cannot see the symbols in print preview, it'll appear only on a hard copy.
    You can also create as Text Element. In the left side of the right window,you can see a icon called Editor.Click it.
    Then in the Menu,
    go to->Change Editor
    Then in the menu,
    Insert->Characters->Displayable characters,select the character you want.Otherwise,if you want to insert SAP Icon,select that option instead of Displayable Character.

  • Dynamic list of check boxes in forms 6i

    hi there, i'm trying to build a form which based on the contents of a table shows a number of check boxes, i'm having trouble figuring out how to go about i though, any ideas???

    the 3 builtin you should use are :
    create_group_from query.
    Populate_group
    Populate_list
    Check out the online help on these routines .

  • How to check the "check box" based on an event on form

    Hi,
    I have couple of text items and a check-box on a form. Is there a way I can check the box automatically when the text item values are edited/enterd by user ?
    I'm using the JS shown below but it doesn't work.
    I have this JS in page header.
    +<script type="text/javascript">+
    +function checkTheBox() {+
    document.getElementById('MY_KBOXNAME').checked='checked';
    +}+
    +</script>+
    And I have this in my form element options.
    onChange=checkTheBox();
    What am I doing wrong?
    Thanks in advance,
    Asha

    Hi,
    For checkbox with name P1_CHECKBOX , first checkbox is refferred using P1_CHECKBOX_0 , second one using P1_CHECKBOX_1 and so on..
    Change document.getElementById('MY_KBOXNAME').checked='checked' . instead of MY_KBOXNAME , use MY_KBOXNAME_0, MY_KBOXNAME_1 ETC depending which checkbox you want to check.
    Regards,
    SK

  • How to create a new check box using form personalization.

    Hi Frs,
    I have a requirement to create a new check box in AP form using form personalization.
    Pls help me in achieving this.
    Note: we have to use only form personalization not custom.pll.
    Thanks
    Rajesh

    Pl see ML Doc 420518.1(Limitations of Forms Personalization) for a list of things you cannot do with personalization - among them is creating new form objects such as checkboxes.
    HTH
    Srini

  • Binding a Check Box with a User Defined Field

    Hi everyone,
    i v created a user defined field (U_CheckPro)in the system table "OITM" with two values: Y for Yes and N for No. In relation to that i v also created a check box on the form "150" and would like to know how can i bind my checkbox with  my user defined field properly.
    The user would be than able to enable or disable the check box for each item (article). The user setting schould be than be active and valid in sbo-business logic, each time an item is selected. (for example in case of sales order ID 133, "OINV").
    Any helfpul hints? Samples would be welcome as well.
    Thanks and regards
    Alban

    > First of all you should remove the valid values
    > because checkboxes does not work with valid values...
    > Just give a default value.
    Hi Rasmus,
    thank you very much for your helpful hint. I guess my problem is solved by that - nevertheless here is my complete code sequence once again in case of possible errors.
    I would appreciate any additional suggestion for improvement of the same.
    Thanks and regards
    Alban
    >>>
    Private Sub AddItem()
            ' Test UserSource
            oForm.DataSources.UserDataSources.Add("U_CheckPro", SAPbouiCOM.BoDataType.dt_SHORT_TEXT, 1)
            oItem = oForm.Items.Item("122")
            ' Adding a Static Text item
            oNewItem = oForm.Items.Add("StaticTxt2", SAPbouiCOM.BoFormItemTypes.it_STATIC)
            oNewItem.Left = oItem.Left + 20
            oNewItem.Width = 100
            oNewItem.Top = oItem.Top + 12
            oNewItem.Height = 25
            oNewItem.FromPane = oItem.FromPane
            oNewItem.ToPane = oItem.ToPane
            oNewItem.LinkTo = "CheckBox1"
            oStaticText = oNewItem.Specific
            oStaticText.Caption = "Test_Caption"
            ' Adding a Check Box item
            oNewItem = oForm.Items.Add("CheckBox1", SAPbouiCOM.BoFormItemTypes.it_CHECK_BOX)
            oNewItem.Left = oItem.Left
            oNewItem.Width = 20
            oNewItem.Top = oItem.Top + 15
            oNewItem.Height = 19
            oNewItem.FromPane = oItem.FromPane
            oNewItem.ToPane = oItem.ToPane
            oNewItem.DisplayDesc = False
            oCheckBox = oNewItem.Specific
            'binding check box to source
            oCheckBox.DataBind.SetBound(True, "OITM", "U_CheckPro")
        End Sub
    >>>

  • Adding a check box in scripts

    Hello experts,
             i got a requirement like to add a check box to the form. is it possible in scripts. if yes can u tell me how can we add a check box in the form(scripts).
    thanks is advance

    thanks yaar.
           but in first option iam not understanding textelement(f9) what is that mean.
    after going to text element we have to press f9 right. then we have to write [] like this in text editor. is it right?
    actually my output is like this
    slno           qty           mtlno      desc
    in the below of slno i have to add check boxes and after that i have to implement some logic if it is checked like that i want.
    thanks & regards
    raj

Maybe you are looking for

  • How to resize everything on the stage in all frames

    Is it possible to resize everything on the stage in one (or a few) step? I know scaling the movie has the same result, but when working in Flash it's a lot easier when you see the actual size.

  • Premiere Elements 11 - Can't read my menu/scenes under preview

    When I preview the menu the menu and scenes show up for about 5 seconds and then they become unreadable.  They are blurry.  When I burn DVD you can see the writing for the menu/scenes but can't tell what it says.

  • Convert direct??

    convert direct will not send me an email back? is this normal how long doe it take to send an email back?

  • [Solved] Problems compiling a kernel on Archlinux

    Hi all, some days ago I wanted to compile a kernel on my system, and everything was fine but I have a simple problem. Compile the kernel in the traditional manner, but no logo create the ramdisk image. https://wiki.archlinux.org/index.php/Ke - raditi

  • Workflow configuration for employee rejection

    HI all, Employee getting rejected the time sheet by this manager and message will sit in his SAP BUSINESS WORKPLACE.I want  message to be stored in employees' own account than SAP BUSINESS WORKPLACE.please provide the configuration for that Thanks Am