Concatenating into a single text field multiple choices from a dialog window

I present a user with a form which contans a list from where to chose a few items.
I need to take what he puts in there, and convert it into a string to pass it to a query... They click to select, and click to deselect, and I have to show in the underlying form's parameter list the items he has chosen in this form:
joe,frank,rizzo
if he clicks again on rizzo, the list (and he can see it) would show:
joe,frank
Thats the first part. Now, I have to pass three or more of these strings to a library procedure to do 'recheck' or validation, against the same tables, etc,). I don't want to put the loop in the library... but if I have to, I can only bring a single variable text string into it. Which means, I have to move each of the various strings of choices into the variable which goes to the library procedure.
Complex enough?
I have about three days to figure it out.
Summary: 1. Concatenating the choices.
2. sending different values into the library procedure, using the same variable in the library procedure.
Thanks in advance!
Nick
null

Try something like:
// Get field values
var first_name = getField("FirstName").value;
var middle_name = getField("MiddleName").value;
var last_name = getField("LastName").value;
// Build full_name string
var full_name = "Mr. " + last_name + ", " + first_name + middle_name;
// Set this field's value equal to full_name
event.value = full_name;
This is intended to be the custom calculation script fot the "FullName" field.
Refinements might be to have the user specify the title (Mr, Mrs, Dr., etc.) and handle missing values properly, but this should get you started.
If you will be doing much scripting, you should get the Acrobat JavaScript Reference.
George

