IC Webclient - making a field required

On the BupaSearch View, I want to make some other fields required before you can successfully create an account.  Right now Country is the only one.  Country does not use the tag REQUIRED = "TRUE".  Even if I do used this tag, it really doesn't have any affect except to put an * or outline the box in red.  So I was trying to copy the logic that the field country uses, but I have no idea where this is done.  I've been searching and I need your help.  Does anyone know?
Thanks.

Hi Cathy,
You can try to have a method R-Getter (required) as follows -
METHOD get_r_brand .
  IF get_brand( attribute_path = '' ) IS INITIAL.
    rv_required = 'TRUE'.
  ELSE.
    rv_required = 'FALSE'.
  ENDIF.
ENDMETHOD.
And in the view:
        <crmic:label design   = "label"
                     required = "<%= ApplianceData->get_r_brand( ) %>"
                     for      = "//ApplianceData/Brand" />
But this code will also add a star against the label and the star will go off only after some value is input to the field.
See if it is still helpful.
Regards,
Abhishek !

Similar Messages

  • What else must I do to force data entry other than making the field required in LC 9 Forms Designer?

    I am trying to make sure that fields are populated with data prior to moving to the next field, but it seems that simply making the field required is not sufficient.  What else must I do to enforce data entry within required fileds?
    Thank you,

    There are a variety of scripting techniques that can be used based upon the form requirements, UI aesthetics, designer preference,... The script below forces data entry into a text field object called 'tf1' but it is a dangerous practice and should be used carefully. You may find yourself in a infinite loop based upon the tab order. A safer pattern includes global field validation upon submit.
    // form1.page1.subform1.tf1::exit - (JavaScript, client)
    if (this.isNull) {
      xfa.host.messageBox("tf1 is a mandatory field.","Text Field 1 Error",0);
      xfa.host.setFocus("form1.page1.subform1.tf1");
    Steve

  • Forms Personalization - Making a field required

    Does anyone know how to use Forms Personalization to make a field required?

    I haven't been able to get this to work. I'm trying to change the Returns form in Receiving to force the user to enter a reason code when they do a return. When does the WHEN-VALIDATE-RECORD event occur? Is it when you press SAVE? I've set it up to give the user an error message when the reason_code field is null, but it's not working. It allows me to save with a null reason_code.
    Thanks for your help.

  • Making a Field 'required'

    How do I make certain fields in my schema panel a 'required' input. I have the xmp documentation that discusses this but am unable to figure out how the implement this.
    thanks
    graham

    The code below works after an opportunity record is saved for the first time. If a new record is created, the code does not work
    We want to make the competitor product name field required if the competitor field is set to 'Acme'. If the competitor field is not 'Acme', then let it pass validation.
    This code is in the field validation area of the Competitor field and the Post Default box is checked
    ('<IndexedPick3>'= 'Acme' AND [<plC2_My_Position_ITAG>] IS NOT NULL) OR ('<IndexedPick3>' <> 'Acme')
    Any ideas why it would work only if the record has been saved?

  • Making hidden fields required...

    I am currently building an interactive form on Acrobat Pro 10 and have a field hidden until a specific radio button is selected.  I need hidden field required when visible, but if I make it required, it is required when it is hidden as well.  I am only slightly familiar with javascript, is that the only way to do it?

    Yes, JS is the only way to do it. If you're already using a script to
    show/hide the field, you can also use the same script to make the field
    required (or not).

  • XD01 - Making Dunning field required

    I know that I can add code to EXIT_SAPMF02D_001 for this, but is there an easier way to make the dunning procedure field on XD01 a required field? Thanks

    You can do this via SPRO. Here is the path:
    Financial Accounting>Account Rec and Payables>Customer Accounts>Master Data>Preparation for creating Customer Master Data-->Define Account Groups with Screen Layouts (Customers).
    Select the Account Group and Click details button. In the Field Status section, select Company Code Data and hit the Edit Field Status button. Double Click Correspondence. You would find Dunning Data there as an option with various radio button. Click the Req. Entry radi button to make it mandatory. Save and test.
    Hope this helps!

  • OAF Personalization-Making a field Required.

    I have a custom OAF page which has a Message text input field and is currently is a required field, Using personalization i wanted to make this a optional filed. But when i select that personalization properties, i dont see the option "required" and its values.
    Layout structure: Message Component Layout->Message Layout->Default single column-> Message Text Input field.
    Thanks
    Vishnu

    Vishnu
    Read only property is not controlled through personalization.What you need to do is extend the controller of the page and in the processRequest of the page use following code.
    public void processRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processRequest(pageContext,webBean);
    OAMessageTextInputBean mtb = (OAMessageTextInputBean)webBean.findChildRecursive("Bean ID");
    mtb.setRequired("no");
    }Thanks
    AJ

  • Short Dump while making a fields as required in BDT object screens

    Hi,
    I'm making a field as "required" by checking the required button on that field in the BDT screen.
    But am getting a short dump when I'm trying to use that screen.
    It seems like some data is getting converted to bad format due to this (am not fully sure about it.)
    Any idea on this.
    Thanks & Regards,
    Vipul.

    Hi Pinaki,
    The entire functionality is working absolutely perfect if I dont check that field as "Required" .
    I'm not sure if I'm missing some customising or is it a problem with BDT.
    Thanks & Regards,
    Vipul.

  • Making the comments field Required in the Workitem

    Hello,
    I have a GP Application wherein the initiator fills out a form which goes to the Approver using Visual Approval Callable Object.........now when the approver opens the workitem he sees the information entered by the initiator and a comments field at the bottom......we want to make this field required for them.......how can we achieve this.....while creation of the Visual Approval Callable Object i see the comments as a output parameter with the 'Is Required' checkbox option....but it is disabled and does not allow you to select it......Please help...
    Any help would be highly appreciated...
    Regards,
    Anil

    Hi Anil,
    Standard Visual Approval CO doesnt work like that.
    Either you can create your own CO.
    OR
    i can suggest you as follows, but it is making little complicated process.
    1. Create one Action with Business Logic callable object, which will check for Comment EQ space or not and have 2 different states.
    a. If Comments is blank, Go back to Approval Action
    b. If Comments is entered, Proceed for further actions.
    2. Set this action as target for Approval Action.
    Hope this helps you.
    Thanks,
    Tejaswini

  • Making fields required based on other field input

    I am creating a form in adobe acrobat pro that employees need to fill in to show the clients they have worked for in a week. The form has 10 lines for them to fill in the date, client name, address etc for 10 clients. I want to make the client name and address fields required only if the date has been filled in in the first column. I can't make every row required fields as they may not have 10 clients that they have worked for. I have a send button set up so that all required fields are completed before the form can be sent. Can someone help me with the script I would need. I have worked out how to make the fields required if a check box is ticked but can't find any scripting for fields to be required if text has been entered in a specific field.

    You can use the custom validation script of the date fields. Let's say you
    want to make Name1 and Address1 required if Date1 is not empty.
    Use this code to do it:
    this.getField("Name1").required = event.value!="";
    this.getField("Address1").required = event.value!="";

  • Making "Business Place" field Required in MIRO

    Dear fellow SAPers,
    Can anyone please tell me how to maintain the status of  "Business Place" field in MIRO as Required? The client wants to ensure that this field is populated everytime MIRO is done, irrespective of the user.
    Please Help,
    Thanks,
    Amit Bharti

    Hi,
    To make the business place field required for MIRO, you can write the validation as below:-
    Step 1:-
    Create a message ID via transaction code SE91 for message class /EACC/MSG/ACC_COMP.
    Step 2:-
    Go to transaction GGB0 and create the validation step at line item level in Financial Accounting as below:-
    Pre Requisits:-
          BKPF-TCODE = 'MIRO' AND BSEG-BLART = 'K'.
    Check:-
          BSEG-BUPLA = ' '.
    Message:-
         Message created in step 1 as error message.
    Step 3:-
    Please also check that this validation has active status (Status=1) at line item level for your company code in transaction OB28.
    Regards,
    Gaurav

  • Making a Text Field Required if User Checks box

    Hi,
    I am currently using Adobe Designer 7.0, and am trying to make a text field required if a user clicks on a check box above the text field.
    I have the following code for the check box (on Change) but it doesn't appear to be working!! Any suggestions??
    Thanks!
    if (this.rawValue == 1 ){
    TextField7.value = "User Entered - Required";
    else {
    TextField7.value = "User Entered - Optional";

    Hi Krisitan,
    you are trying to change the value of the field instead of it's accessability.
    Try this:
    if (this.rawValue == 1 ){
    TextField7.mandatory = "error";
    else {
    TextField7.mandatory = "disabled";

  • Making a form field required when another field is selected

    I have a contact form with the usual fields required (name, address, city, etc.). I'm adding a Country pull-down list to the form, which will default to the US being selected. Since a "State" field is not relevant for anyone filling out the form from another country, I'd like to make the State field required only if the country selected is United States, and not required for any other country. Is there a way to do this?
    Thanks,
    R-Co

    What you need is to be able to create a required textfield when the first textfield shows USA and destroy the required field when another country is selected.
    The following may help to understand create and destroy
    <!DOCTYPE html>
    <html>
    <head>
    <meta charset="utf-8">
    <title>Deleting and rebuilding validations</title>
    <link href="http://labs.adobe.com/technologies/spry/widgets/textfieldvalidation/SpryValidationTextFiel d.css" rel="stylesheet">
    </head>
    <body>
    <form id="form1" method="post" action="#">
      <p>
        <input type="radio" name="radio" id="Married" value="Married" onclick="val(this);">
        <label for="Married">Married</label>
      </p>
      <p>
        <input type="radio" name="radio" id="Defacto" value="Defacto" onclick="val(this);">
        <label for="Defacto">Defacto</label>
      </p>
      <p>
        <input type="radio" name="radio" id="Single" value="Single" onclick="val(this);">
        <label for="radio">Single</label>
      </p>
      <hr>
      <span id="sprytextfield1">
        <label for="f_married">Married</label>
        <input name="married" id="f_married" type="text" value="">
        <span class="textfieldRequiredMsg">A value is required.</span>
      </span>
      <span id="sprytextfield2">
        <label for="f_defacto">Defacto</label>
        <input name="defacto" id="f_defacto" type="text" value="">
        <span class="textfieldRequiredMsg">A value is required.</span>
      </span>
      <span id="sprytextfield3">
        <label for="f_single">Single</label>
        <input name="single" id="f_single" type="text" value="">
        <span class="textfieldRequiredMsg">A value is required.</span>
      </span>
      <hr>
      <input type="submit" value="Submit" />
    </form>
    <script src="http://labs.adobe.com/technologies/spry/includes_minified/SpryValidationTextField.js"></script>
    <script>
    var sprytextfield1,
            sprytextfield2,
            sprytextfield3;
    // build validations and delete / destroy them
    function val(e){
        // get the value
        value = e.value;
        // see what radion button we have
        if(value == "Married"){
            // if there inst a validaton build one
            if(!sprytextfield1){
                sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1");
            // if there is a validaiton in sprytextfield destory it, and clear the variable
            if(sprytextfield2 && sprytextfield2.destroy){
                sprytextfield2.resetClasses();
                sprytextfield2.destroy();
                sprytextfield2 = null;
            // same as the rest
            if(sprytextfield3 && sprytextfield3.destroy){
                sprytextfield3.resetClasses();
                sprytextfield3.destroy();
                sprytextfield3 = null;
        } else if(value == 'Defacto'){
            if(!sprytextfield2){
                sprytextfield2 = new Spry.Widget.ValidationTextField("sprytextfield2");
            if(sprytextfield1 && sprytextfield1.destroy){
                sprytextfield1.resetClasses();
                sprytextfield1.destroy();
                sprytextfield1 = null;
            if(sprytextfield3 && sprytextfield3.destroy){
                sprytextfield3.resetClasses();
                sprytextfield3.destroy();
                sprytextfield3 = null;
        } else if(value == 'Single'){
            if(!sprytextfield3){
                sprytextfield3 = new Spry.Widget.ValidationTextField("sprytextfield3");
            if(sprytextfield1 && sprytextfield1.destroy){
                sprytextfield1.resetClasses();
                sprytextfield1.destroy();
                sprytextfield1 = null;
            if(sprytextfield2 && sprytextfield2.destroy){
                sprytextfield2.resetClasses();
                sprytextfield2.destroy();
                sprytextfield2 = null;
        // proceed with the rest as normal
        return true;
    </script>
    </body>
    </html>

  • Unique problem with validation/ making field required

    I have searched the forums trying to find a way to make a field required based on the users selection of a check box, or something else. So far, everything says use nullTest = "error".
    I have tried to do this and get the following results: The red highlighting, which shows up around my other required fields, will not show up unless you click in the text box and then out of it. Weird! Then, when pressing the submit button, it will not actually give you an error message if there is nothing in that text box, as it will if there is nothing in the fields that I originally make required.
    Any thoughts, or fixes would be greatly appreciated.
    Thanks in advance for any help.

    We do the same thing here. We haven't had any issues with the submit not validating the field correctly though. Our only issue was the red highlighting. To get around this, we would call resetdata on the field. resetData clears out the value of the field so you need to store it off and then reset it.
    if (form1.BP1.ChangeActivities.Pos1.Department==1) then $.validate.nullTest = "error" else $.validate.nullTest = "disabled"
    endif
    $=$
    var x = $
    xfa.host.resetData("form1.BP1.ChangeParticulars.Pos1To.DeptNo")
    $ = x

  • How to make metadata fields required when creating folders

    Hello all....
    Related issue with SR 3-6472229431 and SR 3-6471130611.
    We're using DIS 11.1.6 64-bits (2011_11_29 (rev 9756) 11.1.6.97) in a Windows 7 64-bits workstation (with UCM 11.1.1.5 in a Linux machine). The check-in of images to UCM goes fine.
    I'm trying to make some metadata fields required when creating a folder. These fields are required when making a check-in, but not when creating folders.
    Folders_g is enabled. DesktopTag too.
    EDIT: Patch: 14695303 - WCC 11.1.1.5.0 BUNDLE ( MLR 16 ) NOV 6 2012 applied.
    Is it possible?
    Thanks for all.
    Edited by: fgomes on 22/11/2012 03:24

    After reading your response and rereading the original question a bit closer, the metadata prompting feature does not apply to creating new folders, only content.
    Again, though, I think the focus here is in the wrong place. The metadata applied to a folder is intended to be ultimately applied to the content. You can build global rules that fire on submission of content to check if a field has a value, and throw an error if the value is empty.
    If you expect users to create folders (and actually apply any metadata to the actual folder itself), you will be disappointed. Experience shows that users are not interested in that level of detail when creating content, let alone folders. Letting typical users create folders is a bad idea anyway, as they tend to create the same inefficient folder structures they previously created in file shares within Content Server.
    If you need to tightly control folder attributes, you'll be better served by locking down the ability to create new folders. Otherwise you're looking at some type of customization. Keep in mind that you won't be able to customize the right click behavior of DIS. Any changes to DIS would have to be an enhancement request.

Maybe you are looking for