Mandatory check box before form submission

I want users to accept my 'Terms & Conditions' statement on an application form before they are allowed to submit it by the e-mail button.
I want to place a required check box which produces an error message and prevents form submission until it is checked.
I have read hordes of the postings but none of the solutions seem to do quite what I want.
Any advice would be gratefully received

Hi,
I used the script you provided in the above post, and it worked perfectly, but my situation is a little different: I have two checkboxes, but I only want the message to appear if one of them isn't selected. If the other checkbox is selected, I need the fake submit button to go ahead and generate the email to send the form. I'm new to LiveCycle Designer, and I'm unsure of how to correctly use the "if" and "else" javascript. I need the message to appear when clicking the WebExYes checkbox, but I don't want it to appear when the user clicks the IntercallCheckBox.
Here's what my script looks like so far:
if 
(form1.subForm1.WebEx.WebExYes.rawValue != "1"){ xfa.host.messageBox("You must read the FHEG WebEx Usage Standards and select the Yes checkbox before submitting.");
else 
{ SubmitButton.execEvent("click");
if 
(form1.subForm1.AccountRequest.IntercallCheckBox.rawValue != "1")
else 
{SubmitButton.execEvent ("click");
Can someone tell me what I'm doing wrong or if I can even make this happen?
Thank you,
Hannah

Similar Messages

  • I have a problem with mail.  the spelling and grammer check box before sending the messege is no longer there.  I did everything but cannot get it back.  is ther anyone who knows how to get the box with spelling and grammer checks before sending

    i have a problem with mail.  the spelling and grammer check box before sending the messege is no longer there.  I did everything but cannot get it back.  is ther anyone who knows how to get the box with spelling and grammer checks before sending the mail.
    Also the mail is acting very funny by not getting the rules work in a proper method.  Is ther a software to repair mail.

    i did both of them, but still the while sending the mail the diolog box is not showing up and also the spelling and grammer does not do the spelling check. 
    This problem just started for about 3 to 4 days now.  earlier it was working normally.

  • Can i give color ot check box in forms 6i

    HI
    is it possible to change the color of check box in forms 6i..??
    i want to change the color of inner part of square of check box.. is it possible??
    pls reply me asap .

    Hi,
    It is not possible to change the colour of the check box where the check appears. You will be able to only change the colour of the other areas.
    Hope this helps.

  • Hidden Email Submit Button & Mandatory Check Boxes

    Hi guys
    I'm trying to get my form to only allow people to return the form (via email) once they have accepted the terms and conditions AND the privacy policy.
    Their acceptance of these is confirmed by 2 check boxes called acceptservicesterms and acceptprivacypolicy respectively. For each of these check boxes I have added this script to 'initialise':
    this.mandatory = "error";
    this.mandatoryMessage = "You must accept our Services Booking Terms and Conditions to request a booking";
    I have then set my email submit button (EmailSubmitButton) to 'hidden (exclude from layout)' and created a 'fake' email submission button in its place. The click event for the FakeEmailSubmitButton is scrpited as:
    if (acceptserviceterms.rawValue != "bookingtermsagreed")
    xfa.host.messageBox("You must accept our Services Booking Terms and Conditions to request a booking");
    else if (acceptprivacypolicy.rawValue != "privacypolicyagreed")
    xfa.host.messageBox("You must accept our Privacy Policy to request a booking");
    else
    EmailSubmitButton.execEvent("click");
    Where the 'on' values are 'bookingtermsagreed' and 'privacypolicyagreed' respectively.
    Unfortunately, this hasn't worked for me - I'm not sure if the javascript is completely correct, or if I have gone about this the right way. Can anyone shed any light on what I've done wrong please?
    Thanks in advance

    if (acceptserviceterms.rawValue != "bookingtermsagreed")
    in this line the field name is acceptservicesterms but u typed as acceptserviceterms - letter s missing.
    after this correction i am able to see the error messages.

  • I am new to using flash and need to know how to add check boxes and forms

    I have been going mad trying to figure this out as well as searching until exhaustion.
    So I am hoping someone can point me in the right direction.
    Okay here is what I am trying to accomplish.
    I have laid out my design as a psd and brought it into adobe flash pro cs5.
    I have menu items such as toppings that I want to put check boxes next to each and then once someone goes thru the page and places their choices,I want to be either be emailed what they have chosen from the form... This seems like it might be the easier of the ways to capture data, Or if there is a better way in flash to capture this data, I would take that as well.
    SO here is as far as I can get.
    Imported the psd and added one checkbox in front of the first item and labeled it strawberries. Now I really don't want the word strawberries to show up at all on the page,just the checkbox. But I am not sure if the label for the checkbox actually passes on the value of the checkbox.
    I admit I am lost.
    I did also slice and export this same image into dreamweaver and then I made a separate apDiv for each checkbox, and added into a form. It emails the results,but it is not outputting it in a very readable way.
    Oh I also brought this int Flash Catalyst and added the checkboxes, but I don't know where to go from there.
    So if anyone can let me know the proper way to do this or point me to some videos or tutorials or even a sample file that I can alter....
    I would really appreciate it.
    Thanks

    http://www.flashloaded.com/userguides/ezform/formelements.html

  • Check box & PHP form in AS2

    Hi all,
    I'm currently using this PHP script below for a form in a flash site.
    http://www.flashadvisor.com/tutorial/Beginners/Custom_PHP_Email_Form-5.html
    I wanted to add either a check box or radial box for an RSVP form that I'm creating where the person can check something like "are you attending, yes or no".  How can I modify the script above to include that?
    Thanks

    you'll need to extract the data from your checkbox (use the selected property), assign it to a _level0 variable and add code to the php file to parse that variable.
    but what you should do is look for a tutorial the uses loadvars to send and receive data to and from php.

  • Can't use LOV with item type "check box" in form

    I have created a LOV that I want to use with a form application in 3.0.9. I need to be able to do multiple choices in this LOV (check box style) in the same query (only queries - users won't be able to update this field)
    When I choose Check box as the item type in the form wizard I am not able to choose the LOV. I have to use combo box, popup or radio group for the LOV choices to appear, but then the query can only query for one value in the LOV at a time.
    Is there a solution to this?

    Hi,
    This feature is not supported as of now. You cannot have multi select LOV for a form field and hence a checkbox cannot have a LOV.
    Thanks,
    Sharmila

  • Whats the best way to check table before form deletion or update ?

    Hi, I have a func_staff table made up of a composite key - func_no and staff_id. I have a form where the datablock references this table.
    I need to be able to check that before a func_no and staff_id combination on the form are written to the database that that combination does not already exist in the table.
    What would be the code for that ? I've tried stuff like IF EXIST statements and even a select statement but I totally worded it it wrongly.
    To DELETE an entry in that same table, would the best way to be create an LOV for both func_no and staff_id, the problem with that would be if a user selected a combination that does not exist ? Could I create a combined LOV that would populate each field ?? (this way I could be 100% sure that the selected combination is valid)
    Thanks Peeps.

    hi,
    you can try and use the count(*), before deleting and updating
    lets say
    select count(*)
    into l_count
    from table_name
    where column1 = :block.column1
    and column2 = :block.column2;
    if l_count <> 1
    then
    insert into..........
    else
    show error message;
    raise form trigger failure;
    end if;
    similarly u can use l_count before deleting.
    regards,
    Mayank

  • 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 .

  • Crystal Reports - check boxes on forms

    Does anyone know if it is possible to embed check boxes ( ticked or crossed based on True / False values) in Crystal Reports?
    I have a large number of forms to develop which use Yes / No values in UDF's and I want to display tick or cross in check boxes based on these values!
    Thanks

    Somewhat 1 year ago I issued a iTar on that,
    is a known bug that is apparently not worsewhile to fix.
    cu

  • 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

  • How to perform validity checks just before form data is saved?

    hello all,
    i need to perform some checks on various fields just before data on a standard form is saved, and to eventually rollback the transaction.
    if the checks are succesful i have to perform some db operation in transaction with main data.
    solution ( if existent! )  has to be addin only -> no triggers / no procedures / no sbo_transaction thingies
    scenario:
    involved tables:
    OITM
    USERDEFINEDTABLE1
    USERDEFINEDTABLE2
    involved forms:
    Items - OITM - formtypeex = "150"
    logic:
    an user defined field U_UDFCHECKACTIVE has been added to OITM, a combo box has been added to items form containing values Y and N, bound to OITM.U_UDFCHECKACTIVE.
    when the user saves an item, if OITM.U_UDFCHECKACTIVE == Y we have to perform additional checks on USERDEFINEDTABLE1
    if the check result is true we have to save OITM current data and insert a record in USERDEFINEDTABLE2 containing itmgrp value (  )
    if the check result is false we have to block save operation
    if OITM.U_UDFCHECKACTIVE == N no check is performed and everything works normally
    we started hooking the form data event for oitm / form type 150:
    Application.SBO_Application.FormDataEvent += new SAPbouiCOM._IApplicationEvents_FormDataEventEventHandler(FormDataEventHandler.SBO_Application_FormDataEvent);
    then we filtered the event
    switch (BusinessObjectInfo.FormTypeEx)
                        case "150":
                            if (BusinessObjectInfo.BeforeAction &&
                                (BusinessObjectInfo.EventType == SAPbouiCOM.BoEventTypes.et_FORM_DATA_UPDATE ||
                                    BusinessObjectInfo.EventType == SAPbouiCOM.BoEventTypes.et_FORM_DATA_ADD))
                                BL.Items_BusinessLogic.SBO_Application_FormDataEvent(ref BusinessObjectInfo, out BubbleEvent);
    in our business logic class i don't know how to correctly check the values just before they are saved to db
    for example i tried using oitm.browser :
    if (oitm.Browser.GetByKeys(BusinessObjectInfo.ObjectKey))
                            String value =  oitm.UserFields.Fields.Item("U_UDFCHECKACTIVE ").Value as String;
                             //perform checks
                                  //if ok insert records and bubbleevent = true
                                  //if ko rollback the bubbleevent = false
    //if checks are not to be performed then bubbleevent = true....
    but it's wrong, as it populates oitm object from db, and not from the form. i have old values stored in the object, values tha are to be overwritten with those present on form.
    i tried inspecting the form for data sources but i don't know how to navigate to the right one, i found only system generated objects with SYS_##, with no clue about the related dbfield
    i tried getting the values directly from the form, but in object BusinessObjectInfo i don't have anything that identifies univocally the form i'm editing.
    i mean if i have 2 item forms open, i don't know which one is the one i'm saving.
    i'm expecting to find somewhere a temporary oitm business object containing values that are to be saved, values that i can easily check.
    so i'm asking you how to find those values in order to perform my bl checks
    thank you in advance

    Hi Christian,
    The values that are about to be saved should be in the datasources:
    form.DataSources.DBDataSources.Item("OITM");
    form.DataSources.DBDataSources.Item("ITM1");
    The form variable should be form 150.
    Best regards,
    Pedro Magueija

  • Suggestions: Mulitple Check Boxes in form

    Hi there.
    CS3, php & mySql.
    I'm busy doing a form for a real estate agent where they can
    add
    properties up for sale.
    My dilemma is that some fields have a possibility of up to 7
    checks for
    one question. the problem is that DW only recognises the last
    checkbox
    and not all.
    How would you have done this? I will really appreciate some
    help.
    You can take a look at the form at:
    http://www.trollipestates.co.za/admin/addrecords.php
    Thank you so long.
    Deon

    Gary White <[email protected]> wrote in
    news:[email protected]:
    > On Thu, 20 Nov 2008 17:37:37 +0000 (UTC), Deon H
    <[email protected]>
    > wrote:
    >
    >>The form is sent to a confirmation page where the
    entered data must be
    >>checked. This includes the data entered into the
    checkbox-group. If
    OK,
    >>hit the submit button which will add the details as a
    record in the
    >>mySql database.
    >
    > That's still pretty vague. Looking at your page, I see
    you have
    > mistakenly set the type of one of your checkboxes to
    checkbox[]. You
    > need to change this:
    >
    > <input name="maidavailable" type="checkbox[]"
    id="maidavailable"
    > value="Monday" /> Monday</p>
    >
    > To this:
    >
    > <input name="maidavailable[]" type="checkbox"
    id="maidavailable"
    > value="Monday" /> Monday</p>
    >
    > In order to display them in the processing page you
    might try
    something
    > like this:
    >
    > if(is_array($_POST['maidavailable'])){
    > $maidavailable=join(',',$_POST['maidavailable']);
    > }else{
    > $maidavailable='No';
    > }
    > echo "Maid available: $maidavailable";
    >
    > Gary
    >
    Gary, thanx for your help & time.
    I'll try again to explain ...
    Question:
    The maid is available on:
    Answer: Monday, Tuesday, Wednesday, Thursday, Friday,
    Saturday, Sunday.
    The person then selects the appropriate days; example:
    Monday, Tuesday, Friday. (More than 1 answer.)
    How is this done? With the [], all that goes into the
    database, is Array
    and without, only the last selected day.
    I'm sure it must be doable?
    Thanx again.
    Deon

  • Creating check boxes in form

    How is this done in LifeCycle? I am unable to get them to work??
    I am using Adobe Professional and creating the lifecycle form in there.
    Thanks!!

    No need to drag it down. On the left hand side, in the Hierarchy, try to arrange the checkbox items in the order you want.
    The one that is in the top will be displayed first. This will be effective and will not disturb other objects when we want to rearrange objects.
    Regards,
    Krishna

  • Check box before select option in a report program.

    Hi All..
    I have a report program with select options..I want to put a checkbox before the select option, aligned with it...Is it possible..
    Regards
    Rudra

    Hi Rudra,
    Take the below help program. In the below program I am disabling the text fields....
    Take the refrence and do it will fix the problem
    &***************************Reward Point if helpful***************************&
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-003.
    PARAMETERS: P1 RADIOBUTTON GROUP G1 DEFAULT 'X' USER-COMMAND Z1.
    SELECT-OPTIONS: S_PMNUX FOR S076-PMNUX MODIF ID MI1.
    PARAMETERS:     P_WENUX LIKE S076-WENUX MODIF ID MI1.
    PARAMETERS: P5 TYPE CHAR15 AS LISTBOX  VISIBLE  LENGTH 15 MODIF ID MI1.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN POSITION 7.
    PARAMETERS: P3 RADIOBUTTON GROUP G2 MODIF ID MI1.
    SELECTION-SCREEN COMMENT 10(10) TEXT-001 MODIF ID MI1.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN POSITION 7.
    PARAMETERS: P4 RADIOBUTTON GROUP G2 MODIF ID MI1.
    SELECTION-SCREEN COMMENT 10(10) TEXT-002 MODIF ID MI1.
    SELECTION-SCREEN END OF LINE.
    PARAMETERS: P_FILE TYPE RLGRAP-FILENAME MODIF ID MI1.
    PARAMETERS: P2 RADIOBUTTON GROUP G1.
    SELECT-OPTIONS: S_PMNUX1 FOR S076-PMNUX MODIF ID MI2.        " Product Group
    PARAMETERS:     P_WENUX1 LIKE S076-WENUX MODIF ID MI2.       " Plant
    PARAMETERS: P6(15) TYPE C AS LISTBOX VISIBLE LENGTH 10 MODIF ID MI2.
    *PARAMETERS: P_EMAIL(255) TYPE C MODIF ID MI2.
    PARAMETERS: P_EMAIL TYPE SOMLRECI1-RECEIVER.    " Email Address
    SELECTION-SCREEN END OF BLOCK B1.
    *      AT SELECTION-SCREEN OUTPUT                        *
    AT SELECTION-SCREEN OUTPUT.
      IF P1 = 'X'.
        LOOP AT SCREEN.
          IF SCREEN-GROUP1 = 'MI2'.
            SCREEN-INVISIBLE = 0.
            SCREEN-INPUT = 0.
            SCREEN-ACTIVE = 1.
            SCREEN-OUTPUT = 1.
            MODIFY SCREEN.
          ENDIF.
          IF SCREEN-GROUP1 = 'MI2'.
            SCREEN-INVISIBLE = 0.
            SCREEN-INPUT = 0.
            SCREEN-ACTIVE = 1.
            SCREEN-OUTPUT = 1.
            MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
      ELSEIF P2 = 'X'.
        LOOP AT SCREEN.
          IF SCREEN-GROUP1 = 'MI1'.
            SCREEN-INVISIBLE = 0.
            SCREEN-INPUT = 0.
            SCREEN-ACTIVE = 1.
            SCREEN-OUTPUT = 1.
            MODIFY SCREEN.
          ENDIF.
          IF SCREEN-GROUP1 = 'MI1'.
            SCREEN-INVISIBLE = 0.
            SCREEN-INPUT = 0.
            SCREEN-ACTIVE = 1.
            SCREEN-OUTPUT = 1.
            MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
      ELSE.
        LOOP AT SCREEN.
          IF SCREEN-GROUP1 = 'MI2'.
            SCREEN-INVISIBLE = 0.
            SCREEN-INPUT = 0.
            SCREEN-ACTIVE = 1.
            SCREEN-OUTPUT = 1.
            MODIFY SCREEN.
          ENDIF.
          IF SCREEN-GROUP1 = 'MI1'.
            SCREEN-INVISIBLE = 0.
            SCREEN-INPUT = 0.
            SCREEN-ACTIVE = 1.
            SCREEN-OUTPUT = 1.
            MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
      ENDIF.

Maybe you are looking for