Similar Messages

  • Load multiple parts of an XML file into one dynamic Text Field

    Hi I am trying to load text from an external XML file into a dynamic text box. I have so far managed to load single parts of the XML file into a dynamic text field. I now want to be able to load different parts of the XML file (something similar to a string with appendText) into the same text Field.
    I have so far managed to achive this using the String and append text properties, but would like to use XML file to do it instead.
    Any tips please?
    Thanks

    In essence you can just do:
    TextField.text = XML.node1 + XML.node2;

  • Search database fields using single text field

    Kindly advise on how to develop a database search page such
    that there is
    single text field to enter serach string and the results are
    shown on the
    same page.
    ALso guide if there is any extension available for achieving
    the above.

    I understand what you say.
    What I am looking for is a wizard or an extension which
    creates the form, as
    well as writes the SQL string and also generates the results
    page
    (preferably on the sarch page itself).
    I am looking for a google like solution where the site
    homepage has one text
    field, and users can search for all the fields of a database
    to give results
    on the same page.
    Please help.
    "malcster2" <[email protected]> wrote in
    message
    news:gg9g8b$lf9$[email protected]..
    > the simplest way of doing it is to have an input box and
    a submit button
    > in a
    > form,
    >
    > when the submit button is pressed, the text in side the
    input box is
    > posted to
    > a variable.
    >
    > the variable is then inserted into a mysql select
    statement, and the
    > results
    > are then echoed to the screen.
    >
    > all of this using php.
    >
    >
    >
    >

  • The form of the single text field

    Friends, hello!
    A month Bucy on the issue of creating online form consisting of a single text field. Adobe Muse does not allow to disable field name and email. This greatly hinders my project.
    I want site visitors to your phone and all, but the manager would call him myself. Why bother visitor?
    Help who knows?

    Hi Jim,
    According to the descption, you are developing a solution using Access and the backend is MS SQL Server 2008 R2.
    And you want to open view a text filed in the Notepad++. It depneds on whether this tool can accept a string parameter.
    If yes, I thinks you can pass the text filed direct to the Notepad++ via the command line. If not, you need to write the text into a temp file and use the Notepad++ to open this temp file.
    Here is a sample that use Shell function to run an applicaiton:
    ' Specifying 1 as the second argument opens the application in
    ' normal size and gives it the focus.
    Dim RetVal
    RetVal = Shell("C:\WINDOWS\CALC.EXE", 1) ' Run Calculator.
    You can get more detail about this function from link below:
    Shell Function
    And if you have problem using Notepad++, I suggest that you get support from the Offcial site.
    Regards & Fei
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Scripting Selective XML into a Single Text Frame? (& Some Other Stuff...)

    Hi all, I could use some help (using version CS5.5).
    I want to import (via Javascript) an XML file similar to this:
    <movieRoot>
         <dvds>
              <movie>
                   <title>2001: A Space Odyssey</title>
                   <edition>Special Edition</edition>
                   <features>NOTHING</features>
                   <notes/>
              </movie>
              <movie>
                   <title>Airplane!</title>
                   <edition />
                   <features>Extra Laughs</features>
                   <notes/>
              </movie>
         </dvds>
    </movieRoot>
    I've been able to successfully do this, so no problem there.
    Then I want to dump the child elements under the XML element "<dvds>" into a single text frame that spans 2 columns per page. That's easy enough too, except:
    1) I want to filter the data so that empty elements or whose contents equal "NOTHING" do not appear.
    2) I want to add static text title above some of the elements that remain (outside the XML proper).
    3) Then I want to format the text (using Paragraph Styles).
    Tall order, I know, but I'm keen on figuring it out. I initially created a document using placeholders and used the standard XML Import to populate it with data, which was filtered using scripts to remove extraneous placeholders and static text. It gave me the result I wanted, but as the XML will be regularly updated and since the "filtered" tags result in non-standard XML entries, it means starting over from scratch after every XML update. So I turned to scripting...
    For point #1, I was able to filter properly using a recursive IF statement, tested here using message alerts:
    I've included a bunch of variables for (hopefully) easier viewing.
    var myXMLRoot = myDocument.xmlElements.item(0);  //movieRoot
    var myXMLParent = myXMLRoot.xmlElements.item(0);  //dvds
    var myXMLElement = myXMLParent.xmlElements.item(0);  //movie
    var currElement = myXMLElement.xmlElements.item(0);  //title
    for (i = 0; i < myXMLParent.xmlElements.length; i++)
        myXMLElement = myXMLParent.xmlElements.item(i);
        for (j = 0; j < myXMLElement.xmlElements.length; j++)
            currElement = myXMLElement.xmlElements.item(j);
            if (currElement.contents != "" && currElement.contents != "NOTHING")
                alert (currElement.markupTag.name + ": " + currElement.contents);
    It worked great until I tried to get it into an existing text frame. Since I want all the info in one text frame, placexml was out of the question, and markup worked but overwrote XML tags -- such as assigning the entire text frame to <movie/title> when I wanted it assigned to <dvds> with <movie/title> tags nested within it.
    If you can help me with anything, this is really where I need pointed in the right direction most. But if you're feeling generous or bored...
    Then for points #2 and #3, I want to take what's left ("filtered" XML data) and add additional text and formatting wherever certain tags are found.
    For example, applying the paragraph style "MovieTitles" for any text within <title></title> XML tags; or adding the phrase "Special Features" (with paragraph style "Headers") above any text marked with <features> tags, while the content within those <features> tags applies the paragraph style "NormalText."
    I've got some of this worked out in pieces already, but it generally falls apart because I can't get the tag structure correct in the text frame. I can provide more info as requested. Any help would be mighty appreciated!
    UPDATE: Surprisingly, I've actually had some good success this evening on solving most of these problems. I'll post my results once I've finished up just in case anyone else can be helped by what I've learned.
    One question remains for the moment: I've inserted text within an XML element, but outside of XML tags (e.g., </title>EDITION:<edition>) using "insertTextAsContent":
    [xmlElementHere].insertTextAsContent("EDITION:", XMLElementPosition.beforeElement); 
    Does anyone know a good way to apply a paragraph style to that text without using a find & replace function later (after placing the XML into a text frame)?

    As posted into the other thread:
    Yes, each record will be in its own frame.
    You can use one of a couple solutions to stitch (link) each frame to the other, delete all but the first page and the first merged record, then resize that first merge frame and reflow the entire document.
    https://forums.adobe.com/thread/1341730?start=0&tstart=0
    Please review this thread. There is a couple posts with a script and you would want the last version of that script. You would have to follow the directions, as well as add a column at the beginning of your data and fill it with consecutive numbers.
    Alternatively, there is a free plug-in by Rohiko for stitching merge data frames together, then follow the process above to reflow the document.
    https://www.rorohiko.com/wordpress/indesign-downloads/textstitch/
    Mike

  • Formatting of text fields when exporting from InDesign to Acrobat Pro

    How does one preserve the formatting  of a text field when exporting from InDesign CS6 to Acrobat Pro? It loses both the font and the alignment formatting in the PDF.

    Use a font that allows embedding/ check the font embedding settings in the PDF output settings.
    Mylenium

  • Placing lines of text beside multiple choice field in form

    I want to place single lines of text beside the multiple choice field in this form (as drawn above) instead of one box of text. Is this possible?

    Post the question in the forum for livecycle designer.

  • How can i redirect 5 choice options from a drop down list into 5 separate text fields?

    I have a number of drop down lists which push one of 5 choices to a text field on another page.
    I want to be able to push each choice from one drop down field to a separate field, so that it is not possible to duplicate the drop down choice.
    The resulting page is going to be locked.
    What script do I need to use to send each of the five choices specifically to five separate text fields?
    Thanks for the insight.

    Hi Paul,
    I've had a look at the sample script you posted. I'm not sure how to make it work with the form I'm creating. (I sent it to you earlier.) Would you mind setting one of the fields up on my form so that I can get an idea of how to then push the choices set up on the "visible on screen only" to the textfields which are locked on the visible page? Do i lock the fields in the same way?
    Will I need to create a new script for each of the arrays I'll be creating? for example, myScript1, myScript2, my Script3....
    Why do i need a reset button?
    Nellie

  • Wrapping Text to a New Line in a Single Text Field.

    I was wondering is it possible to conintue text in the same text field that runs out of space on a line to a new line in the same text field.  If this is possible could someone please advise.
    i.e:
    alot of text and random txt [ text box   
    text ] more txt on the next line.

    You need to check the checkbox "Allow multiple lines" in the Object properties.. You need to check the checkbox "Expand to Fit" for height in the Layout properties of the field.
    When you do this, you need to set the subform that wraps the TextField to Flowed. Otherwise the text will overlap on the fields below.
    Make sure you save the form as Dynamic PDF. Goto File menu -> Form Properties and choose Default tab. And select "Render PDF as"  Dynamic PDF.
    Hope this helps.
    Thanks
    Srini
    Added the image.. Message was edited by: Srini Dhulipalla

  • Database files into a single disk or multiple disk ?

    Hi All,
    I want to install oracle database 11gR2 in to database server. This database server has three internal disk so I plan to put DBF,redo and ctl file in to different disk..
    but this is the optimal configuration by putting all the Database files (DBF,redo and ctl) into a differnt differnt disk or put all the files into a single disk with differnt partition? I want to minimize the disk I/O.
    Thanks in advance.

    Hi;
    It depends what you expect from your system. You can put into a differnt differnt disk or put all the files into a single disk with differnt partition. If you put all in one partition its more managable, but It also bad for HA.
    You need to check your priorty and you need to decide what you have to do
    Regard
    Helios

  • Merging seperate date and time fields into a unique text field.

    I have a dropdown Calendar Date field and a dropdown Time Field in a form and I want to create an additional Text Field that displays the combination of these two fields as a unique form field that would look like this...
    Arrival Date: 1/27/2009 Arrival Time: 11:30 AM
    Record Number: This would be calculated from the two fields as (012720091130)
    Also when you press the submit button the XML file name would be the Record Number (this would be a coded filename to correspond to the time of arrival).
    Any Ideas?

    Creating the Arrival time string should be easy. Its a case of adding a number of strings together. Assuming the date is held ina field called dateField and the time is in a field called timeField the javascript expression woudl look like this:
    TargetField.rawValue = "Arrival Date: " + dateField.rawValue + " Arrival Time: " + timeField.rawValue;
    To get the recordNumber you will have to parse the unwanted chars out of the strings then add the two together just like above.
    The data file name will be the same as the PDF file that it came from. You cannot change the name of it easily without certifying the document (and that brings in its on set of problems).

  • Having issues with populating a Text Field with data from 2 other fields

    I have 3 fields Tools_1a_pri, Tools_1a_pri_other, Tools_1a_pri_txt.
    Tools_1a_pri is a drop down combo with a predefined list. One of the options is "Other".  When "Other" is selected, the text field Tools_1a_pri_other becomes visible for users to enter the name of the other tool.
    The Tools_1a_pri_txt is a text field with a calculation that shows either text stating that no tool has been selected or the Tools_1a_pri & or Tools_1a_pri_other.
    When I select one of the predefined tools, everything works.  When I select other, it appears that nothing has changed.  It requires that I click on another field before it populates.  This is confusing to the user.
    Tools_1a_pri   Validate code
    this.getField("Tools_1a_pri_Other").display = event.value=="Other" ? display.visible : display.hidden;
    Tools_1a_pri_txt  Calculation code
    //if nothing is selected, do the following
    if (getField("Tools_1a_pri").value.length < 2) {
    event.target.textColor = color.red
    event.value = "No primary tool identified";
    }else if (getField("Tools_1a_pri").value != "Other") {
    //otherwise do this if other is selected
    event.target.textColor = color.black
    event.value = getField("Tools_1a_pri").value;
    }else if (getField("Tools_1a_pri").value = "Other") {
    //otherwise do this if other is not selected
    event.target.textColor = color.black
    event.value = getField("Tools_1a_pri").value + " - " + getField("Tools_1a_pri_Other").value;

    You made the classic mistake of using the assignment operator in an if-statement instead of the comparison operator. Change this line:
    } else if (getField("Tools_1a_pri").value = "Other") {
    To this:
    } else if (getField("Tools_1a_pri").value == "Other") {

  • Scan multiple pages from 5520 to windows 8

    I own an HP 5520 all in one. I recently bought a new Dell all in one computer with Windows 8 OS. I am having problems with scanning. I need to be able to scan two or more pages into a single PDF document. The app indicated for SCAN on this new fangled layout of where the apps are (they don't even call it a desktop anymore) opens a and of course all of teh ancillary funbctions of te app are hifdden or disguised somewhere on the page. After an hour of tryig to get the **bleep** thing to scan multiple pages into a single PDF document, I gave up. This sucks. I just want my old set up for the scan feature that allowed me to add as many pages as I wanted to a single PDF document. **bleep**!

    Hi Kevin,
    Well, bleep.   Don't you just hate it when simple stuff turns into rocket science.
    The fact of it is that the Full Feature Software is supposed to provide a shortcut on the Desktop - that Printer Assistant shortcut is supposed to be full of printer utilities, one of which is the "Scan Document or Photo".  Just to make it more interesting, the Printer Assistant is not NAMED the Printer Assistant; it will be named for your printer:  Photosmart 5520 or something. 
    Install Full Feature Software – Photosmart 5520 Series
    Assuming the software installs and that the Full Feature Software that installs provides some version of the program that provides it, the Scan sub-routine does (in those cases) provide the means to scan multiple pages to a single PDF file.
    Failing THAT, there is yet hope -- because one of our Experts found a program that will do the job.
    See:
    Scan_Multiple_Documents-Combine
    I hope this works.
    Click the Kudos Thumbs-Up to say Thank You!
    And...Click Accept as Solution when my Answer provides a Fix or Workaround!
    I am pleased to provide assistance on behalf of HP. I do not work for HP. 
    Kind Regards,
    Dragon-Fur

  • Run multiple apps from one browser windows with 9ias r2

    We are running 9ias r1 with forms 6i as our production server. Users are able to access one html page with multiple links to their applications. They can run one application, keep it running, navigate back to the html page and run a second application.
    We are testing 9ias r2 with forms 9i, but when users try to navigate back to the html page to run the second application the first application closes.
    Is there a way to have 9ias r2 work the same as r1 and allow users to run multiple application from one html page?

    Hi,
    Thank you for posting in Windows Server Forum.
    You can take rdp of server 2012 R2 from Fedora Linux desktop by running Yum command or Gnome rdp support. Please check below article for information.
    1.  How to Use Remote Desktop (rdesktop) in Redhat/Fedora/CentOS
    2.  Remote desktop from Linux to windows using rdesktop and gnome-rdp
    3.  XRDP Installation: An Easy Remote Desktop Setup for Linux
    Note:
    Microsoft is providing this information as a convenience to you.
    The sites are not controlled by Microsoft. Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there.
    Please make sure that you completely understand the risk before retrieving any suggestions from the above link.
    Hope it helps!
    Thanks.
    Dharmesh Solanki

  • Multiple database fields in a single text field

    hii all
    i am trying to do the follwing
    i have in my database city ,state adn zip
    I want to display them in one field of my tablular form ie the field will have a prompt
    prompt :- City ,State and Zip
    and in the field i will have the corresponding database values for the 3 seperated by commas
    how can i do it ??
    plzz help
    mandar

    Hello,
    Create a non-based item, then populate it with concat in a POST-QUERY trigger.
    Francois

Maybe you are looking for

  • Can the Curve output the ringtones and SMS notifications to headphones or to an externally connected speaker?

    Ok, here's the deal. I'm a network engineer, and my company uses a monitoring system which sends SMS text messages to pre-defined corporate cellphone numbers when something requires an engineer's attention. My problem is that I'm a VERY deep sleeper

  • How do i transfer contacts from HTC to iphone5?

    trying to find out how to transfer contacts from my old HTC phone to new iphone5?

  • Transient VO and UIX checkBox tag

    I have created a VO that uses several attributes from an EO. In addition, it contains several transient attributes. The transient attributes work fine when editing with the textInput tag - the values are stored and displayed as expected. However, I c

  • Shared_servers=1 in default DBCA installation?

    Hi all! does the default DBCA installation creates the database with shared servers and not dedicated server? These are the parameters in this brand new installation. shares_servers =1 and dispatchers is set to something.. I have to set them to 0 and

  • Purchased tab not working

    Hi. I updated to ios 5. After none of my apps came along which was no biggy i will just redownload. The store loads fine except purchased tab where moving between screens is taking anywhere up to 5 mins. Down loads once i can get to them are nice and