How to Make a field User Entered - Required by javaScript

Dear all,
How can I make a field User Entered - Required on some conditions e.g. it is required in the following conditions.
1)I have a group of radio buttons of Yes and No.I want if the user select yes then a particular text field should Required otherwise it should optional.
2)In a particular row of a table if user fill the first column then other columns of that row should required otherwise it should optional.
How can I do it?If any body can please help me.
Thanks a bunch in advance
Regards
Rakesh

I have the same problem. I need to change all fields to be not required. Adobe doesn't seem to recognize the change.
var fieldCount = event.target.numFields;
for ( var i = 0; i < fieldCount; i++)
var fieldName = event.target.getNthFieldName(i);
app.alert(fieldName);
var field = event.target.getField(fieldName);
if(field.type != "button")
app.alert(field.required);
field.required.rawValue = false;

Similar Messages

  • How to make a field required

    I'm using Adobe LiveCycle 8.0. I just created my first form. There is a few fields I would like to make required. I already have the TAB order the way I need it to be. Here's what I need to happen: If a user starts filling out the form & does not fill in any information in the client ID field, & they hit the TAb key, I want some kind of error to pop up telling them the client ID field is required. Is this possible? Thanks

    You can put the following JavaScript code into the exit event of the Client ID field:
    if (this.rawValue == '' || this.rawValue == null){
    xfa.host.messageBox("The client ID field is required.");
    Just make sure you have selected JavaScript from the Language drop down and not FormCalc. You can also set the field type as 'User Entered - Required' in the 'Value' tab of the 'Object' Palette and insert a message in the 'Empty Message' box. This will then validate on submitting the form and a red border will appear on that field.

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

  • User Entered - Required and dynamic table

    Hi all,
    I am using LiveCycle Designer 7.1, and I need a little help with scripting. In my form I have a page with three major questions. underneath each questions I have the sentence "If the answer is YES:" and some questions that relate to major question above them. My task is if the user choose YES in the major question all the questions that related to the major should become "User Entered - Required". How can I do That?
    Secondly, In the same form I have a page with dynamic table. The last column of the table is percentage, and I need that column values won't cross the 100%. Please help me
    Thanks in advance
    Idan

    I believe the intent is to warn instead of annoy the user with repeated notices that a required field hasn't been filled (which is why it doesn't fire on subsequent tabbing).
    The Empty Message should be displayed whenever the value of the required field goes from something to nothing (e.g. the value is currently set to "asdf" and you remove the value and tab out) which means that simply tabbing in and out of the required field without changing its value (whether or not it had a value in the first place) wouldn't trigger the Empty Message to be displayed. It should
    always be displayed, however, whenever you attempt to
    submit the form if the required field has no value (and Acrobat won't let you submit the form until all required fields have been filled).
    Stefan
    Adobe Systems

  • 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

  • User Entered - Required not working????

    I'm developing a form (Adobe Acrobat Professional 8/LiveCycle Designer 8 ) in which the customer must fill many of the fields (mix of text and date fields). I'm setting the Object - Value - Type to User Entered - Required for these fields. However, I can tab right through them even when they are blank/null. I don't want the fields to work that way. If I get into the field (tabbing or mouse click) and I've set the field to User Entered - Required, I don't want to be able to get out of the field until I've filled it in.
    I thought this was the way it worked early in my testing, but I had to work a different project for a while. Now that I'm back, it just acts as if the "null checking" has been turned off. Any suggestions as to what I need to do to get this working (again?).
    Also, I have put a message in each of the empty message fields. I'm noticing that I can tab through blank fields :( but if I put data in one of those fields, clear the field and try to tab out, I do get the empty message text I specified.
    Thanks!

    Hi RAM,
         I'll try to answer your questions one by one. Any comments and feedback are welcome.
    1.- I assume that you have created a Model, a Service Controller and binded the data to your view.
    At this point, you need to bind the property datasource of your interactive form to a node in your context hierarchy.
    This data will be available at the form Data View Palette.
    Then you have to edit your form, drag a Drop Down List to the form and in the Fields Tab of the Object Palette you need
    to bind the List Items property. Just click the link and in the "Dynamic Properties" window, choose the table root node for Items, and the Text and Value atributes for Text and value properties respectively.
    After that, in the binding tab, you will have to do the "default binding", and bind the values clicking on "Specify Item Values".
    Edited by: Aldo Velazquez on Nov 29, 2010 4:32 PM

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

  • How to lock the Printer of LaserJet Pro 500 Color MFP m570dw

    how to lock the Printer of LaserJet Pro 500 Color MFP m570dw

  • GL account with line items in line type 'S' document split?

    Hi Experts, We found in PCP0 there are payroll documents which has GL account with with line items in line type 'S' document split. Unlike other line items with line type 'blank' these line items cannot be opened and display the wage type details. Ho

  • Even with restrictions on location services for icloud turn off

    I have been on the forums a b-jillion times looking up this same question. Our phones (hubs and I 4 and 4s) continually turn off the "find my iphone" bit in location services. I have locked it in restrictions after turning it on-passcode locked it. I

  • How to Delete Top Level Folder

    I have a number of files in a hierarchy of folders and I wish to delete the top level folder but leave in place all the sub folders and files contained therein. There are only folders (no files) under the top level folder. Specifically, I do not want

  • Lost images from iphoto

    Hi everyone, I am very new to this!. My photos where not in iPhoto this morning so I went into finder and clicked "all images" I highlighted the photos I wanted to put back in the library and drag them over, but they would not drag, then I copied the