Disabling fields on initialization of form 8.2

Hi,
I am new to LiveCycle Designer 8.2 and I am trying to disable fields on initializing a form. If there is already a discussion about this or a how-to could someone point me there. I am having problem finding documentation on this.
Also I am confused on how to embed scripts into xfa doc. The Adobe documentation is confusing to me. Is there another FAQ or how-to for that aswell
Thank you for the help

You can set the initial state of an object in the object palette. Put focus on the object, and under the Object palette their is a value tab. On the Value tab their is a Type dropdown, you can set its initial state there.
Scripts are tied to an object. Again put focus on the object. Open the script editor (Window/Scrip Editor or simply hit Cntrl-Shift F5). It will appear between the toolbars and the drawing palette. Now you are ready to script against the object that has focus. Choose an event (top left) where you want your script to run, choose a language (typically javascript) and leave the Run At parameter as client. All script for that event will be automatically written into the template for you when you save. You can change events and your script will disappear. All that means is that there is no script on th eevent that you are looking at. In the event dropdown, if there is an * beside an event that signifies that there is code on that event.
Hope that helps

Similar Messages

  • Disabling fields on initialization of form

    Hi,
    I am new to LivcCycle Designer and I am trying to disable fields on initializing a form. If there is already a discussion about this or a how-to could someone point me there. I am having problem finding documentation on this.
    Thank you for the help

    all you need is....
    this.access = "protected".
    this is a JavaScript code try using in initialize event of the field that you want to disable.

  • Disable Field for Line Details Form

    How do I trap an event on a Line Details form to disable a field?
    The FormType for all the Line Details forms is 1 so I cannot differentiate one from the other. Also, there does not seem to be a Form Mode for Line Details forms so I cannot differentiate Add mode from Update.
    Any insight is appreciated.
    Thanks.

    Don't think you can disable a field in line detail. You can only disable a column... SDK didn't even allow you to disable a row in a line details-matrix, let alone a field... Let us pray then

  • How to enable a field on the person form?

    Hello,
    I am working in UK Legislation and I need to enable a greyed out field on the person screen. It's the "Disabled" field (to capture the disability of an employee).
    This might sound an easy thing to do but I couldn't find any function or profile option that controls this. I couldn't find any metalink note on this. Could any one tell me how to do this or let me know of any metalink note on this?
    Many Thanks,
    Baloo

    Both answers were helpful. Thanks a lot.
    In the interest of other users I am pasting the answer below:
    The Disability Discrimination Act 1995 (DDA) is the main piece of legislation which makes it unlawful to discriminate against a disabled person in their terms of employment, promotion opportunities, by dismissing them or by subjecting them to any other detriment. This act had been further amended, cumulating in the Disability Discrimination Act 2005 which is related to disability generally and extends outside the area of employment although some provisions will relate to employees.
    Parts of the Act came into force in December 2005, other parts relating for example to transportation are applicable from December 2006. The above provisions replaced the concept of Registered Disabled Persons and
    employment quotas which had been in existence since after the second world war.
    In releasing the enhanced Disabilities functionality, it was intended to facilitate the maintenance of disability records through the Disability form and not the Disabled field on the person form.

  • Enable/disable fields in Workspace form

    Okay here is my scenario. I need to disable some fields on a form depending on which user logs onto workspace to open the same form.
    1. User1 logs onto workspace and opens leave request form, fields at the top of the form are enabled for the user to fill out, bottom fields which are for leave request administrator to fill out are disabled but visible.
    2. User1 fills out top portion of leave request form and completes form. Workflow sends form to leave request administrators "To do" list in Workspace.
    3. Administrator opens up submitted form in Workspace and sees User1's filled out data on the form and the bottom fields are now enabled for administrator to approve or dissaprove. Bottom fields only include two check boxes, two text fields and one date field.
    Now how is this done? I am sure their maybe scripting involved? if so what is it and at what events in the form? Is this whole process done in the form or through Admin UI or Workebench as well? Please help!!!!!!!!!

    Hi Rahat,
    You can use the same form and enable/disable some fields according to the user's role with only little scripting. Review the steps the below:
    1-First place a hidden field ("user_role") in your form
    2-Insert a script object into your form onder "Variables" in object hierarchy and write a script for enabling/disabling the fields (regarding the value of "user_role")
    3-On the initialize and change events of the "user_role" call your script object
    4-On your process design, put a SetValue service before User tasks. In the asssignment you should set the desired user_role to the form, so that the script is triggered in your form and the fields are enabled/desiabled
    Fro further needs on your form or process design you can contact us from: http://www.kgc.com.tr/company_Contact.html
    Oguz
    http://www.kgc.com.tr

  • Disable field on XML Form Builder

    Hi!
    I can disable a field in a XML form . For example, the date of creation and the SAP user, so that the user does not change this information. Thank you very much!

    Hi David,
    Do not use "date of creation" and "SAP user" fields in "Edit" form. You don't need to add this fields to "Edit" page of your xml forms since they are available as Properties.
    In the Project Browser go to
    Expand Properties -> System item and you can see
    "Created By" -> for Sap User and
    "Created" -> for date
    You can use lots of variables here in your RenderListItem and Show views.
    Hope this helps.
    Regards
    Abdul.

  • The Adobe Forms was created with Disable Fields!

    Hi All,
    I am new in Adode Interactive Forms ABAP.  I am trying to implement a simple scenario using Web Services published by RFC on ABAP side and simple form with one field  MATNR to bring a Description MARKT, and button to call the Web Services.  I configured ADS on Server, installed  Adobe LifeCycle 8 and SAP GUI 7.1.  I created the  Adobe Form and it was actived.
    My issue is,  when a run the program  to generate a PDF, using the FMu2019s 'FP_JOB_OPEN'
    , 'FP_FUNCTION_MODULE_NAME', CALL FUNCTION i_funcname, the Adobe Forms was created with disables fields. I canu2019t fill it and canu2019t press the button to call WS on ECC.
    Could you help me?
    Thank you!
    Fábio Ferri
    SAP Consultant Netweaver

    Hi fabio,
    When you say the example ran successfully is it without any error messages..?
    Did you check in spool "SP01" if there something sitting out there.
    To my understanding PDF rendring is dependent in 2 aspects.
    1) the output device type you select (this should be a PDF enabled printer)
    2) Programatically if you say it should go to a printer or spool.
    Just try with FP_TEST_00 either in sfp or SE38 and try both print preview and print.
    in print priview it should display the PDF on the screen.
    In print it should display as success message and in spool it should have the corresponding PDF. if both are working fine then the ADS and output device config are correct and it all depends on how do you handle the PDF output.
    Just try the above approach and post the results,
    Cheers,

  • Disabling Field Disables the Entire Form

    I am trying to disable fields in the 'User Library.xml' form depending on who logs in; unfortunately the code below disables the whole form.
    Any pointers on how to get out of this logjam?
    <Field name='global.login_desc'>
    <Display class='Text'>
    <Property name='title' value='Login Description'/>
    </Display>
    <Disable>
    <eq>
    <block name="loggedinuseraccountid">
    <invoke name='getUser'>
    <rule name='EndUserRuleLibrary:getCallerSession'/>
    </invoke>
    </block>
    <s>Administrator</s>
    </eq>
    </Disable>
    </Field>

    A little javascript should do it.
    function switchForm(form,flag){
      inputs = form.elements;
      for(i=0;i<inputs.length;i++){
        inputs.disabled = flag;
    }No need to go to the server for this one.                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • How do you grey out/disable fields under a radio button if another radio button is selected in Adobe Acrobat XI Pro?

    How do you grey out/disable fields under a radio button if another radio button is selected in Adobe Acrobat XI Pro?
    I’m creating a form where the user has three options to make a payment.
    1. charge to my credit card
    2. charge associated costs to bank account
    3. By cheque or money order
    My Problem is, under each option, there are required fields that has to be filled out. So if the user picks the first option, charge to my credit card, they would fill out the required fields (credit card number, expiration date etc.). But when they click submit button to submit the form, it won’t let them, because there are required fields under the second option. Also, I have the radio buttons for the three options setup so that if the user holds the shift key and clicks a radio button, it unchecks it. So what I'm trying to do is this: If the user selects the radio button for option 1, the other two options are greyed out/disabled. And if the user holds down the shift key and clicks radio button for option one again, it unchecks the radio button and the other two options are available again. Is there a way to grey out or disable the two other payment options when the other one is picked. I’m assuming I will have to use javascript, but what would the coding be and which field do I write it under?
    Thanks in advance guys

    You will have to use custom JavaScript to access the various properties of the field object.
    The radio button group has a value. When no button is selected that value is "Off". When an individual button has been selected the value for the group will be the option or export value for that individual button.
    Once you have determined the button selected, then you will know the form fields that need to be made required. You use JavaScript to access those fields and change the "read only" property to false, and set the "required" property to true. For the fields associated with the other options, those fields should be reset, made read only, and have the "required" property set to false.
    Disabling (graying-out) Form Fields
    >> Also, I have the radio buttons for the three options setup so that if the user holds the shift key and clicks a radio button, it unchecks it.
    Radio button in a PDF do not work that way. Only check boxes can be unchecked by clicking on one that has been checked.
    If you plan the coding for the Mouse UP action to test for all possible options and code for each of those options you should have what you want.
    If you want actual code you need to provide a lot more details.
    It is even possible to perform some credit card and bank routing number validations with JavaScript and some check digit formulas.

  • How to right align a read only numeric field in a panel form layout

    Hi, does anyone know how to right align a read only numeric field in a panel form layout? I am using: Style Class = AFFieldNumberMarker, but it only seems to work if the field is disabled. Disabling the field gives it a difference appearance that does not look right on our forms. These are calculated fields, which cannot be modified, so read only is necessary.
    I have looked online for some answers, and it seems that others are having similar issues.
    I have tried different combinations for the properties, but so far I cannot get it to work.
    Thanks
    Judy
    I am using JDEV 11.1.1.5

    Sorry for the delay in my response. Here is the code
    <af:inputText value="#{bindings.TotalAirlineCostEst.inputValue}"
    label="#{bindings.TotalAirlineCostEst.hints.label}"
    required="#{bindings.TotalAirlineCostEst.hints.mandatory}"
    columns="#{bindings.TotalAirlineCostEst.hints.displayWidth}"
    maximumLength="#{bindings.TotalAirlineCostEst.hints.precision}"
    shortDesc="#{bindings.TotalAirlineCostEst.hints.tooltip}"
    id="it20" readOnly="false"
    disabled="true"
    styleClass="AFFieldNumberMarker">
    <f:validator binding="#{bindings.TotalAirlineCostEst.validator}"/>
    <af:convertNumber groupingUsed="true"
    pattern="#{bindings.TotalAirlineCostEst.format}"
    type="number"
    maxFractionDigits="0"/>
    </af:inputText>
    thank you,
    Judy

  • Why I cannot process a disabled field when using htmldb_item

    I have a report that has this in the select statement
    case when c.sec_lic_status in (1,2,7,505,1002,1004,1005) then
    htmldb_item.text(2,sum( distinct a.fee_variable),8,20)
    else
    htmldb_item.text(2,sum( distinct a.fee_variable),8,20,'disabled')
    end "Quantity 1"
    The above shows correctly. If there are 2 records one field is disable and the other is enabled.
    I have a process that fires on submit - after Computations and Validations. But the records don't changed when updating the enabled one.
    In debugging and writing to a file using the UTL_FILE package, I'm able to pinpoint that the disable fields are the problem.
    Is there a trick on manually processing disabled fields?
    I've found that when I uncheck the show box in the report, I cannot use the fields either. This is not a problem, just another comment.
    My main problem is what do I have to do to manually process a disabled field.
    Thanks for your help, comments, pointers, or anything that could help me or give me ideas.
    juan

    Juan - HTML items with the disabled attribute are not POSTed with the form so your after-submit processes never see them. Try 'readonly="readonly"' instead. Others may be able to suggest how to also give those cells a greyed-out appearance.
    Scott

  • Remove Planned Purchase Order from Type field on Purchase Order form.

    Have requirement to remove Planned Purchase Order from LOV on purchase order form in 11.5.10.2. Tried to disable the Planned Purchase Order document type but Disable field isn't updatable. How can I remove Planned Purchase Order from LOV?

    You can modify list of values in a form with CUSTOM.pll.

  • Disable field highlighting?

    Good Morning,
    Working on a form that will be distributed to a number of users.  The form utilizes a lot of scripts to highlight fields that require attention.  The form works/shows well when the preset "highlight fields" is turned off (currently done manually).
    Is it possible to disable field highlighting using a script or by changing the preferences so that when the document is opened, the form fields are not highlighted?  During testing, the "highlight fields" option is turned on by default on other users machines.  I searched on the Internet and came across the following:
    Layout: Ready event
    app.runtimeHighlight = False
    Can this be used and if so, where would it be entered (hopefully not in every field).
    Thanks

    Thanks for the response.
    Form is created using Adobe Acrobat 9.  I put the code in the page properties of the the first page of the document as an action.  Doesn't seem to work.
    Any other suggestions?

  • Disable save button in adobe forms WD FOR ABAP

    Hi, i have some problem about how to disable button save in interactive forms. Can anybody help me please! I use WD for ABAP
    Another question, how i change security setting of pdf file. I want to disable 2 field of pdf. They are: 'content copying' and 'content copying for accessbility'.
    This is very importance for me, please help me if you can.
    Thanks you.

    Hi,
    In form-ready layout event, you can do that if it is by default to be hidden.
    Save.presence = "hidden";
    if save is the button name.
    Press save button and select the necessary event and choose language as Javascript and then write the above code.Here save is name of the button.

  • How to make fields readonly in Interactive Form based on Roles

    Hello All,
    I want to make few fields readonly and also want to disable few fields from the Interactive form based on the role, logged in by user.
    Looking  for a code Snippet on this issue.
    Need help in this Regard.
    Thanks & regards,
    Debasish

    Is the URL you are trying to call a schema.procedure ?
    If so, you need to grant execute privilege on the procedure to the <portal-schema>_public database user.                                                                                                                                                                                                                                                                                                                               

Maybe you are looking for

  • Loading external fonts in midp apps

    hello every body my question is can i add external fonts to my midp apps? say for example i want to add andulas.ttf font and want my application to show text in to that font? please provide a sample code if you can on how to do that....

  • BPM is supported by which UI components?

    Hi , We are currently using BPMN for Java webdnypro UI. I would like to know whether BPMN can be used for ABAP webdynpro or not. Please share some documents or links on this. Can any one let me know various UI component supported by BPM (Like Java WD

  • I am trying to connect to an HP 4550N printer via ethernet from an iMac with OSX 10.6 but cannot print.

    I am trying to connect to an HP 4550N printer via ethernet from an iMac with OSX 10.6 but cannot print.

  • Static while watching a video

    Everytime i watch a tv show i downloaded from the itunes store there is static. I can see the video but whenever anything is said there is interference. My music works fine its just the video. Does anyone know how to fix this because it really *****

  • Moving iPod material onto the hard drive

    I have been saving all my music on an external drive which is now corrupted. How do I get the material from my iPod onto the hard drive of my computer instead? Thanks Niles Chicago