How to make a field as "Required" ?

Hi,
I have two fields: payment method and expiration year, both picklist.
There are 5 values for payment method. Leaving one value say 'card on file'
of payment method i want to make my expiratioin year a required field for any other value selected in payment method.
For this 'card on file' , expiration year should be a normal field. This should happen dynamically . Can this be done through configuration or eScripting is required?
Please help how this is to be done.....
Thanks,
Sara

Hi Axel,
I have tried writing the following code in applet's Applet_ChangeFieldValue method.
if(field == "Payment Method" && value == "Credit Card")
                    var vApp = this.Name();
alert(vApp);
alert(this._applet.docName);
var doc = eval(this._applet.docName);
var file = doc.getElementById("Expire_yr");
file.innerHTML = "<img src="images/icon_req.gif" alt="Code Validated field" border="0" space="0" hspace="0">Expiration Year";
Here, i am just trying to test if for payment method "Credit Card" my Expiration year field is becoming mandatory or not.
In Applet > Control > Expiration Year : for caption string ovverride i have written
“<span id='Expire_yr'>Expiration Year</span>”
in BC (Payments) i haven't checked the "Required" prop of Expiration year field.
In field user property i have created a rec and set the name: Required and Value to IIF([Payment Method] == "Credit Card","Y","N")
Still, not able to achieve the desired result,
Please suggest something about the code..
Thanks,
Saira

