Making checkboxes mandatory on SUBMIT.

Hi,
How do I make a checkbox group mandatory , based on the selection of some checkboxes, in a previous section.
Eg:
If the user selects a checkbox, then the selection of some checkboxes in the  following checkbox group in the subsequent section has to be mandatory.
How do I do that.
Regards,
Gautam

Yes if your application is stateless then u have to use the code..
Even in your case, you can use the code as follows:
<b>Layout:</b>
<% data: v_checkbox_id type string,
      sy_tabix type string.
Loop at itab_map into wa_map.
sy_tabix  = SY-TABIX.
concatenate v_checkbox_id 'CHK' sy_tabix into v_checkbox_id.%>
<td>
<htmlb:checkbox id = "<%= v_checkbox_id %>"
checked = "<%= wa_map-field1 %>" />
</td>
<% ENDLOOP.
%>
<b>In Oninputprocessing:</b>
DATA: GT_TIHTTPNVP TYPE TIHTTPNVP.
data: v_checkbox_id type string,
         wa_formfields      TYPE ihttpnvp,
      sy_tabix type string.
REFRESH GT_TIHTTPNVP.
CALL METHOD REQUEST->GET_FORM_FIELDS
  CHANGING
    FIELDS = GT_TIHTTPNVP.
Loop at itab_map into wa_map.
sy_tabix  = SY-TABIX.
concatenate v_checkbox_id 'chk' sy_tabix into v_checkbox_id.
      READ TABLE GT_TIHTTPNVP INTO wa_formfields WITH KEY name = v_checkbox_id.
      wa_map-field1 = wa_formfields-value.
   append wa_map to itab_map.
endloop.
This will solve the problem..
<i>* Reward each useful answer</i>
Raja T

