Adobe form hiding fields stopped suddendly

Hi All,
I had made the sub form as flowed and written the below script in docready event in order to move other fields up if it do not have a value.
if(this.rawValue == null) 
this.presence = "hidden"; 
This was working and it is working for the fields which are in the content area. But it suddendly stopped working.
Thanks in advance.

Hi!
There might be a number of reasons for such behavior. First of all, check for the latest versions of Adobe form. If there were recent changes it might be e.g. some other script which is incorrect and your script fails to run. A simple test for scripts is going to "Preview PDF" tab on Format page. If any error popups - check the corresponding script. It's the first point I start from while having script troubles.
If Adobe form wasn't changed, I would still check whether this script runs. If this issue can be reproduced in DEV / TEST systems, you can make any kind of debug printing or popup to be sure that IF-condition is fulfilled. If it's ok, have a closer look at the form elements, if not - check the data coming from the outside.

Similar Messages

  • Adobe Form - Locked field

    Hi All
    Could someone please tell me what are the function 'Lock Text', 'Lock Static Object' and 'Lock Field' under 'Edit' on menu selction bar - used for - (I'm new with Adobe Form) - Thanks

    Hi Liem,
    You can find answers to such questions easily in adobe designer help. I am providing below the answer to your query, Hope it will be helpful:
    Lock text:
    LiveCycle Designer lets you lock text in text objects or in the captions of objects by using the Lock Text command. When you select Lock Text, you must double-click the desired text or caption in order to edit it. This makes it not as easy to modify the text. If Lock Text is not enabled, you click in the caption or text object to start editing the text.
    Lock Text applies to all text and captions on the form design. Using Lock Text is particularly useful if you want to select and move objects but not make any changes to the text. You can single-click the object to select it, but you must double-click the caption or text in order make any changes.
    Lock Static Object:
    LiveCycle Designer lets you lock all static objects on the form design by using the Lock Static Objects command. All static objects in the form design cannot be selected, moved, or modified.
    The Lock Static Text command is useful in situations when you have finished formatting static objects in the form design and want to continue working with other types of objects.
    For example, your form includes a large number of text field objects, as well as text objects that provide instructions on filling the form. You have laid out and formatted all the static text objects and need to apply a different font to the text field objects. You can easily do this by locking the text objects and then using Edit > Select All to select all the text field objects at once and then change the font.
    When text objects are locked, the text inside them is also locked. However, if you want to continue to select and move text objects, but not make any changes to the corresponding text, you can change the behavior of the text to make it not as easy to modify.
    Lock Field:
    LiveCycle Designer lets you lock all field objects on the form design by using the Lock Fields command. All field objects in the form design cannot be selected, moved, or modified.
    The Lock Fields command is useful in situations when you have finished formatting the field objects in the form design and want to continue working with other types of objects.
    For example, your form includes a large number of text field objects and check box objects, as well as text objects that provide instructions on filling the form. You have laid out and formatted all the field objects and need to apply a different font to the text objects. You can easily do this by locking the field objects and then using Edit > Select All to select all the static text objects at once and change the font.
    When field objects are locked, their corresponding captions are also locked. However, if you want to continue to select and move fields, but not make any changes to the caption, you can change the behavior of the caption to make it not as easy to modify.
    Regards,
    Vaibhav Tiwari.

  • Web dynpro + adobe form decimal field round off

    hello all,
    I am now developing an application which is based on the SAP WebDynpro and Adobe form, but the application has an error, if one can help me to resolve the error, I will be very thankful.
    The error is as follows, for a decimal filed on the Adobe form which is binded to a deicmal attribute of Webdynpro, if I get the value of the decimal field using the programming code as "context.nodexx.getAttribute("xx")", the decimal value is rounded off (e.g., 2.4 is changed to 2.0, 2.7 is changed to 3.0).
    for example:In Web Dynpro,  A node name is  "TestNode" which has a  type of decimalattribute named "TestAttr" ,  in  adobe form  a decimal field  bind to the TestAttr . when i input 2.3  in  adobe form,  i  click the button with code:
    this.wdComponentAPI.getMessageManager.reportSuccess(this.wdContext.nodeTestNode.getTestAttr()+"");
    the rusult is  :     2.0
    if  i  input  the  value  2.5   the result  will be  3.0
    Thanks All !

    Hi,
    there is a special display pattern to check for null values:
    null{pattern}
    Example:
    null{'please enter a value'}
    But I don't know if WDJ is really sending a null value. You can combine this with alternatives using '|' to separate alternatives.
    Regards,
    Juergen

  • Adobe Forms Data Fields in Portal

    This question regarding Adobe Forms in Portal 7.
    Can data fields on a form which are not stored in the SAP backend can be saved?  Can this be done in the portal or do we have to save this data in the backend via Z tables or creating additional infotypes?
    We need to have this data to be available if a user would like to redisplay a form at a later date.

    Hi Azim,
    to clarify your query go thru this url
    To use Adobe interactive forms you should install the Adobe Reader Version .... 7. Launch the SAP Enterprise Portal. (. http://<host>:<port>/irj/portal ...
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e98c87ea-0c01-0010-3798-a4f8db2411c5
    if usefull reward me points
    thanks
    karthikeya

  • Adobe form - Text field not getting saved.

    Hi All,
    We created an application in which user will enter the data and submit it . The details entered in the screen will be saved in the Ztable.
    Our problem is when the user enters the data in the TextField UI of the adobe form it is not getting saved in the table. In development its working fine.
    In production for few users it is getting saved and for few users it is not getting saved.
    We are not able to find out the root cause of the problem.
    Any help will be appreciated
    Best Wishes
    Idhaya R

    Hi Idhaya,
    As you said it is working for few users,
    Then you need to check Adobe reader installed for users who are having problem.
    Hope it helps.
    Regards,
    Arun

  • Scripting in Adobe Forms - Hiding a field

    Hi Experts
    I have some code that I just can't get to work - please advise where I am going wrong.
    Looking at the folowing code segment (Javascript, at Client), I am running through a loop of items (PO Text Items). If I take the IF statement out around the statement where I hide the fields, it works well (in other words it hides every line), but I only want to hide lines where the item (ItemTextFromPO) is empty.
    var oFields = xfa.resolveNodes("data.PO_Page.MainSubform.ItemSubForm.POItemText.DATA[*].ItemTextFromPO");
    var nNodesLength = oFields.length;
    for (var nNodeCount = 0; nNodeCount < nNodesLength; nNodeCount++)
         if ( xxxxxxxxxxxx.rawValue == "" )
              oFields.item(nNodeCount).presence = "hidden";
    Please advise what I need to use in the IF statement to make it work?
    Thanks
    Casper

    Hi Chintan
    I know there is no index currently in the if statement - and that is my problem.
    I am getting a table of texts for PO Items passed into a form. Some items may have more than one text item, and some may have none. For those with none, it will still have a dummy entry - i.e. a table entry with nothing next to it. A table might look like this:
    0010     Text for item 10
    0010     More text for item 10
    0020
    0030     Text for item 30.
    So, Item 20 above has no text (an empty text line).
    In the form, I have a repeating subform -  it repeats once for evry item. On this subform, I have an textfield called that can repeat many times, if necessary (like for Item 10 above in this example). In the context of the form, I have a where condition that linke the item texts to the items - in other words the texts appear with the correct items already.
    However, I do not want anything to appear if the field is empty (like for line 20, in this example).
    So, I have written the loop as you saw in my original question. This loop works - if I take the IF statement out, then it hides EVERY line. If I do not use a loop, it only hides the 1st line... so the loop is required.
    I then need to 'ask' each item with the IF statement whether it is empty or not - and if it is, then hide it. So, I just need someone to tell me the correct syntax for the xxxxxxxxxxxxx in my IF statement. This should surely include the index (the counter of the loop) somehow, so that I can access each individual item.
    I have tried many combinations, but none worked - so far.
    Please let me know if I need to explain more.
    Thanks,
    Casper

  • Adobe Form: Signature Field

    Hi folks,
    is anyone out there who knows how to find out whether a pdf form is signed or not? There must be an attribute belonging to the signature field which can be used for that via scripting. Does anybody know how to do that?
    Answers will be highly appreciated!
    Kind regards,
    Alexander
    Moderator message: please have a look in the dedicated forum for "Adobe Interactive Forms".
    Edited by: Thomas Zloch on Feb 7, 2011 2:09 PM

    >Is this a set up problem in Reader or a set up problem in Professional?
    Pro. You need to enable the form for Reader users.

  • Adobe Forms --Amount field Problem

    Hello All,
    I have one clarification.I have one field called amount.Its value is taken as 0.00 from the table. I have to make it as blank.I have made it as blank to that field in display pattern properties by setting as * in adobe designer. This is suitable for print form. In case of interactive form how can this be done to achieve the functionality.If the value is given from the other side to the amount value its not taking since in display pattern it has been set as *.Can anybody help me out in this issue.
    This is very urgent.I will reward you with points.
    Thanks,

    Indrakaran,
    Well you can try this one in initialize event in LiveCycle Designer. Change the language to javascript.:-
    xfa.host.messageBox("Raw Value is : " + DMBTR.rawValue); // This will just give a alert box.
    if(DMBTR.rawValue == "0.00")
       xfa.host.messageBox("Value is 0.00");
       DMBTR.rawValue = "";
    Chintan

  • How to remove the border of an Adobe Form Image Field

    Hello everyone
    I am using Desinger 8.0.
    Form properties: Preview type = Print Form (One-side):
    I am using an "image field" to include a image from the transaction SE78.
    There is always a box arround the image. How can I remove that box?
    I am using the "Image field" because the image will change depending on conditions.
    Here is my setting:
    Object: Field
                       type    = Image Field
                       Sizing  = Scal Image Proportionally
                Binding
                        Default Binding (Open Save Submit) = $record.GRAPHIC
                        (Graphic is defined in the global area in the interface)
    Layout :
                  AnchorX: 171.477mm  AnchoY: 15.111mm
                  width:       78.175mm  Height :   21.777mm
                   Margins: all at 0mm
                   Caption Position: None
    Border:
               Edges: Edit Together
                           None
                Background fill: None
    Based on my understanding, with border edges to none I should not have any border arround the image But I still have it.
    Any suggestions?
    Regards
    stjacqd

    Hello Raju
    Thank you for your reply.
    Unfortunattely the Field tab doesn't have the Appearance in it.
    The field tab contain only the following Items:
    Type : Image Field
    Caption:
    URL
    Embed Image Data
    Sizing: Scale Image Proportionally
    Presence: Visible
    Locale: Default locale
    There is no item named "Appearance".
    I am using AdobeLiveCycle Designer 8.0
    Version 8.01.3250.1.491864
    Regards
    dstj

  • How to change the Field Symbol, so Adobe Forms takes it as a Table?

    Hi guys,
    I created an Field Symbol, in a Interface which I use for Adobe Forms. The type of the Field Symbol is STANDARD TABLE, and this field symbol I fill with data from another program.
    But the problem is that in adobe forms, this Field Symbol is taken as TEXT FIELD and not as Table... and this shows me a Dump because it can't convert Internal Table to type C (the dump is like that).
    What I need, is how to change the Field Symbol, so Adobe Forms takes it as a Table?
    I looked at Adobe Form, and found this:
    The Type Category of the Field Symbol is DICTIONARY TYPE and I think I need to change it to Internal Table as shown in the right picture.
    Does someone have any idea?

    Hello Taly,
    To what i understand your requirement, you need to pass data from Field symbol to internal table in Adobe form.
    You have done it correct partially. I have replicated your scenario and steps are below -
    1) Create a Z structure
    2) Create Z Table Type
    3) Create Adobe Interface with Table & Field Symbol. Also do coding as shown to assign the internal table populated in driver program to filed symbol.
    4) Design Form as -
    5) Code driver as -
    *& Report  ZR_AF_FS_1
    REPORT  zr_af_fs_1.
    DATA: fm_name           TYPE rs38l_fnam,
           fp_docparams      TYPE sfpdocparams,
           fp_outputparams   TYPE sfpoutputparams,
           it_kna1           TYPE ztt_fs_1.
    * Sets the output parameters and opens the spool job
    CALL FUNCTION 'FP_JOB_OPEN'                   "& Form Processing: Call Form
       CHANGING
         ie_outputparams = fp_outputparams
       EXCEPTIONS
         cancel          = 1
         usage_error     = 2
         system_error    = 3
         internal_error  = 4
         OTHERS          = 5.
    IF sy-subrc <> 0.
    *            <error handling>
    ENDIF.
    *&---- Get the name of the generated function module
    CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'           "& Form Processing Generation
       EXPORTING
         i_name     = 'ZAF_FS_1'
       IMPORTING
         e_funcname = fm_name.
    IF sy-subrc <> 0.
    *  <error handling>
    ENDIF.
    *-- Fetch the Data and store it in the Internal Table
    SELECT kunnr name1 name2 adrnr FROM kna1 INTO TABLE it_kna1 UP TO 15 ROWS.
    * Language and country setting (here US as an example)
    fp_docparams-langu   = 'E'.
    fp_docparams-country = 'US'.
    *&--- Call the generated function module
    CALL FUNCTION fm_name
       EXPORTING
         /1bcdwb/docparams        = fp_docparams
          it_data                   = it_kna1
    *    IMPORTING
    *     /1BCDWB/FORMOUTPUT       =
       EXCEPTIONS
         usage_error           = 1
         system_error          = 2
         internal_error           = 3.
    IF sy-subrc <> 0.
    *  <error handling>
    ENDIF.
    *&---- Close the spool job
    CALL FUNCTION 'FP_JOB_CLOSE'
    *    IMPORTING
    *     E_RESULT             =
       EXCEPTIONS
         usage_error           = 1
         system_error          = 2
         internal_error        = 3
         OTHERS               = 4.
    IF sy-subrc <> 0.
    *            <error handling>
    ENDIF.
    6) Output -
    BR.

  • Dynamic display fields in Adobe Form

    Hi all,
    I am trying to design a Adobe non-interactive form.
    But my requirement is If Field = ‘X’ then display table1.
    If Field = ‘’ then do not display table 1 in output of Adobe form.
    Field & table both are coming from SE38 code.
    Please guide me if it is possible or not with a single adobe form.
    Other option I have I can design 2 different form one with table & other with no table.
    Please guide me if it is possible with one Adobe form or not.
    Regards

    Hi Umesh,
    This is possible using single Adobe form only. Pass this field into context.
    And in form, write the script on Form:Ready event of body page:
    if ( $.FIELD eq "X" ) then
          $.Table1.presence  = "hidden"
    endif
    Hope this helps,
    Amit

  • Blank Space problem in Adobe Form

    Hello Gurus,
    In my Adobe form, One field has to be displayed based on a condition. So, for that field, in Context tab, condition is specified and its working also i.e. It condition is true then data is not displayed in the layout but I find the blank space for it. I dont want that blank space to be displayed.
    Example:
    In layout, address is in format as shown below.
    Name
    Street
    City
    Region
    Postal code
    Country
    Here, I have a condition that, Region field should not be displayed only for Material eq '123' i.e. same address has to be printed as shown below.
    Name
    Street
    City
    Postal code
    Country
    But, If I give condition then address is shown as below.
    Name
    Street
    City
    >Here, am getting empty space & I dont need this blank space to there in the layout.
    Postal code
    Country
    So, Can anyone please help me for this.
    Thanks in Advance.
    Regards,
    Usha

    Hi Usha,
    1. Remove the Condition from you Context tab.
    2. In the Driver Program check for the condition and fill the value in the internal table which is passed to
        the adobe form.
    3. Make the subform (under which the field is added in the hierarchy view) as flowed.
    4. In the script editor, Select the 'javascript' and write the script to hide the form field specifying the condition here.
    for e.g
    if (xfa.form.FORM.SUB_FORM.matnr == "123") {
        xfa.form.FORM.SUB_FORM.Region = "hidden";
    NOTE: Javascript is Case sensitive and stops working immediately after the line of code where an error occurs.
    Hope this proves to be useful.
    Thanks,
    Swar.

  • Using formats of SO10 text in Adobe forms

    Hello guys,
    I got a question concerning the interaction of SO10 texts with adobe form text fields.
    I know there are some threads about it here, and I think I understand the default SAP behavior, but can you please confirm if I am right? Then I got a special question about one case.
    So is it right that there is only the difference between formatting the textfield itself in adobe form layout and adding a style to the text field in form context?
    This means:
    (1) Whenever in my text field in form context no style is added, the adobe form will take the formatting like it is done in the adobe form layout? This would mean that every format which is entered in the SO10 text is insignificant for the adobe form?
    (2) Whenever in my text field a style is added, SAP will use SO10 text formats? This means, SAP searches for the smartforms style which is entered in the textfield and uses the formats from SO10 text like they were defined in the smartforms style?
    Is this correct so far?
    Now the special questions:
    (1) What happens if a style is added, but the style does not exist as smartforms style. Which font etc. will be used then?
    (2) What happens if a style is added, but the format of SO10 text does not exist in the smartform style?
    In both cases it looks like SAP takes some "default" style, but where does it come from?
    Thanks a lot!
    Regards
    Michael

    Thanks Rakhi, but that did not resolve my issue. Below is new out as per the thread suggestion and this is not what I wanted.:
    "<H>Thank you for choosing Enterprise.</> We look forward to seeing you at 9:00 am on Monday,
    November 28, 2011. This message is to confirm you have updated your reservation.
    Following are the details for the updated reservation:
    P.S. Remember us when you're renting in town. Enterprise is always nearby at more than 6,500
    neighborhood locations."
    - shalini

  • Adobe form validation with Print button

    Hi All,
    I have an adobe form with field validation (javascript) already set up but I'm trying to add one more feature to the validation.
    Let me explain my initial validation first:  I have 18 required fields with their tooltip name having an '*' at the end.  Any fields not filled in with this tooltip marker will show up on an alert message when the print button is selected.
    There are two fields called IException and Amount that are required but an End User might have additional IExceptions and corresponding Amounts.  Therefore I have created 5 textboxes for each but only the first IException and Amount are absolutely required (and I use a '*' within their tooltip).  Now if an End User has an additional IExceptions ("IException2") and fills out this field, I need to make it mandatory that "Amount2" would also have to be filled in.
    Here is my code: [code]
    function validateFields()
    var flg = 0
    var n = this.numFields
    var fArr = new Array();
    for(var i = 0;i<n;i++)
    var fn = this.getNthFieldName(i);
    var f = this.getField(fn);
    var tt = f.userName
    if(tt.indexOf('*')!=-1 && f.value == f.defaultValue)
    flg++;
    fArr[fArr.length] = tt;
    if(flg>0)
    app.alert('There are '+flg+' fields that require a value\n\n'+ fArr,3)
    var IException2 = document.getElementById('IException2').value;
    var Amount2 = document.getElementById('Amount2').value;
    if ((IException2.length >0) && (Amount2.length == 0))
    app.alert('Amount is missing')
    else
    document.ExceptionForm1.print();
    validateFields();
    [/code]
    Currently when one of the require fields is NOT filled in, i receive my first alert message.  If all required fields are filled in my print button doesn't work.  Also if all required fields are filled in and IException2 is also filled in but Amount2 is not, I don't receive my second Alert message.  So my code works up to the "Var IException2 = document....." and I don't know what the issue is.
    Thank you for your help in advance. 

    One more question,  since I have 4 of these...I'm having trouble getting the button to do exactly what its suppose to based on what's filled in because i think i have my '{ }' messed up and or IF/ELSE statement is wrong...can you please take a look..
    function validateFields()
    var flg = 0
    var n = this.numFields
    var fArr = new Array();
    for(var i = 0;i<n;i++)
    var fn = this.getNthFieldName(i);
    var f = this.getField(fn);
    var tt = f.userName
    if(tt.indexOf('*')!=-1 && f.value == f.defaultValue)
    flg++;
    fArr[fArr.length] = tt;
    if(flg>0)
    app.alert('There are '+flg+' fields that require a value\n\n'+ fArr,3)
    var a = this.getField('IException2').value;
    var b= this.getField('Amount2').value;
    if ((a.length >0) && (b.length == 0))
    app.alert('Since IException 2 is filled in, Amount 2 is also required')
    var c = this.getField('IException3').value;
    var d= this.getField('Amount3').value;
    if ((c.length >0) && (d.length == 0))
    app.alert('Since IException 3 is filled in, Amount 3 is also required')
    var e = this.getField('IException4').value;
    var f= this.getField('Amount4').value;
    if ((e.length >0) && (f.length == 0))
    app.alert('Since IException 4 is filled in, Amount 4 is also required')
    var g = this.getField('IException5').value;
    var h= this.getField('Amount5').value;
    if ((g.length >0) && (h.length == 0))
    app.alert('Since IException 5 is filled in, Amount 5 is also required')
    else
    this.print();
    validateFields();

  • Hiding the some fields in print PDF adobe form

    Hi all
    Im working on travel expense form in webdynpro ABAP.I have a requirement of hiding some field in the  adobe form.Can anyone tell me how to proceed ?
    Thanks and Regards
    Reeha

    Hi Reeha,
    In case you need to use any script you may prefer formCalc script, which is very easy to use. You can use any script out of the two as per your understanding and comfort level.
    If you require more technical information about FormCalc, refer to the Adobe XML Forms Architecture (XFA) Specification, version 2.4, available from:
    [http://partners.adobe.com/public/developer/xml/index_arch.html.]
    and
    [http://help.adobe.com/en_US/livecycle/es/FormCalc.pdf]
    Hope this helps you
    Regards,
    Gaurav Bhardwaj

Maybe you are looking for

  • Forte Web Enterprise question

    Hello all, I'm experiencing a problem passing variables from JavaScript to the Forte backend. I am using the following function in my html document. <DEFANGED_script language="JavaScript"> <!-- function OpenPage(pAccNo,pSrcCode,pExpType) // this is j

  • How to pass wild card '%'  value from the parameter to the query

    Hello everyone, I have following 2 problems 1) I was trying to do some thing like below select * from emp where ename like 'J%' for this i have used the following code select * from emp where ename like :P_ENAME and before running the query in the pa

  • Manipulate Frequency Data

    I'm reading in sound data, getting the FFT and displaying the data - frequency Vs.. Magnitude. I wish to set certain frequency bands to zero. The output data type following the FFT (PS/PSD VI) is a cluster of 3 elements, fo, df and magnitude (1-D arr

  • XI: ESB and BPM facility

    I am getting started to research SAP XI. I need to create a demo project and a presentation for my customer. It is very important for customer to know Does XI support guaranteed delivery of messages?  Is XI message oriented middleware (MOM) or only B

  • My Laptop BSOD 4 times in the last 90 days. Please help!!

    HI, when I am surfing the internet using firefox my computer freezes and BSOD'ed. This doesn't happen often maybe like 4 times in the last 90days with the error. Below is the dump log. What can I do to prevent this from happening again? *