Similar Messages

  • How to make a field as required in Page customization

    Hi,
    Please help me as how can i make a field on Master agreement as required Field in Page customizations.
    I am able to hide the same field, but, I am not able to make it as a required field.
    Regars

    Hello Janaki,
    Goto page customization under User Interface in System Setup. Once you are there click the Object Name in the page customization list.
    1) Click Edit -> Click add button and click pencil icon just in front of newly created entry. In the Field ID field give the Field ID value per the UI View from the RG (Resource Guide).
    2) Select Property from the drop down as "Required".
    3) Select Yes radio option under the Value. and click ok and then click save.
    Thats it. It should make your field as required field.
    I hope this helps.
    Regards,
    Jagjeet Singh

  • How to make a field as required fields in Generic extractor

    Hi!
    Can any one please let me know , how can i make a field mandatory in generic extractor. I am creating extractor using function module.
    Thanks
    Y

    Hi,
    You can do this in the FM i guess.When u capture the values from the section screen of the extractor check it that particular field is empty or not if its empty display an error message saying that field is compulsory.
    i.e where u do the filling of  range tables after that do a check for that field if its empty or not.
    Hope this helps.
    Ravi

  • How to make a field required in OAFramework

    How to make a field required in OAFramework at runtime?? Please explain in detail if possible.
    Thanks
    Kumar

    Get the handle of the bean using the following Code
    <BeanType> bean = <BeanType>webBean.findIndexedChildRecursive("<Id of bean>");
    if(bean!=null && <condition>)
    bean.setRequired(true);
    }

  • How to make a field Mandatory in a Table view?

    How to make a field Mandatory in a Table view?
    The requirement is, the user should not be able to append a new Row, unless and untill he enteres the data in the column SOLD-TO. Now how do i acheive making this field madatory. Normally in Edit form view, we can go in customizing and flag Mandatory, for table view we don't have this option.
    Please can anyone of you guide me in this approach?
    Jagadish.G

    Hi Jagadish,
    have a look in this thread, part of the code you can use in eh_insert method or logic to write enable/disable insert button.
    Re: Assignment Block Mandatory
    regards
    Ismail
    Edited by: Ismail Shaik on Oct 21, 2009 11:36 AM

  • How to make a field profit center mandatory in sales order?

    Dear GURUS,
    Please help in getting answer for following question.
    How to make a field profit center mandatory in sales order?
    With Regards
    Sandeep D.

    Hi,
    There are 2 ways to make profit center mandatory
    1.Transaction Variant
    2.Incompletion procedure
    1.Transaction Variant
    Step 1:Goto Tcode shd0 and input transaction as va01 and give name of transaction variant as ( example. zva01 ) and click on create or F5
    Step 2.Then it takes you to sales order screen.Just click on enter untill you see profit center field.
    Step 3.check the box required against profit center.
    Step 4.click on save ( under a package name or as local object ) and exit
    Step 5.Assign transaction variant to your sales order type through tcode v0v8.
    2.Incompletion Procedure
    You can add the field  table-vbap,field- prctr,status-04,check-warning to your existing incompletion procedure Tcode- ova2 assigned to your order type in tcode vov8  and check the box - incomplete messeges for your order type through tcode vov8.
    If incompletion procedure is not assigned to your order type than you have to create a new incompletion procedure and assign it to order type.

  • Can I make certain fields conditionally required?

    I am TOTALLY new to acrobat- just to put that out there first. I am wondering in acrobat (NOT formscentral or indesign) how to make certain fields required based off the answer of the previous required field.
    I.E  first required field- "is this a single application?" if so, do NOT make the next few fields required
    "is this a joint application?" if so, make the next rew fields required.
    Can I get some help with this?
    Thanks!

    What is commonly done is a button is used to initiate the email, using a "Submit a Form" action and specifying the email address of the recipient. The submit will fail if any fields that are marked as required are blank. In your case, you need to set the required property of certain fields conditionally, based on the sate of the form, and this will require a bit of scripting. It's not overly complicated though and you can get some help here.
    The Acrobat help document is a good place to start, though it won't help with JavaScript programming. A good resource is AcrobatUsers.com where there are a number of tutorials and other resources available about forms.
    Be aware that submitting form by email is often less reliable than expected, for many different reasons. A more reliable and secure approach is to set up the form to submit to a web server, but this involves even more expertise as it involves server-side programming and interacting with a PDF form. Emailing may seem sufficient for your needs, but be aware of the alternatives.

  • How to make a field in adobe form noneditable

    how to make a field in adobe form noneditable. like info keys..
    when this form is sent through worflow the receiver shudnt be able make changes to the field value...(I have a form, which has fields prefilled(like pernr employee name) but these fields are in editable able..(i want only some fields to be uneditable not all)
    Edited by: kumar gaurav on Apr 11, 2008 8:04 AM

    Hi,
    You can make fields non-editable at runtime using this code:
    field.access = "readOnly"
    Hope this helps.
    Amit

  • How to make a field mandatory in billing

    How to make a field mandatory in billing document,if m right with the help of incomplition log but how.....
         plz reply the full configuration.

    Hi Mohan,
    We normally create a billing document with reference any other document say Order or delivery.
    so, all the necessary information in the invoice will be taken from preceeding doucments. Thats way in the order level we check for incompletion log. If any important data is missing in the order level then the succeding documents will not be created.
    Thats way in the billing documents all the necessary information will come automatically either from preceeding documents or from master data.
    Still you want to make any field mandatory, you can do these by modifieing Billing documents user exists,you can make which ever the fields are mandatory and to be checked before saving. so when you are going to save the invoice, it will check if these fields are maintained or not.
    Hope this is clear.
    Reward if helpful.
    Thanks,
    Praveen

  • How to make all fields mandatory in sales order T- code VA01 initial screen

    Dear all,
    how to make all fields mandatory in sales order T- code VA01 initial screen itself
    The fields are
    Sales Organization
    Distribution Channel
    Division
    Sales Office
    Sales Group
    Regards,
    Amar Reddy

    Hi,
    You can use Transaction Variant to achieve this functionality.Please go through the following link which helps you in creating the same.
    [Link|http://wiki.sdn.sap.com/wiki/display/Snippets/TransactionVariant-AStepbyStepGuidefor+Creation]
    Regards,
    Phani Prasad

  • How to make warehouse field inactive for all users in all documents autom.

    Hi All,
    Can anyone pls tell me "**how to make warehouse field inactive for all users in all documents without having to do it through form setting** "for each and every user. It should be visible but inactive
    Thanks & Regards,
    Mukesh Agrawal

    Hi,
    As a work around create a warehouse SelectWH and map the mandatory acoounts as a On hold account(in chart of accounts).So there will not be any posting on this account.
    And set this warehouse as default warehouse for all users.
    So without selecting the appropriate warehouse the user can not add the document.
    I think this might resolve you issue.

  • How to make a field un editable in one screen

    Dear Experts,
    I want to know how to make one field as un editable in one screen.I will explain in detail. I want to make "Reconciliation account" field as un editable in XD02 t-code.
    Regards,
    Surendra babu.

    Hi Surendra,
    Use this path in spro:
    Financial Accounting-> A/P&A/R-> CustomerAccounts->MasterData->Preparatons for CreatingCustomerMasterData
    use the transactions & u can update for creation of customer master or hange of customer master.
    Hope this helps you
    Award points if helpful
    chaitanya

  • How to make expandable field in pdf forms?

    Does anyone here know how to make expandable field in a PDF form?
    I want the field, originally appear to be a 1-liner, to expands when you put in more text and everything that is underneath the expandable field shifts or moves down.
    pls help.
    Thanks!

    No, LiveCycle Designer is not included in Creative Cloud and is available only for Windows. It was included with the Windows version of Acrobat Pro before Acrobat 11 but is now a separate program and about $300.

  • How to make a field in selection screen as READ_ONLY !!

    Hi,
       How to make a field in selection screen as READ_ONLY !!.
    Thanks,
    Senthil

    This is the code you need to have in your program.
    AT SELECTION-SCREEN OUTPUT.
    LOOP AT SCREEN.
      IF SCREEN-NAME = 'MYSELFLD'.
        SCREEN-INPUT = 0.
        MODIFY-SCREEN.
      ENDIF.
    ENDLOOP.

  • HOW TO MAKE THE FIELDS ON TABLE CONTROL SCREEN FIXED!!

    Dear all,
    Can you please tell me as to how to make the fields on the table control screen fixed (not respond to the scroll bar) i.e. simillar to MC88 screen , the first two fields are fixed and don't respond to the scroll.
    Please Help!!!!
    Vj

    Hi
    In TC, goto attributes and set 'Fixed columns' as 2. This will fix the first 2 columns.
    Regards
    Navneet

Maybe you are looking for