Check box and items help

if zero or one check box is checked then item (NO S)is shown
if more than one check box is checked then items will show (show S)
<cfparam name="variables.morethanone" default="0">
<cfset count.morethanone= 0>
<cfloop index="checkField"
list="#form.1#,#form.2#,#form.3#,#form.4#,#form.5#">
<cfif checkField EQ "on">
<cfset count.morethanone= count.morethanone + 1 >
</cfif>
</cfloop>
<cfif count.morethanone GT 1>
<cfset variables.morethanone = "1">
</cfif>
item<cfif variables.morethanone>s</cfif>
i wish to have the item show items:
in a page before submit.
when a ((no,0) or one ) checkbox is checked and submit then
items will become item (s disapears)
if more than one check box is checked then s will appear/show
after submit button.
the code i have does not show the s on the initial page
(before submit)
it show as
please click one of the following item instead i need it to
show: please click one of the following items
then the logic i have just explained above.
what do i do thanks.

I'm not exactly sure what you want to do, but here's the code
that shows "items" when more than 1 checkboxes are checked on the
previous form page; otherwise, it shows "item":
<html>
<head>
<title>Untitled</title>
</head>
<body>
Target Page:
<br><br>
<cfparam name="Form.Checkbox_1" default="">
<cfparam name="Form.Checkbox_2" default="">
<cfparam name="Form.Checkbox_3" default="">
<cfparam name="Form.Checkbox_4" default="">
<cfparam name="Form.Checkbox_5" default="">
<cfset count = 0>
<cfloop index="checkField"
list="#Form.Checkbox_1#,#Form.Checkbox_2#,#Form.Checkbox_3#,#Form.Checkbox_4#,#Form.Check box_5#">
<cfif checkField EQ "on">
<cfset count = count + 1 >
</cfif>
<cfif count GT 1>
<cfbreak>
</cfif>
</cfloop>
item<cfif count GT 1>s</cfif>
</body>
</html>

