Use AcroJS in LiveCycle Designer

Hi all,
This is my first post and i am totally new to creating pdf forms.
I am using LiveCycle Designer 7.1 to create forms. I want to embed lot of javascript in the form. As per my understanding i need to use AcroJS. But it does not work as it is in the LiveCycle Designer 7.1. I got one doc (Converting Acrobat® JavaScript for Use in
LiveCycle Designer Forms) which tells necessary changes one has to make to acroJS to use in LiveCycle Designer.
Problem is most of the features of acroJS are not available in the LiveCycle Designer. What should i do ? Is there any other tool using which i create forms and embed the Javascript in the form. Or i have to use LiveCycle Designer to create forms. Please advice. Thanks in advance
Ramdas.

[email protected] wrote:
> Hi all,
> This is my first post and i am totally new to creating pdf forms.
> I am using LiveCycle Designer 7.1 to create forms. I want to embed lot of javascript in the form. As per my understanding i need to use AcroJS. But it does not work as it is in the LiveCycle Designer 7.1. I got one doc (Converting Acrobat® JavaScript for Use in
> LiveCycle Designer Forms) which tells necessary changes one has to make to acroJS to use in LiveCycle Designer.
> Problem is most of the features of acroJS are not available in the LiveCycle Designer. What should i do ? Is there any other tool using which i create forms and embed the Javascript in the form. Or i have to use LiveCycle Designer to create forms. Please advice. Thanks in advance
>
> Ramdas.
Ramdas,
You can actually use Acrobat Javascript within a designer form. The
key to being able to do this is accessing the 'document' object. You
can do this with:
var myDoc = event.target;
The 'myDoc' variable will be the Document object within the Acrobat
Javascript model.
One other recommendation...you'll get more responses to your
Designer/Javascript questions in the Designer forum rather than this
one. This forum is for the LiveCycle Forms, which is an enterprise
server product (although the name is somewhat confusing).
Justin Klei
Cardinal Solutions Group
www.cardinalsolutions.com

