Populate textFields from dropDown Items  Adobe LiveCycle Designer 8

I have one dropDownList with two Items: "Round Trip Delivery" and "Customer Pick-up", when user select item: "Round Trip Delivery" I need to display in textField1: "Delivery Date" and in textField2: "Pick-up Date"; and when user select item: "Customer Pick-up" from dropDownList I need to display in textField1: "Your Pick-up Date" and in textField2: "Your returning Date".
What will be the JavScript to use?
TIA
Wilson

oops! wasnt paying attention.. but anyway, you should have got the idea now..
if (xfa.event.newText == "Round Trip Delivery")
textField1.rawValue = "Delivery Date";
textField2.rawValue = "Pick-up Date";
else
textField1.rawValue = "Your Pick-up Date";
textField2.rawValue = "Your Returning Date";

Similar Messages

  • Populate a PDF done with Adobe Livecycle Designer

    I have a pdf from an institution and I have been asked to populate it directly with data saved in an excel file. I have found that the pdf was done with adobe livecycle designer and with that program I can see the name of the fields in the form.
    The pdf can be found in:
    https://sedeelectronica.bde.es/f/websede/content/SPA/Form_TRA_clientes.pdf
    I have thought to use a VB macro in the excel file to populate the pdf. I have been searching on Internet but by now, I am only able to read the values of the fields, but I can't change them. I know that the code below doesn't work with XFA Forms, but I have read a lot of documentation and I can't find anything else.
    Here is the code:
    Set gApp = CreateObject("AcroExch.app")
    Set avDoc = CreateObject("AcroExch.AVDoc")
    If avDoc.Open(FileNm, "") Then
       Set pdDoc = avDoc.GetPDDoc()
       Set jso = pdDoc.GetJSObject()
    jso.Getfield("FrmSolicitudTransferenciaEuros[0].FormContent[0].ordena nte[0].datosOrdenanteExterno[0].ordenante[0]").Value  = "new value"
        pdDoc.Save 1, FileNm
        pdDoc.Close
    End If
    avDoc.Close (True)
    Can anybody write an example explaining how to do that with XFA?
    Thank you in advance.

    You might want to instead use an XML schema to map cells in your Excel spreadsheet to fields in your form. Then you would just export the XML data from your spreadsheet and import it into your form to populate the fields.
    That should get you started. Refer to Excel and LiveCycle Designer documentation for further details.
    Kyle

  • Adobe LiveCycle Designer ES 8.2 Dropdown List Fill from a spreadsheet

    I am a new user to Adobe LiveCycle Designer and have created a form which a manager is required to fill out for each of their employees.
    I would like to create a drop-down object which will contain the name of the employees, so the manager can just pick the employee from a dropdown list and then fill out the evaluation.  We have over 1000 employees, so I don't want to type them in one by one.
    Please let me know how to link the list of employees to this form from another source. 
    I can put the list of employee names into an Excel spreadsheet or an Access Database.
    I have tried following information posted in different places in the web, but I must be doing something wrong??
    I would appreciate a step by step guide of instructions to help me accomplish this task.
    Thank you in advance for your assistance.

    Select the Drop Down object and add a sample name thru the object UI. Now view the "XML Source" TAB, it shows xml code similar to the image.
    Now need to prepare all the names from the excell, place all names in one column of excell and copy paste the <text> and </text> nodes to the names(hopefully each column at a time). now need to copy all together and prepare final version to copy notepad (may require some replace all with spaces to format properly) then from notepad only update the above xml source . while going to design view it may pop-up warning message of changed xml, and click yes, now all names should be present in the dropdown. Hope this works.All we are doing here the form design is from "XML Source" tab insted of adding one by one from the object from design view.

  • How to populate Adobe LiveCycle Designer generated  PDF Forms with data from Database in Windows app

    Hi
    I have a PDF template designed in Adobe LiveCycle Designer. This template has form fields which needs to be filled with data programmatically. I am using windows application in C#.Net 2005 in which I want to retrieve data from database and merge this data into PDF form in respective fields.
    How this can be achieved?
    I searched a lot & I found that we can process the XDP file generated from PDF to acheive this. I created the XDP file out of the PDF template created in designer. But I don't know how to merge data from database into that XDP file in respective fields and again convert this XDP file back to PDF programmatically. Can anybody help me ? This is urgent.
    Thanks in advance.
    Sambhaji

    Please ignore the above code.<br />The following one is correct one.<br />using System;<br />using System.Data;<br />using System.Configuration;<br />using System.Web;<br />using System.Web.Security;<br />using System.Web.UI;<br />using System.Web.UI.WebControls;<br />using System.Web.UI.WebControls.WebParts;<br />using System.Web.UI.HtmlControls;<br />using System.Text;<br />public partial class _Default : System.Web.UI.Page <br />{<br />    protected void Page_Load(object sender, EventArgs e)<br />    {<br />        Response.ContentType = "application/vnd.adobe.xdp+xml";<br />        StringBuilder responseString = new StringBuilder();<br />        responseString.Append("<?xml version='1.0' encoding='UTF-8'?>");<br />        responseString.Append("<?xfa generator='AdobeLiveCycleDesigner_V8.0' APIVersion='2.5.6290.0'?>");<br />        responseString.Append("<xdp:xdp xmlns:xdp='http://ns.adobe.com/xdp/'>");<br />        responseString.Append("<xfa:datasets xmlns:xfa='http://www.xfa.org/schema/xfa-data/1.0/'>");<br />        responseString.Append("<xfa:data>");<br /><br />        responseString.Append("<form1>");<br />        responseString.Append("<TextField1>Homer</TextField1>");<br />        responseString.Append("<TextField2>Simpson</TextField2>");<br />        responseString.Append("<field name ='DropDownList1'>");<br />        responseString.Append("<items save='1'>");<br />        responseString.Append("<text>1</text>");<br />        responseString.Append("<text>2</text>");<br />        responseString.Append("<text>3</text>");<br />        responseString.Append("</items>");<br />        responseString.Append("</field>");<br /><br />        responseString.Append("</form1>");<br /><br />        responseString.Append("</xfa:data>");<br />        responseString.Append("</xfa:datasets>");<br />        responseString.Append("<pdf  href='C:\\Test.pdf' xmlns='http://ns.adobe.com/xdp/pdf/' />");<br />        responseString.Append("</xdp:xdp>");<br /><br />        Response.Write(responseString);<br />        Response.Flush();<br />        Response.End();<br />    }<br />}

  • Problem with expanding textfield in Adobe LiveCycle Designer

    I've got an urgent problem with Adobe LiveCycle Designer and I really could use some help. The problem is that I'm trying to get my textfield expandable, but whatever I try, it's not working. What I'm trying to get done is that you can fill in a textfield, and when there is more text than the size of the field, the textfield expands to make the text fit in the field.
    I tried a whole lot of things:
    placing the textfield in a subform
    expand to fit (height)
    allow multiple lines
    allow page breaks
    flowed/positioned
    etc.
    The strange thing is, that no matter what I try to adjust, I can't change anything in the pagination tab. Maybe that is the problem, but I don't know what to do, to change that.
    In the examples of Adobe itself (Purchase Form) is an example of a textfield that sort of behaves as I want it to, BUT the problem is that that textfield in the subform has to be triggered to appear by a button (add comments) and that is what I don't want. I want the textfield to be visible from the beginning. But in that example you CAN see the pagination tab and make changes in it.
    I searched a lot in the Adobe Helpfiles of Designer, and I even bought and read/studied the book 'Creating Dynamic Forms with Adobe LiveCycle Designer', but still I'm not able to get this done.
    Is there anyone who can help me?
    Thanks in advance,
    Sterre

    I am creating my first .pdf with no training. I first converted a word doc of our form into a .pdf. Modified everything and thought I was the "bomb" for figuring it out. Then I tried to use the form and where I had "allowed multiple lines" I realized that it would allow that but not display it or print it except for what was showing.
    In researching for a solution, this site said to use "expand to fit". After much frustration I realized that this feature is only available if you created the form from scratch in adobe.
    I have figured out, somewhat, how to create the form and get the field to move with the text but I need the entire form to adjust to the input. Can't have one specific field expand into the rest of the form.
    I did some more research on this site, and it looks like the solution has something to do with 'subforms'. No idea what to do.
    If anyone knows if there is a way to do this with a converted doc (since I already have that completed) I would GREATLY appreciate it. If it isn't possible, could someone walk me through how to do it or provide a reference for a "barney style" walk through?
    Appreciate ANY assistance you can provide. THANKS! Guess I need to sign up for an Adobe Pro class. BTW I'm working on LiveCyle 8.0

  • Adobe LiveCycle Designer query data from MII 12.0 via Webservice

    Hi folks,
    at the moment I'm "learning" how to create interactive forms with the Adobe LiveCycle Designer. I hope anyone already did something like that too and can help me a bit?!
    Creating forms with XML data in the background etc. is not that problem. Also using little schemas to provide data to a dropdown list - I fand that no trouble. But now I want to request some dynamic data from an external data provider.
    I have a nice book from SAP Press laying next to me that tells me how to create a webservice based on a BAPI in SAP and how that webservice delivers some table data. But before I try to get data out of SAP, I would like to retrieve data by using MII (12.0 at first). I already built a transaction that creates some XML and imported the WSDLGen as a new data connection in Adobe LC Designer. No problem so far. I can execute it and I get some data back. But the XML that comes back is not formatted as table data as expected from Adobe LC so I can't build a table from it. I only receive the first dataset - every value as a single value, not as a table or row.
    So does anyone know how to format the XML result in MII or how to combine it with a schema so that Adobe LC Designer is able to interprete it as table data? In the SAP example in the book the received data from the data connection of the webservice is shown as table data (a litte table icon) and my data from MII is shown as single values...
    Thanks
    Anika
    Edited by: Anika Delzeit on Feb 3, 2010 12:21 PM

    It sounds like you need use the adobe schema in MII so the output of your transaction matches it.
    Regards,
    Jamie

  • Expanding Textfield in Adobe LiveCycle Designer

    I've got an urgent problem with Adobe LiveCycle Designer and I really could use some help. The problem is that I'm trying to get my textfield expandable, but whatever I try, it's not working. What I'm trying to get done is that you can fill in a textfield, and when there is more text than the size of the field, the textfield expands to make the text fit in the field.
    I tried a whole lot of things:
    placing the textfield in a subform
    expand to fit (height)
    allow multiple lines
    allow page breaks
    flowed/positioned
    etc.
    The strange thing is, that no matter what I try to adjust, I can't change anything in the pagination tab. Maybe that is the problem, but I don't know what to do, to change that.
    In the examples of Adobe itself (Purchase Form) is an example of a textfield that sort of behaves as I want it to, BUT the problem is that that textfield in the subform has to be triggered to appear by a button (add comments) and that is what I don't want. I want the textfield to be visible from the beginning. But in that example you CAN see the pagination tab and make changes in it.
    I searched a lot in the Adobe Helpfiles of Designer, and I even bought and read/studied the book 'Creating Dynamic Forms with Adobe LiveCycle Designer', but still I'm not able to get this done.
    Is there anyone who can help me?
    Thanks in advance,
    Sterre

    Excellent directions and help on this subject, Thanks Jared & Gretchen.
    I must be missing something critical >>>
    I have a large employee review document (34 pages) with 23 sections. Each section has a feedback area with expanding text fields, each of the sections is in it's own positioned subform. I have grouped the sections (and subforms) on each page into a flowed subform. The document itself is saved as an Acrobat 7 Dynamic form. My problem...the sections do not Flow. The expanding text boxes work just fine, but they do over-run the sections below.
    I have reviewed the comments above and I can get it to work with a single page document, just not with a large - long document, everything over runs.
    Any ideas? You will be held in very high regard!
    ~dimwit

  • Adobe Livecycle Designer Online, is it possible to remove this  Help Menu Item?

    I would like to remove the "Adobe LiveCycle Designer Online" from the help menu. Can this be done through the registry?

    I would like to remove the "Adobe LiveCycle Designer Online" from the help menu. Can this be done through the registry?

  • Adobe LiveCycle Designer 8.0 exporting data from adobe data set into Excel

    Hello - I am new to this, and have no IS support from my organization, so I am at your mercy.
    I am trying to export the files within my adobe dataset created from Adobe LiveCycle Designer 8.0 into an Excel file. When I do this only 126 files are transferred. There doesn't seem to be any particular cut off or reason. For example last names a-p file entries #1-126, then cuts off at file entry #127 leaving the last half of the alpha q-z. I do have one friend is IS whom on his free time, looked into the program to see if there was a setting or something that only allowed a certain amount of space/files to be exported, but he couldn't find anything. His only thought was that my computer didn't have enough space, but I have 18.9GB of free space on the C:. Any sugesstions and or help is greatly appreciated! Thanks, ALR

    I select all, click the Export Button, and it only gives me the option to save as a CVS Excel type file, sometimes it exports files, other times it wont, when it does, it only does 126 lines in Excel, then won't let me add any more with a second export attempt.

  • How to call Adobe LiveCycle Designer From Developer Studio?

    Hi,
    I am new to webdynpro.I am trying to create an Interactive form from Developer Studio but am not able call Adobe LiveCycle Designer tool.Even though I have installed Adobe LiveCycle ES,the system is prompting a message to install Adobe LiveCycle Designer.
    Please advice.
    Thanks,
    Venkat Ramana.

    Hello,
    You have to install and use the LiveCycle Designer provided by SAP, which you can download from service marketplace.
    Regards,
    Francois

  • Adobe LiveCycle Designer 7

    I am currently learning how to use Adobe LiveCycle Designer 7.0. My employer gave me the file to install a trial version along with pdf files with tutorials explaining how to use it. I am having trouble with the tutorials that involving scripting. Though I copy the script code directly from the pdf and follow the instructions. I have a hard time getting it to work correctly.
    The one that I have had the most problem with is the tutorial entitled "Providing Interactive database lookup from forms."   It can found at this address: http://www.adobe.com/devnet/livecycle/articles/lc_designer_db_lookup_tip.pdf#search=%22%22providing%20interactive%20database%20lookup%22%22 I followed the instructions to create a new data connection from the mdb file provided. There was a script to populate a drop down box that I was able to get to work after changing the syntax a bit. However the script that is on the button to execute the query I couldn't ever get to work.
    Here are the instructions copied directly from the pdf.
    13. Select the Refresh object. In the Script Editor, choose the following:
    • Show: click
    • Language: FormCalc
    • Run At: Client
    14. In the Script editing area, type the following code:
    if (Len(Ltrim(Rtrim(SelectField.rawValue))) > 0) then
    $sourceSet.DataConnection.#command.query.commandType = “text”
    $sourceSet.DataConnection.#command.query.select.nodes.item(0).value = Concat(“Select * from OfficeSupplies Where ID = “, Ltrim(Rtrim(SelectField.rawValue)) ,””)
    //Reopen the Dataconnection
    $sourceSet.DataConnection.open()
    endif
    Whenever I click the button I received the following error:
    http://img169.imageshack.us/img169/7250/errorbr6.png
    Any suggestions on what I might be doing wrong?  Also does anyone know of where I can get good information about how to script these forms to integrate with SAP?  Thank you for your help.

    Hi Jason,
    as you are using the Adobe stand-alone Designer and tutorials, you should direct your questions directly to Adobe (probably on their website) as the samples shipped with the stand-alone product do not necessarily work in the SAP environment.
    For SAP integration, you need to install SAP NetWeaver AS(demo versions, for example, here in SDN on the download site) and use the versions of the Adobe components delivered by SAP. SAP also provides tutorials for the Interactive Forms integration in Web Dynpro.
    Start looking at this topic on the SDN homepage at http://sdn.sap.com/irj/sdn/interactiveforms where you will also find many links.
    You can connect to SAP using the Adobe stand-alone products, too, but given Adobe's development partnership with SAP, this approach doesn't make much sense - and it is, as I stated above, a question for Adobe, not SAP.
    Kind regards,
    Markus Meisl
    SAP NetWeaver Product Management

  • Form design Adobe Livecycle Designer ES 8.1

    Hi,
    I have created a Form in Adobe Livecycle Designer ES 8.1.
    The form contains 6 pages.I want to display the particular page by clicking the button. I have designed those buttons in MasterPage like header.
    I am able to display the particular page. One condition i need to display 1 & 2 page at a time .I am not able display this scenario.
    Please help me.

    form1.#variables[0].controller - (JavaScript, client)
    var im;
    var pageName;
    var currentPageNum;
    var dataStore;
    var logLevel;
    var history;
    * ADOBE SYSTEMS INCORPORATED
    * Copyright 2005 Adobe Systems Incorporated
    * All Rights Reserved
    * NOTICE: Adobe permits you to use, modify, and distribute
    * this file in accordance with the terms of the Adobe license
    * agreement accompanying it. If you have received this file
    * from a source other than Adobe, then your use, modification,
    * or distribution of it requires the prior written permission
    * of Adobe.
    * MVC Model 2 XFA Sample Implementation
    * Created on Feb 22, 2005
    * Author Herve Dupriez
    * Email [email protected]
    * Version 1.0
    * Main Action Controller
    * For the simplicity of this controller, actions are coded within this main function.
    * For more complex frameworks, this function could simply act as a switch to other functions.
    function executeAction( action )
    debugLog("executeAction " + action );
    var pnum = getPageNum(action);
    debugLog("history size " + history.length );
    if ( action == "back" )
    if ( history.length > 1 )
    // Restore previous page
    debugLog("back to page " + history[history.length - 2] );
    im[currentPageNum].removeInstance(0);
    currentPageNum = history[history.length - 2];
    loadPage( currentPageNum );
    im[currentPageNum].addInstance();
    else
    forward(1);
    else if ( action == "first" )
    forward(1);
    else if ( action == "last" )
    forward(9);
    else if ( action == "previous" )
    var prev = currentPageNum-1;
    if ( prev > 0 && prev < pageName.length )
    forward(prev);
    else if ( action == "next" )
    var next = currentPageNum+1;
    if ( next > 0 && next < pageName.length -2 )
    forward(next);
    else if ( pnum == -1 )
    showErrorPage(404, "Page Not Found");
    else
    forward(pnum);
    * Initialization of the controller
    * For debugging purposes increase the logLevel variable below
    function init()
    console.println("init");
    // Init log level
    // 0: error
    // 1: warning
    // 2: info
    // 3: debug
    // 4: trace
    logLevel = 0;
    // Initialize instance managers and page names
    if ( im == null )
    scanPages();
    // Initialize "page number"
    if ( currentPageNum == null )
    currentPageNum = 0;
    var dataNodes = xfa.data.form1.nodes;
    debugLog( xfa.data.form1.saveXML() );
    if ( dataNodes != null )
    var intNumElements = dataNodes.length;
    for(var j=0; j < intNumElements; j++)
    var currentElement = dataNodes.item(j);
    debugLog("listNodes found " + currentElement.name );
    if ( currentElement.name.substr(0,5) == "page_" ) {
    var action = currentElement.name.substr(5) ;
    setCurrentPage( getPageNum( action ) );
    break;
    * Show last page viewed when document was saved
    * or the Welcome Page if document opened for the first time
    if ( currentPageNum == 0 )
    im[currentPageNum].addInstance();
    // Initialize a simple data store
    if ( dataStore == null )
    retrieveDataStore();
    // History
    if ( history == null )
    history = new Array();
    history[0] = currentPageNum;
    debugLog("history[0]= 0");
    executeAction("1");
    * Save page data to the in-memory data store
    function savePage( pageNum )
    debugLog("savePage " + pageNum);
    var pageObj = xfa.resolveNode(pageName[pageNum]);
    if (pageObj != null)
    var sXML = xfa.data.form1.saveXML();
    dataStore[pageNum] = sXML;
    * Load page data from the in-memory data store
    function loadPage( pageNum )
    debugLog("loadPage " + pageNum);
    if ( pageNum > 0 && pageNum < pageName.length )
    if ( dataStore[pageNum] != null && dataStore[pageNum] != "" )
    xfa.data.form1.loadXML( dataStore[pageNum], true, true );
    traceLog( xfa.data.saveXML() );
    debugLog("history[" + history.length + "]=" + pageNum);
    history[history.length] = pageNum;

  • How to assign local variable to global variable dynamically in adobe livecycle designer 7.1

    Hi All,
    i want to assign my textfield value to global variable dynamically.so that where ever i want , i will access my global variable.so it is possible in adobe livecycle designer 7.1. kindly suggest me method.Thanks in advance.
    Thanks & Regards
    Ganesh

    Please remove all adobe livecycle designer versions from your local pc.
    restart your pc to be sure, that all temp data is deleted.
    download the newest ald version from service.sap.com and install it.
    have fun with developing adobe forms with sap transaction sfp.

  • Adobe LiveCycle Designer working with 2 drop down list, one response triggers the other

    I am fairly new to Adobe LiveCycle Designer ES 8.2, but I would like to have a drop down list of managers and another drop down list of employees.
    I would like this set up in such a way where the manager can click on their own name in the manager list and have a drop down list appear which is only populated with their directly reporting employees.  They can then click on the individual employee they are going to report on.
    Then there will be several questions pertaining to the individual direct report, etc. (This part I can do)
    Is this possible?
    If so, please provide detailed instructions for me to try.
    Thank you in advance.

    Put this in the change event of your Manager drop down:
    var myObj={"Manager 1":"Employee A,Employee B,Employee C",
                        "Manager 2":"Employee D,Employee E",
                        "Manager 3":"Employee F,Employee G, Employee H"};
    DropDownList2.setItems(myObj[this.boundItem(xfa.event.newText)]);
    This is assuming the list of items in that dropdown is "Manager 1", "Manager 2", "Manager 3".
    And DropDownList2 is the name of your Employee drop down.
    Kyle

  • Looking for Adobe LiveCycle Designer 8.0

    Hi,
    I need setup for Adobe LiveCycle Designer 8.0 for working with PDF forms in NWDS 7.0 SP18 and NWDS CE 7.1 EhP1.
    I could not find it on Adobe Website. All they have is 9.X and above versions.
    Also, when I tried to download from SAP Marketplace, it says that item is no longer available.
    Please help.
    Thanks and regards,
    Amey

    Hi Markus,
    Thank you for reply.
    I dont have SAP GUI Installation DVD with me. I am a developer who is supporting SAP Web Dynpro Application installed at client side.
    Is there any other way to find this installation?
    And on SAP GUI DVD, can you tell me its location?
    Thanks and regards,
    Amey

Maybe you are looking for

  • Mouse down? filter no funciona correctamente

    Tengo una estructura de eventos, en esta está un filtro de mouse down?, tengo un string control en el panel. Cuando esta activada la propiedad key focus del string control, quiero filtrar todos los click en la vi, el problema es cuando se le da click

  • Using Back Button after Display Report

    Hi, Need an advice, i need to customize the standard BACK button after report had been displayed, trying to use AT USER-COMMAND, but still not avail.. anyone can come with example will help me a lot. Thanks

  • Inserting a timestamp with YYYY-MM-DD HH:MI:SS format

    Hi, I have some software that insert records to a database through an ODBC driver using YYYY-MM-DD HH:MI:SS timestamp format. I was expecting this would automatically be converted back to the local database timestamp format. Each time I try to do thi

  • Ctxhx will not convert Word97 docs with embedded autotext

    Manual execution of ctxhx.exe on Sun w/8.1.6.2 and NT 8.1.6 fails to convert Word97 documents with embedded autotext (autotext that contains autotext). It will start to create the html file but terminates and deletes the html file when it hits the fo

  • Web-service client for legacy web service

    I currently access a legacy server (Lotus Domino 7) via CORBA. I thought a web service (my second) would be faster, but a whole day's research has uncovered only obsolete or trivial examples. The WSDL generated by the server is rpc/encoded so wsimpor