Similar Messages

  • Check Box and Feedback help

    Hi
    I'm having a few problems with this checkbox quiz i'm
    re-developing from old Java Applets.
    I've managed to create the checkboxes dynamically, but need
    to get the true/false answers out of the dataset and show feedback
    in the dynamic textfield box.
    This link has the fla attached
    http://board.flashkit.com/board/showthread.php?t=695320
    Can anyone help... would be much apreciated.
    John

    No-one help at all?

  • Problem getting check boxes and radio button to click with applescript

    This is my script, it runs through without error, i can see the check box lightly flash like its being focused in on, but it wont actually check mark the box. it does this with all my check boxes and radio buttons.
    tell application "Adobe InDesign CS3"
    activate
    end tell
    tell application "System Events"
    tell process "InDesign"
    tell menu bar 1
    click menu bar item 12
    key code 125
    key code 125
    key code 124
    key code 125
    key code 125
    key code 36
    delay 1
    end tell
    tell window "Variable Links"
    click checkbox "Use InDesign Tags Filter"
    end tell
    end tell
    end tell

    Hi craneium and welcome
    For me this script fails, going through it step by step it seems confused, as I have highlighted out in the below code.
    where is the window "Variable Links, may be I can help.
    tell application "Adobe InDesign CS3"
    activate
    end tell
    tell application "System Events"
    tell process "InDesign"
    tell menu bar 1
    click menu bar item 12 --opens spotlight search in help
    key code 125 -- highlights indesign help
    key code 125 -- highlights welcome screen
    key code 124 -- goes to apple
    key code 125 -- goes to about this computer
    key code 125 -- highlights software update
    key code 36 -- starts software update
    delay 1 -- ?
    end tell
    tell window "Variable Links" -- error cant get window variable links
    click checkbox "Use InDesign Tags Filter"
    end tell
    end tell
    end tell
    Budgie

  • Check box in search help

    Hi Experts,
    I have created one custom table. there is one field called zflag ( TYPE C - length 1). This field will contains values either 'R' or ' '.
    I have one module pool program. In that I have field called doc number. As soon ad user press F4 on doc number field, search help will displayed.
    field zflag is added to that serach help and it is working fine.
    But user wants show this field as check box in search help.
    Could you pls help me how to place check box in place of text field.
    Thanks in advance
    Regards
    Raghu
    Edited by: r badveli on Feb 17, 2009 10:38 PM

    Anyone has any idea about this?
    As soon as I press F4 on document no field, It will display one pop-up window with search help restrictions.
    In the search help restrictions ... I have added one flag field . But we nedd that text field as check box.
    How can we acheive this?
    Thanks.

  • Popup screen with two check box and a text area for the user to enter value

    hi,
    i have a requirement when a button is clicked a popup screen should appear with two check box and a text box where the user can enter a value.
    is there any function module which has that functionality

    Hello,
    You can create a new screen and select the screen type as <b>model dialog box</b>.This will give you a<b> pop-up screen</b> and you can call this model dialog box screen in the PAI of the screen where the button is present.(At user-command).
    <b>case ok_code.
    when 'BUTTON'.
    call screen 200 starting at 10 10.</b>
    You can design the PBO of this pop-up screen as per your needs.
    Regards,
    Beejal
    **Reward if this helps.

  • How to create the Check box and Text Area inside the Assignment block

    Dear all,
            I am new to web UI development. my requirement is to create the Check box and Text box in the Assignment block. Can anyone help me to do this requirement.
    Thanks & Regards,
    Ashok.

    Hi,
      Please place the below code in the GET_P methods of the fields.
      For Text Area 
    CASE iv_property.
        WHEN if_bsp_wd_model_setter_getter=>fp_fieldtype.
          rv_value = cl_bsp_dlc_view_descriptor=>field_type_textarea.
      ENDCASE.
    For Check Box 
    CASE iv_property.
        WHEN if_bsp_wd_model_setter_getter=>fp_fieldtype.
          rv_value = cl_bsp_dlc_view_descriptor=>field_type_checkbox.
      ENDCASE.
    Regards,
    Lakshmi.Y

  • Livecycle: Can you click a check box and have it copy the entire field to a new location?

    I have a check box and I want to check the box and have field 1a, field 1b, field 1c be copied to location on a third page.
    These are patient goals: and those goals need to be recognized later on while trying to fill out paperwork, but I don't want to have to look back at the front page. so I want to pick which goals I want to see at a later page and have the goal  (field) and the field content that was chosen on the first page show up.
    I will choose three to five goals and I want them lined up
    field 1a, field 1b, field 1c then underneath
    field 2a, field 2b, field 2 c etc.
    THanks for the help
    CHeers

    The attachment functionality in this forum keeps fluctuating ....if you do not see an add attachmnet button on your post then email it me instead at [email protected]
    Paul

  • How to put Check Boxes and Radio button in Smartforms

    Hi all,
    How to put check Box and radio button in Smartforms ............ from web properties there is an option to use. But How to use.     
    regards,
    Mohsin

    u can declare the checkboxes or radiobuttons whatever in driver program and pass the same to ur form...

  • All my check boxes and selection circles have disappeared. Uninstalled FF and reinstalled deleting all plug-ins, settings, and etc. IE works fine. What's messing with my boxes?

    With recent update, all my check boxes and selection circles have disappeared. I tried to uninstall FF, reinstall, but nothing fixed it. When I run safe-mode, it's fine, but then no youtube or other internet fun stuff. Tried to update plug-ins but still all jacked up. any ideas? also, my side scroll bar screws up too.

    Do you mean Firefox safe mode or Windows Safe mode?
    If it does work in Safe-mode then disable all extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
    * Use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.
    * Close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")
    If you mean Windows Safe-mode then check your security software.

  • GR check  box in Item detail Tab in PO to beset as default .

    hello Gurus ,
    Need a help !!
    How can a GR check box made default selected / deselected  ....
    PO ---> Item details -
    > Delivery  Tab -
    > Goods Receipt check or uncheck ...(should be set as default )
    Any idea pl. let me know ...
    Regards,
    Anamal Kumar
    H`bad

    Hello,
    Goods receipt depends on your material type. E.g. for ROH  GR tick will be there so that you can do good recept for the same.and if there is no material master only description then it will come from account assignment category and item cateogry.
    For blanket PO, item category will be B so Gr tick will be deselected. Since for item category B invetory managment is not possible.
    Check the cutomizing setting for account assignment category and item category.
    Regards,
    Shailesh

  • Check-Boxes and Popup Menus

    Hi, all!
    I'm a relative novice at AppleScript.
    What I'm looking for is a way to put a check box (like in a form) into a dialog box. I'd like to put it under some buttons, or a popup menu, which brings me to my next question:
    How do you add a popup menu to a dialgo box? It wold be in place of buttons.
    I know you can use Interface Builder to do this, but I don't know how to use the Xcode and Interface builder.
    I plan on learning soon, but it's kind of a daunting program…
    Anyway, any help would be much appreciated!
    Thanks in advance!
    -Nate

    AppleScript's *Standard Additions* just provides a few simple general purpose dialogs. For dialogs with other user interface items, you will need to use Xcode or third party tools such as CocoaDialog.

  • How to add a single check box and a label to a image in Muse?

    Hello!
    I need help with adding a check box with a label to the right of it. I know about the forms, and how you can add a check box there but i don't need all the other form options.

    Hi
    It is not possible to use only checkbox from a form at the moment. An alternate way could be inserting it using html, something like below
    <input type="checkbox" name="Muse" value="Muse"> A sample checkbox<br>
    I am not sure what exactly you are trying to achieve, but this will work  with Form tag only, like in the example here
    Tryit Editor v2.5
    Do let me know if you have any question.

  • 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

  • Return Check Box in Item Category

    Dear Friends
    In Item Category Example REN and G2N Return check box is activated what is use and what it affects to sales document.
    Thanking You All
    Arun

    Dear Amitesh,
    Whatever you explained me that I know that so why I am asking this question My question is what it affect to sales document and Item Line of sales document. Without this any problem to system?
    Kindly Understand my need and give me solutions.
    Thanking You for effort
    Arun

  • Captute the check box and display

    hi,
    In a report program se38, with the output I've displayed the check boxes before every line item, I need to keep a check box in the header row and if I check this one all the check boxes of the line items must be checked and I need to capture the particular line items if checked manually and randomly.
    i did not use grid display its a simple display with write statements.
    (in short if the first(header) check box is checked need to check remaining and need to process the check box itmes if checked as above and manually)
    thanks and regards with rewards later on

    Hi,
    Check this sample code...
    DATA: t_lineitem TYPE TABLE OF char1.
    DATA: s_lineitem LIKE LINE OF t_lineitem.
    DATA: v_header,
          v_index TYPE syindex.
    START-OF-SELECTION.
      WRITE: / 'Header check box',  v_header AS CHECKBOX.
      SKIP 2.
      DO 10 TIMES.
        s_lineitem = sy-index.
        WRITE: / 'Line item-', sy-index , s_lineitem AS CHECKBOX.
        APPEND sy-index TO t_lineitem.
      ENDDO.
    AT LINE-SELECTION.
      READ LINE 1 FIELD VALUE v_header.
      DO .
        v_index = sy-index + 2.
        READ LINE v_index FIELD VALUE s_lineitem.
        IF sy-subrc <> 0.
          EXIT.
        ENDIF.
        s_lineitem = v_header.
        MODIFY CURRENT LINE FIELD VALUE s_lineitem.
      ENDDO.
    Thanks
    Naren

Maybe you are looking for

  • How do I use a font I installed?  I installed Belgrad, it's in my font book, but it's not in the menu for pages.

    How do I use a font I installed?  I installed Belgrad, it's in my font book, but it's not in the menu for pages.  I'm using OS X version 10.9.3

  • G4 airport problem.

    I have recently been given an old 533 digital audio G4. Running OS9.2 and with 1.25gig in it. I was then given an airport card, which i know works. I've fitted the airport card but cannot get online. Help!! I'm a bit of a novice!! Do i need to upgrad

  • Load camera photo File on iOS

    I can load a photo from DCIM/Camera on Android no problem.  How do I load it on iOS?  What is the path to the photos taken on by the camera? I tried /var/mobile/Media/DCIM but it didn't work. I have code that takes a photo, then displays the photo in

  • Can I add a wifi profile in profilemanager by script

    We want to add a profile file in profile manager on lion server automaticlly by scriipt or some api interface, not use the profilemanger program setup, which interface can we use to call?

  • AD Groups and VCS Authentication

    I am thinking about setting up my VCS with direct AD authentication for MOVI users.   I have a group in the AD containing all our MOVI users. The problem is I do not see how to restrict authentication to only that group. I do not see a setting on the