Similar Messages

  • Problem in calling webservice using https from livecycle designer

    I  want to call a webservice written in .net(c#) using https  from livecycle  designer.I can call webservice using http ,but when i try with https it is  failing.If there any special configuration have to do in server for this ?I have  already put crossdomain in server.
    Waiting  for your reply
    thank's

    How did you call from LC? Please help me out either one is fine to me http or https
    Srujan

  • Can Xpath be used in LiveCycle Designer ES?

    Is it possible to use xpath in LiveCycle Designer ES?
    Thanks.

    Hi Capiono,
    If you are trying to use XPaths in the PDF there is a an applyXPath method available in the Acrobat API, documented in js_api_reference.pdf which is part of the Acrobat X SDK available at http://www.adobe.com/devnet/acrobat/sdk/eula.html or in the Acrobat 8 version directly at http://wwwimages.adobe.com/www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/js_api_r eference.pdf#page=728
    So if my form had some xml like;
    <formData>
        <requestId name="RequestId">1263678</requestId>
    </formData>
    The following will display 1263678 on the console;
    console.println(XMLData.applyXPath($data, '//*[@name = "RequestId"]').item(0).value);
    That is the value of the first element with a name attribute of RequestId.
    I’ve never got this method to work with namespaces and the context is not what I would expect, in this example the root should be $data, but it is still possible to pick up elements from the XFA template.  This is one reason why the XPath expressions I used ended up being more complicated than they could have been, like the one above.
    So I stick with SOM expression, but for simple relative XPaths you can use the following to convert to a SOM;
    // Attempt to turn a relative XPath into a relative SOM expression
    // e.g. ../../clientId/text()  becomes  parent.parent.clientId
    function xpathToSom(xpath)
        xpath = stripNamespacePrefixes(xpath);
        xpath = xpath.replace(/\.\.\//g, "parent.");
        xpath = xpath.replace(/\/text\(\)/, "");
        xpath = xpath.replace(/\//g, ".");
        return xpath;
    // Strip all namespace prefixes from an xpath expression
    // e.g. /default:collections/default:collection/@reportingPeriod
    //       will become
    //  /collections/collection/@reportingPeriod
    function stripNamespacePrefixes(xpath)
        return xpath.replace(/\/\w*?:/g, "/");
    This is far from a general routine but maybe somewhere to start.
    Bruce

  • AJAX - Livecycle designer 8

    I need examples about using AJAX with Livecycle designer 8.
    I tried to use this code and it's wrong.
    strName="Microsoft.XMLHTTP";
    objXmlHttp=new ActiveXObject(strName);

    My code is .....
    var objXML;
    var xmlHttp
    var funcCambEstado;
    function munici_Obtener(str){
    var sPagina='http://intraiktd02/ikt/Ejemplo2/consultaDatos.asp?THCod=' + str;
    envInf('POST',sPagina, false,trataXML);
    function trataXML(objXMLHTTP){
    objXML=objXMLHTTP.responseXML;
    function envInf(vMet,vURL,vAsync,vFuncCamb)
    funcCambEstado=vFuncCamb;
    xmlHttp=GetXmlHttpObject(stateChanged);
    xmlHttp.open(vMet, vURL , vAsync);
    xmlHttp.send(null);
    function stateChanged()
    if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
    if (xmlHttp.status == 200) //200: OK
    funcCambEstado(xmlHttp);
    else //Se produjo un error
    xfa.host.messageBox("Error xmlHttp.statusText", "Error");
    function GetXmlHttpObject(handler)
    var objXmlHttp=null
    xfa.host.messageBox("XMLHttpRequest()", " Validaciones");
    var strName="Microsoft.XMLHTTP";
    objXmlHttp=new ActiveXObject(strName);
    xfa.host.messageBox("XMLHttpRequest()", " Validaciones");
    objXmlHttp.onreadystatechange=handler;
    //objXmlHttp=new XMLHttpRequest()
    //xfa.host.messageBox("XMLHttpRequest()", " Validaciones");
    //objXmlHttp.onload=handler
    //objXmlHttp.onerror=handler
    return objXmlHttp;

  • Creating PDF's - Cannot get Arial to work - only getting MyriadPro (Adobe LiveCycle Designer 8.2 + Adobe Output ES Server on Linux (SUSE10))

    Hi
    I am using Adobe LiveCycle Designer 8.2 + Adobe Output ES Server on Linux (SUSE10) to create PDF's from input XML.
    I have had some trouble getting Arial fonts which are used in my LiveCycle Designer created XDP's to be produced in the resulting PDF using the java API or the Process Flow (watched folder) in Output ES.  I have put Arial TTF fonts into both the Server Fonts and Customer Fonts folders and the Arial font still seems to be coming out as MyriadPro in the final PDF.
    Is there something I am doing wrong ?
    Regards
    Robert.

    Hello Jackson,
    We got this working by adding the below fonts to the server-fonts directory on the jvm which you specify in the LCM when you configure the livecycle and bounced the jvm and thing to note down here is that we added our Windows system fonts which are "ttf" files and our jvm is on linux. You can give a shot and see if this works at your end also.
    Fonts added:
    ARIALN.TTF
    ARIALNI.TTF
    ARIALNB.TTF
    ARIALNBI.TTF
    ariali.ttf
    arialbi.ttf
    arialbd.ttf
    arial.ttf
    Thanks-
    Karthik.

  • Is it too much to ask that a Mac user can just OPEN and USE a PDF form created by LiveCycle Designer PC software?!?

    My problem is just that- I have created all my forms using LiveCycle Designer because it is easier to make the forms accessible to individuals with disabilities.  Apparently it doesn't make Mac users have access to the forms.  I've received complaints from Mac users that cannot complete or submit the forms that I created.  I'm not asking how to recreate using another software, I know how to do that.  I'm asking is there a work around to allow a Mac user to open a PDF form or even XML (bedded within an HTML page) on a Mac computer WITHOUT having to use bootcamp, parallels, etc. and be able to complete the form and submit, print or email it?????  I've exhausted all my knowledge on this thus far and I'm hoping to find something that will help.  So far all forums talk about how Mac users need to have a PC side to their computer.  Isn't there another way?
    I've attached an example form that we are no longer using (though still created exactly the same as the others)
    Thanks!

    Hi, as far as I can infer, that term means it's not loading any resources until needed, opposite of this...
    -bind_at_load
                     Sets a bit in the mach header of the resulting binary which tells dyld to bind all symbols                when the binary is loaded, rather than lazily.
    https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/ man1/ld.1.html
    Load resources lazily.
    You should never load a resource file until it is actually needed. Prefetching resource files may seem like a way to save time, but this practice actually slows down your app right away. In addition, if you end up not using the resource, loading it wastes memory for no good purpose.
    http://developer.apple.com/library/ios/#documentation/iphone/conceptual/iphoneos programmingguide/PerformanceTuning/PerformanceTuning.html
    And, higher OS versionsare even worse with Bonjour/mDNSResponder, but might see this...
    http://support.apple.com/kb/ht3789

  • Editing Form Fields inside Acrobat? (after using LiveCycle Designer)

    Adobe Acrobat 9 Pro Extended ==  Acrobat
    LiveCycle Designer ES 8.2 == LiveCycle Designer
    =========================================
    Say I downloaded a new PDF from the interwebs.
    I want to add some forms fields so I go to Forms ==> Add or Edit Fields... (inside Acrobat)
    Now Acrobat will detect possible places where to add the form fields. I make changes etc. Then I am  satisfied with my form fields.
    Now say I want to remove a particular object from the PDF, lets take an image as an example.
    So I fire up  LiveCycle Designer; File ==> New ==> Import a PDF document ==>  Create an Interactive Form with a Flowable Layout.
    I remove that pesky little object.
    In LiveCycle Designer, I save the file as PDF.
    I open up Acrobat. I realize I need to make some more changes to some of the Form  Fields.
    But now instead of "Add or Edit Fields..." option I get "Edit Form in  Designer..."
    I hate the GUI of LiveCycle Designer --- I had rather edit the form  fields from inside Acrobat, as it is easy and fast to change multiple  form fields in a few clicks.

    Thank you Niall for the above response; Your response gave me an idea which allowed me to remove that line by zooming in to 200%
    You know Acrobat detects Form Fields for you.
    But many times it makes mistakes, for example in the screenshot below it made the boxes that came with the PDF as text fields instead of check boxes.
    The thing is rather than me delete the (form) fields it detected, and start over by making new check boxes, I will not be able to place my new check box in exact locations as Acrobat has done.
    When I imported the fields that Acrobat made into LC (by saving the PDF in Acrobat and then opening it with LC) I get option to change the Object Type from Text Field to Check Box when I right click the object.
    Is there a similar way to change the Object Type from Text Field to Check Box inside Acrobat? Any suggestions?
    ===========
    I would really like to do it inside Acrobat because then if I have to make some minor changes to some field properties, all my hard work which I did by filling the fields gets deleted, as I am forced to use LC. The text I add to the fields don't get deleted when I edit the field properties inside Acrobat. I don't know why LC decides to delete all the text which is filled out in the form fields even though the PDF is saved in Acrobat before being imported into LC?
    Here is the above PDF file with the text boxes:
    http://www.mediafire.com/?lnn32jm5am5
    Again thanks for all your guidance so far.

  • How can I use a script in a Livecycle Designer form, to force display of text in Title Case?

    Hello,
    I am a 'novice' who is DIY'ing the construction of a dynamic pdf form, using Adobe Livecycle Designer 7 (I know, it's a VERY old version!)
    [So, any help that comes along must be 'for Idiots'!]
    I need to construct a code (Java script?) so that a few of my text-fields DISPLAY data in Title Case - IRRESPECTIVE of how the user types in the data.
    So, for example, in a "Address" text-field...
    If someone types in ..
    "205 sherborne avenue"
    - OR -
    "205 Sherborne avenue"
    - OR -
    "205 SHERBORNE AVENUE"...
    I need the data to be DISPLAYED ESSENTIALLY as...
    "205 Sherborne Avenue".
    I found the following code online, and tried it in the 'exit' event of the field I need to modify (with 'language' selected as JavaScript)...
    <   this.rawValue = this.rawValue.replace(/\b([a-z])/g, function (_, initial) {return initial.toUpperCase();});   >
    ... This did convert all the 'initial' letters of the words to Upper Case - AS LONG AS they were not ALL typed in Upper Case!
    So, that code worked for the first two of my samples for Sherborne Avenue above - but it did NOT work for the last one...
    That is, "205 SHERBORNE AVENUE" did NOT get converted to Title Case - which is what I need help with.
    Thanks in advance...

    Hey TundraSteve,
    Thanks a tonne!
    Works perfectly!!!
    In fact, your solution is so elegant and direct, that even I am beginning to get a sense of how it works... I have looked at LOTS of similar codes in the past few days, but was not at all getting a sense of how they are working! But comparing your solution with the earlier one I mentioned, I am beginning to get a sense of things!
    Any suggestions for what I should read-up in order to understand this king of coding?
    I have basically been using the built-in 'Help' - and, trial-and-error - and I have designed my first form - a pretty elaborate one, actually!
    So, it would be great if you could guide me through the 'learning curve' a bit!
    [I have figured-out the 'basics' - that is, I can lay out the form, use 'if-expressions' (FormCalc), trigger events, even build Subforms that are hidden but 'appear' when triggered by other actions, and so on. What I can't figure out are the various 'code languages' (syntax?) that are being used - like " var sometext", for eg.!]
    Cheers, and thanks again!

  • Can i use Response method in livecycle designer to render or open pdf doc?

    Hello,
    Can anybody please tell me is it possible to use response method available in the adobe livecycle designer which takes the input value to open the pdf doc.
    Case 1: if we send adobe form throgh mail as pdf doc,then at the receiver side if the user open the pdf doc a popup should come asking for the input value.This popup will be from the response method.
    Case 2:if we save the adobe form as pdf doc on to our desktop and then if we try to open the pdf doc a popup should come asking for input value.
    Is it possible to do ?
    If yes then in which event of livecycle designer we should write that response method and in what way?
    If no,is there any other way to do this?
    Thanks in advance,
    Menaka

    Yes i have tried in other events of livecycle designer.
    In Formready event -> if i do preview pdf,first it will display form and then it ll ask for password.But with this event only if i save the pdf to my local desktop and try to open it ll not ask for password anywhere.
    In Layoutready event ->Pdf preview in designer is working fine,but when i save it my local desktop and try to open it ll not ask for passward.
    Could anybody tell me how to do it.
    Menaka.

  • I have downloaded a trail version of adobe acrobat pro and when I try to use it, it says that it cannot be edited in acrobat, please use adobe livecycle designer to edit this form. I can't work out what I need to do?

    I have downloaded a trail version of adobe acrobat pro and when I try to use it, it says that it cannot be edited in acrobat, please use adobe livecycle designer to edit this form. I can't work out what I need to do?

    Acrobat XI is not distributed with Designer. Designer is now a separate product. You can create forms in Acrobat as an AcroForm or using Forms Central (an online forms program). You can print the form to a new PDF and then recreate the fields in Acrobat using the recognize form fields. You will likely have to fix the form fields, but that would be the process. Generally, once a form is taken to Designer, you can't bring it back without such steps.
    Designer is available with AA8 - AAX, but since is a separate product as I indicated.

  • Updating Tag Name using Adobe Professional for PDF form created with Tags in Adobe Livecycl Designer

    I have created a form using Adobe Livecycle Designer. These PDF forms have Tags on them when created and generted from Adobe livecycle designer.
    I am able to open the PDF form in the Adobe Profesional 9.0.
    I want to edit / Update the Tags on the PDF form using Adobe Professional 9.0. I am not seeing any option to view the Tags on the forms so that I can edit it while I have open the PDF in the Adobe Professional. The PDF document was created in Adobe Livecycle Designer 9.0
    Please let me know how can I edit the Tags on a PDF form using Adobe Professional for a Form that was created using Adobe livecycle and tags added.
    Thanks,
    Siva.

    Edit the tags in Adobe Livecycle Designer.

  • I have adobe xi pro, but i can´t edit a form create with adobe 8.0, the message is this form can´t be edit with adobe, use adobe livecycle designer. need I to buy another program?

    I have adobe xi pro, but i can´t edit a form created with adobe 8.0. The message is: this form can´t be edit with adobe, use adobe livecycle designer. need I to buy another program?

    If the form was created using LCD then it can only be edited there. This
    application used to be bundled with Acrobat Pro, but that's no longer the
    case. So if you want to edit this file then you need to purchase it, yes.
    On Sat, Apr 4, 2015 at 6:39 PM, monicad4417911 <[email protected]>

  • Hide zeros in a form using LiveCycle Designer ES 8.2

    How do i hide the zeros in calculated fields?
    Some of my fields show the zeros and others do not and i can not figure out why or what the difference is between the fields. They seem to look the same.
    I've found a post where it suggests using the validation tab for the field and add certain code but my validation tab is grayed out. Although, that suggestion may have been for the Acrobat product not LiveCycle Designer ES 8.2.
    Here is a link to the example.pdf of some fields showing zeros and other fields not showing zeros. I don't want any zeros showing incase someone wants to printout the form and fill it in by hand.
    http://www.appleriverstatebank.com/erexample.pdf
    Thanks!
     

    I finally got it working. The display pattern was set to num{$z,zzz,zz9.99} I added, null{}|zero{}| to the beginning and ended up with
    null{}|zero{}|num{$z,zzz,zz9.99} and the zeros went away.  On a side note, once i added null{}|zero{}|, the Allow Empty check box and Allow Zero check box became checked.
    Tanks for nuttin Danny!
    Just kidding, Caddyshack was on the other day...

  • PDF Templates: using forms designed in LiveCycle Designer

    Greetings,
    I’m creating templates using Adobe LiveCycle Designer ES2 and using Adobe Acrobat X. When I upload the PDF templates I’ve created to BI Publisher, I hit a brick wall. The reports spit back *“FormProcessor internal error.”* when I click on View, then click through the "Error: contact an administrator" box. When I choose Export... I get a broken PDF file that doesn't seem to have any content.
    When I go to Layouts and click Map Form Fields for any of these layouts, I end up with a blank-looking screen. It says "Map PDF Form Fields" at the top, but there's just a gray box below it, where you should see the PDF form.
    It should look like this
    http://download.oracle.com/docs/cd/E10383_01/doc/bip.1013/b40017/T421739T423025.htm
    (right by “Adding a Predefined PDF Form as a Template”)
    I'm using BI Publisher 10.1.3.4.0
    Any help is appreciated! The "FormProcessor internal error" is so vague that I'm not sure where to look for help. I can generate reports using RTF templates with no problems. LiveCycle Designer seems perfect for the task at hand, so I'm really hoping I can get this working.
    Thanks,
    Martin

    Greetings,
    I’m creating templates using Adobe LiveCycle Designer ES2 and using Adobe Acrobat X. When I upload the PDF templates I’ve created to BI Publisher, I hit a brick wall. The reports spit back *“FormProcessor internal error.”* when I click on View, then click through the "Error: contact an administrator" box. When I choose Export... I get a broken PDF file that doesn't seem to have any content.
    When I go to Layouts and click Map Form Fields for any of these layouts, I end up with a blank-looking screen. It says "Map PDF Form Fields" at the top, but there's just a gray box below it, where you should see the PDF form.
    It should look like this
    http://download.oracle.com/docs/cd/E10383_01/doc/bip.1013/b40017/T421739T423025.htm
    (right by “Adding a Predefined PDF Form as a Template”)
    I'm using BI Publisher 10.1.3.4.0
    Any help is appreciated! The "FormProcessor internal error" is so vague that I'm not sure where to look for help. I can generate reports using RTF templates with no problems. LiveCycle Designer seems perfect for the task at hand, so I'm really hoping I can get this working.
    Thanks,
    Martin

  • Embed webquery in PDF using Adobe LiveCycle Designer

    Dear BI Gurus,..Pls. help !!!!
    We have  NW2004s with Portal and ADS installed
    Is it currently possible to embed BW objects like query results and Documents into PDF, may  be using Adobe LiveCycle Designer to design a pixel-perfect layout?
    So for e.g. an A4 size PDF would have several query results and may be also a document or a chart , and these objects can be manually arranged in A4 size layout.
    Is there an option to achive this by some kind of webdynpro programming?
    I would give best points to you !!
    Thanks in advance

    Kamakshi,
    First, any extension fields added must be explicitly assigned to appear on the forms. Through Front-end Adaptation, this would be via the "Further Usage" link. Within the SDK, you'd right-click the XBO and select "Enhance Forms" (which would take you to the same screen as you'd end up at in through front-end").
    You must select "Add Field and Edit..." to actually assign it to the Form Template schema.
    Once this step is done, re-download the Form Template, and make sure to reload the Data Connection within LiveCycle. Through there, you should see your fields. You'll likely have to dig for them - they appear at the very end of the child elements.
    Note that, while fields added through the front-end have a long string appended to the end (for example, it would appear as "ExtensionField_1234AISU897234HJA" if added via front-end adaptation), the fields added via the SDK do NOT have the suffix (you'll be looking for an element with JUST the field name, i.e. "ExtensionField")

Maybe you are looking for

  • Read this if you have the Looping Audio issue...

    I was having this problem and it was driving me nuts. It would do it randomly everytime I used iTunes. I searched around the web but could not find anything related to this issue except for these forums. What fixed it for me - Go into your Sound pref

  • MD04 for plant

    Hello, Is there transaction (or report) similar to MD04 that shows available stock for all materials on plant ? By available stock I mean physical stock (MB52) reduced for open quantities on sales orders and deliveries. Thanks, R.J.

  • Abstract Classes VS Interfaces

    What is the use of an abstract class when we have interfaces?As far as i know abstract classes cannot be inherited and yes they do provide you the facility of implementing all or some of the concrete methods defined in them.Can anyone define this con

  • How many PXI Chassis can be connected (Daisy Chain)on MIXI Express.

    How many PXI Chassis can be connected (Daisy Chain)on MIXI Express? Regards Prabhakant Patil

  • When i place disk in cd nothing happens

    When I put iwork disc in nothing happens.  Previous Windows user so not sure to find DVD in system.  Any suggestions?