Similar Messages

  • Making field mandatory in ME21N

    Hi All,
    I need to make the Purch.Requisition field mandatory in the Purch.Order in ME21N.
    it should be mandatory only for one specific company code and DOCtype.
    ( like, mandatory only for CompCode 3000 and doctype NB ).
    the field name is MEPO1211-BANFN.
    Should i be using some screen exit or BADI for this purcpose.
    Thanks.

    Making PR mandatory based on Doc Type can be achieved via SPRO. The path is
    SPRO>Materials Management>Purchasing>Purchase Order>Define Screen Layout at Document Level. Create a new field selection based on your exisiting field selection or modify your exisiting one. It depends on your requirement. Click on Reference data, item You would find PR and some radio buttons. Click the one for Reqd Entry. Save.
    Once this is saved, go to SPRO>Materials Management>Purchasing>Purchase Order> Define Document Type. Enter the updated field selection from above in the document type row for which this change needs to be activated.
    Hope this helps!
    Thanks!

  • How to make a checkbox mandatory

    Hello,
    I created  a checkbox where I want the user to check that they have read and acknowledged a privacy statement.
    I am curious how I make the checkbox mandatory, as I dont see an option in the Object Pallete.
    Thanks in advance!
    Nik

    Write the following line code on initialize event of the CheckBox to make it mandatory.
    this.mandatory = 'error'
    Nith

  • Effects of making PR mandatory while creating PO?

    Hi,
    What will be the effect of making PR mandatory while creating PO?

    Dear Ujjwal
    Go to SPRO-Material Managamant-Purchasing--Authorization Managmant-2) Define Functional Auth for buyers---Function Authorizations: Purchase Order Create New function Authority(02- PO With Ref to PR) Mark Ref to Purchase Req.As per require condition.
    Then Go to SU01 pass your SAP ID then goto select parameter and pass Parameter ID as EFB ,Parameter Value 02(as per your confi, and save.)

  • Use CheckBox to make Submit Button visible

    I am making a form with LifeCycle Designer and want a check box that says basically "I accept these terms". Users have to check it before submitting. I thought perhaps I could make the submit button invisible and code the check box with something like
    if (this.getField("MyCheckBox").value; == 1)
    {EmailSubmitButton1.presence = "visible"};
    but I'm not sure of the script or where to place it to get it to work. Any ideas?
    Thanks,
    Karen

    View the following images for some help...
    1) http://img225.imageshack.us/my.php?image=designer1bg0.jpg
    You need to expand the code portion of the interface if you haven't already done so, by clicking on the arrow (part circled in red) shown in the image.
    2) http://img219.imageshack.us/my.php?image=designer2wb0.jpg
    When you have your object highlighted (in my example I dragged a button on, you should choose the checkbox on your form) choose "change" from the event dropdown.
    3) http://img225.imageshack.us/my.php?image=designer3ik6.jpg
    Enter your code in the provided space, make sure your language is set to JavaScript and not FormCalc (dropdown circled in red).

  • Check for text in a text field and make checkbox mandatory

    I have a text field where if the user has entered a value, then the checkbox that follows must be mandatory. I have this script that works (sort of), but I'm not sure which event to use to get the results I want. I want the message and the checkbox to be mandatory only if something is typed in the field.
    Here's the script:
    if ((this.rawValue != "null") || (this.rawValue != ""))
         CheckBox3.mandatory = "error";
         app.alert("Please indicate that you have reviewed the similar profile and approve it");    
    else if ((this.rawValue == "null") || (this.rawValue == ""))
         CheckBox3.mandatory = "disabled";
    Thanks,
    MDawn

    That worked. Thank you. I have another problem now. If the user deletes the information typed in the text field, the message box still displays and the checkbox is still outlined in red indicating it's required and it shouldn't be.
    Thanks,
    MDawn

  • Making fields mandatory

    Hi Gurus,
                  I want to make fields mandatory such as doc. header text , reference in F-02 for all doc. types . So that I can get reports using these fields. Can anybody tell me how can I do (making these fields mandatory) by using SPRO.
    Thanks

    Hi,
    if the fields are available in the field status group assigned to account master data you can make it mandatory by setting it as a "required entry". Caution: every acc. number using this field status group has this field as a mandatroy entry, maybe you have to define add. fiels status groups for only a few accounts where this required entry is necessary.
    In Customizing it can be found by searching for "field status variants" which contains all the "filed status groups". The variants are assigned to each company code.
    BR Christian
    Edited by: Christian Ortner on Jan 22, 2010 1:37 PM

  • Remember htmldb_item.checkbox selection after submit

    i have a report that includes a checkbox column. i wish to submit the page(and return to same page) and at the same time remember the selections made by the user. is this possible?

    is it not possible to treat the htmldb_item like this
    No. See Re: Problem: cannot reference value of APEX_APPLICATION.G_Fxx
    The arrays created by calls to htmldb_item are only to capture user-input for subsequent accept processing. You use the values during accept processing and when the page is re-displayed, unless you have the values stored in the database/collection and refer to them using the appropriate parameters to the htmldb_item API, the form elements (checkbox) will be blank.

  • Checkbox values dont submit when loaded from .fdf file

    Hello,
         I have created a form using LiveCycle.  The form is part of a web application that allows users to edit and save forms using .fdf data.  The user gets a .fdf file which grabs its template from my web server.  The fdf fills in the saved data fine, but when they submit, checkbox values are not sent correctly.  If the user manually unchecks and checks the box, the data is sent, but if they dont change it at all, leaving the box checked, the value is not submitted.  The form submits using an http submit button pointed to my server.   Everything comes over correctly, except the checkboxes.
    Any help would be greatly appreciated.

    Do you have the PDF and FDF posted anywhere that we could look at? I've used a /F tag pointing to an HTTP location many times ... it does work.

  • Making UDF Mandatory

    Hello Experts,
    I want to make this UDF mandatory in my item master data. I was referring to: Making UDF's Mandatory .. I tried the code given there and it works!
    However, I also want to make another UDF mandatory in the Business Partner Master Data. I used the same code but it didn't work:
    IF @transaction_type = 'A' AND @object_type = '4'
    BEGIN
    If exists (SELECT T0.CardCode FROM OCRD T0 where T0.U_Telno is null and T0.CardCode=@list_of_cols_val_tab_del)
    begin
    SET @error = 10
    SET @error_message = N'Please Fill In Telephone Number'
    end
    END
    Where did I go wrong? Thanks in advance!

    After reading through some forums on SP, I went on to change the Object Type to 2 and redo the UDF and it works fine now.

  • A/R invoice (making udf mandatory)

    Hi All Experts,
           I am trying  to make some UDF mandatory in A/R Invoice as object_type '13'  and transaction_type  'A' and 'U'.The problem is it not at all working and this invoice is sent for financial approval ,i am trying this  which is wrong query as
    IF @transaction_type = 'A' AND @object_type = '13'
    BEGIN   
    if exists (Select T0.cardcode from oinv T0 where T0.U_Region is null and T0.DocEntry=@list_of_cols_val_tab_del)
         begin
              SET @error = 10
              SET @error_message = N'Enter Region'
         end
    END
    Can any one guide me with right query in repect to the approval  process.
    Regards,
    Inder

    Hi!
    Try this
    IF @transaction_type = 'A' AND @object_type = '13'
    BEGIN   
    if exists (Select T0.docentry from oinv T0 where (T0.U_Region is null or T0.U_Region = '') and T0.DocEntry=@list_of_cols_val_tab_del)
         begin
              SET @error = 10
              SET @error_message = N'Enter Region'
         end
    END

  • Making RFQ mandatory for creation of purchase order

    Hi,
    I need to set up the following:
    1. For specific purchase order document types, RFQ should be mandatory i.e. it should not be possible to create purchase order before RFQ is created.
    2. Purchase orders can be created only if RFQ is approved.  How can i set up the release strategy in RFQ?
    Thanks in anticipation of your reply.

    Hello Sameet,
    1. You can use default parameter EVO to make the RFQ manadatory for purchase order. In the parameter you need to flag mark "reference to reference document " indiactor on Fast processing tab and assign this parameter to the user profile.
    2. For setting up RFQ approval process, please follow the steps:
    You must perform the following steps:
    1.  Create characteristics and classes
            For more on this topic, see Edit Characteristics and Edit Classes.
    Note
    If you wish to link your release procedure to workflow, you must perform steps 2 and 3. You make these settings in Customizing for Business Workflow (Basis -> Business Management).
    Otherwise, continue with step 4.
    2.  Define organizational plan
            For more on this topic, see Edit Organizational Plan.
    3.  Assign standard tasks and activate event-receiver linkage.
            For more on this topic, see Perform Task- Specific Customizing.
    4.  Set up release procedure for RFQs
        a)  Create release group
        b)  Create release code
        c)  Create release indicator
        d)  Create release strategy
    Hope this helps
    Regards
    Arif Mansuri

  • Making checkbox selections/options visible on the request details and email notification details -FIM 2010 R2

    How do I make the checkbox selections made by users in FIM RCDC visible on the email notifications and on the request details on the request in the portal?
    Phina

    Congrats to Wim on a great article!
     Forefront Identity Manager Technical Guru - October 2014  
    Wim Beck
    Event Driven Scheduling of Forefront Identity Manager (FIM) using a Windows Service
    Ed Price: "Fantastic job on formatting, the code, and all the explanations! The TOC and References are a nice touch!"
    PG: "Nice innovative solution, that is a nice add-on to existing solutions. " 
    Ed Price, Azure & Power BI Customer Program Manager (Blog,
    Small Basic,
    Wiki Ninjas,
    Wiki)
    Answer an interesting question?
    Create a wiki article about it!

  • Making Checkbox complete a function? HELP

    First and foremost, forgive me if I do not explain this in technically correct fashion. I have enough knowledge to understand, but not enough to be dangerous. In other words, I probably have no clue what I am talking about!
    I am working with Adobe Xi Pro. I have a form that I have four fields. 1. CostVehicle 2. Trade 3. Rebate 4. TaxValue
    I have discovered how to calculate the TaxValue box to where CostVehicle-Trade-Rebate will give me the Taxable Value
    However, I want to add a checkbox behind the Taxable Value. The scenario I would like to happen is as follows:
    If the check box is selected noting an AOD (act of donation) then the TaxValue field will either equal 0.00 or state AOD but when the checkbox is NOT checked then I would like my calculation to remain the same from CostVehicle-Trade-Rebate
    Is this possible? I have done some searching and feel like a javascript would be what I need to write to make this function to happen. However, again I am not sure whether to javascript or not to javascript?!
    Any information would help!
    Many thanks,
    Angela
    Message was edited by: aboseman

    Hello David,
    You can definitely achieve this using F4IF_INT_TABLE_VALUE_REQUEST & you have to pass MULTIPLE_CHOICE = 'X'.
    This will allow the user to select multiple values from the hit list.
    TABLES spfli.
    SELECT-OPTIONS: s_carrid FOR spfli-carrid NO INTERVALS.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_carrid-low.
      TYPES: BEGIN OF ty_line,
               carrid   TYPE spfli-carrid,
               carrname TYPE scarr-carrname,
             END OF ty_line.
      DATA: it_list TYPE STANDARD TABLE OF ty_line,
            w_return_tab TYPE DDSHRETVAL,
            i_return_tab TYPE STANDARD TABLE OF DDSHRETVAL,
            v_repid TYPE sy-repid,
            v_dynnr TYPE sy-dynnr.
      v_repid = sy-repid.
      v_dynnr = sy-dynnr.
      SELECT carrid carrname
                  FROM scarr
                  INTO TABLE it_list.
      IF sy-subrc = 0.
        CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
          EXPORTING
            retfield        = 'CARRID'
            dynpprog        = v_repid
            dynpnr          = v_dynnr
            dynprofield     = 'S_CARRID-LOW'
            value_org       = 'S'
            multiple_choice = 'X'
          TABLES
            value_tab       = it_list
            return_tab      = i_return_tab
          EXCEPTIONS
            parameter_error = 1
            no_values_found = 2
            OTHERS          = 3.
        IF sy-subrc = 0.
          s_carrid-sign = 'I'.
          s_carrid-option = 'EQ'.
          LOOP AT i_return_tab INTO w_return_tab.
            s_carrid-low = w_return_tab-FIELDVAL.
            APPEND s_carrid.
          ENDLOOP.
        ENDIF.
      ENDIF.
    BR,
    Suhas
    Edited by: Suhas Saha on Mar 9, 2010 11:04 PM

  • Making Classification Mandatory

    Dear all,
    I've created a class with characteristics for my vendor master. How can I make this classification assignment mandatory upon vendor master creation via XK01, MK01 and FK01? So that users would have to assign a vendor to a class thus entering the mandatory characteristics.
    Please assist.
    Thanks!

    used user exit.
    asation.
    write code vaild
    user exit SAPMF02K
    sample code
    IF I_MSEG-SOBKZ = 'E' AND I_MSEG-KZBWS IS INITIAL.
    MESSAGE E002(ZSD01).
    ENDIF.

Maybe you are looking for