Multiple Text Boxes into One Text Box

I need multiple text boxes to populate into one text box.  I've got it to work with....
a=a + "\n " + (this.getField("Other Current Illnesses 1").value)
However, if the field is blank, it gives me a blank line.   What is the code if the box is "empty" to "skip" that text box?
Here is what I tried, but it takes everything away even if there is something in the textbox:
if (this.getField("Other Current Illnesses 1").value !==null) {a=a + ""} else
a=a + "\n " + (this.getField("Other Current Illnesses 6").value)
Any help?

From the sample forms supplied with the Acrobat distribution CD, you can use the "fillin" function that can process up to 3 fields at one time and automatically adjust for null value fields and add an option separator string;
The document level function:
// Concatenate 3 strings with separators where needed
function fillin(s1, s2, s3, sep) {
Purpose: concatenate up to 3 strings with an optional separator
inputs:
s1: required input string text or empty string
s2: required input string text or empty string
s3: required input string text or empty string
sep: optional separator sting
returns:
sResult concatenated string
// variable to determine how to concatenate the strings
  var test = 0; // all strings null
  var sResult; // re slut string to return
// force any number string to a character string for input variables
  s1 = s1.toString();
  s2 = s2.toString();
  s3 = s3.toString();
  if(sep.toString() == undefined) sep = ''; // if sep is undefined force to null
assign a binary value for each string present 
so the computed value of the strings will indicate which strings are present
when converted to a binary value
  if (s1 != "") test += 1; // string 1 present add binary value: 001
  if (s2 != "") test += 2; // string 2 present add binary value: 010
  if (s3 != "") test += 4; // string 3 present add binary value: 100
  /* return appropriate string combination based on
  calculated test value as a binary value
  switch (test.toString(2)) {
  case "0": // no non-empty strings passed - binary 0
     sResult = "";
  break;
  case "1": // only string 1 present - binary 1
     sResult = s1;  
  break;
  case "10": // only string 2 present - binary 10
     sResult = s2;  
  break;
  case "11": // string 1 and 2 present - binary 10 + 1
     sResult = s1 + sep + s2; 
  break;
  case "100": // only string 3 present - binary 100
     sResult = s3;
  break;
  case "101": // string 1 and 3 - binary 100 + 001
     sResult = s1 + sep + s3; 
  break;
  case "110": // string 2 and 3 - binary 100 + 010
     sResult = s2 + sep + s3; 
  break;
  case "111": // all 3 strings  - binary 100 + 010 + 001
     sResult = s1 + sep + s2 + sep + s3; 
  break;
  default: // any missed combinations
     sResult = "";
  break;
return sResult;
Then a custom calculation field for a full business phone number consisting of 4 fields could be:
// Business telephone number w/country code and extension
function doFullBusinessTelephoneVoice() {
  var cc = this.getField("business.telephone.voice.countrycode"); // country code;
  var ac = this.getField("business.telephone.voice.areacode"); // area code;
  var nu = this.getField("business.telephone.voice.number"); // exhchange and phone number;
  var ex = this.getField("business.telephone.voice.extension"); // internal extension number;
  event.value = fillin(cc.value, ac.value, nu.value, "-"); // first 3 fields;
  event.value = fillin(event.value, ex.value, "", "-"); // combined 3 fields and internal extension;
doFullBusinessTelephoneVoice();
It looks like a lot of code, but it is easy to insert document level scripts into t pdf so the actual coding is not that much. And if one hase multiple fields that requrie multiple input fields, the coding task is even less compared to working out each field.

Similar Messages

  • I have a paid subscription, but am no longer able to merger multiple pdf documents into one pdf. What's up?

    I have a paid subscription, but am no longer able to merger multiple pdf documents into one pdf. What's up?

    Pat:
    Below is a copy of an 8/7/2013 email from adobe. I prepaid a one-year subscription, and, until I recently upgraded to Windows 8, I was able to make several dozens of merged pdf documents. I seem to be no longer able to use the merge feature that I had successfully and repeated used. When I search for the merge feature I end up with a request that I pay for an upgrade monthly subscription to use the merge feature.
    Tom
    =================================here follows my subscription email====================================================
    Welcome to Adobe ExportPDF
    2 messages
    [email protected] <[email protected]>
    Wed, Aug 7, 2013 at 1:01 PM
    Reply-To: [email protected]
    To: [email protected]
    Dear Thomas Corr,
    Thank you for purchasing a subscription for Adobe ExportPDF.
    Sign-in to export a PDF Now >>
    With your subscription you can:
    Enjoy unlimited online conversions from PDF to Word (DOCX).
    Make scanned text editable.
    Maintain page, paragraph, and font attributes.
    Preserve tables, images, and multi-column text.
    Export PDF comments to Word.
    Help and feedback
    Get help from Adobe on the Support Center.
    The Adobe ExportPDF Team

  • Multiple Checkbox Values Into One Field

    Hopefully someone can help me with this issue I'm having.
    I'm trying to save the values of multiple selected checkboxes into one field separated by commas through ADDT's Insert Transaction code. I can do this easily with DW's standard insert record wizard by using the PHP implode() function but I haven't been able to figure it out with ADDT's code.
    <form>
    <input type="checkbox" value="1" name="program[]" /> Program One
    <input type="checkbox" value="2" name="program[]" /> Program Two
    <input type="checkbox" value="3" name="program[]" /> Program Three
    <input type="checkbox" value="4" name="program[]" /> Program Four
    </form>
    THIS IS ADDT'S CODING
    $ins_quoteManager->addColumn("programs", "STRING_TYPE",  "POST", "programs");
    THIS WORKS VIA DREAMWEAVER'S INSERT RECORD WIZARD
    Original: GetSQLValueString($_POST['programs'], "text"),
    Modified: GetSQLValueString(implode(',',$_POST['programs']), "text"),
    Anyone know how to modify the ADDT code with the implode function to get this to work?

    Have you tried ADDT´s "comma-separated checkboxes" form control, which will also store the values into a field of your choice (and of course retrieve them from there on update record - pages) ? The only possible drawback might be, that the checkboxes can´t be defined statically, means that the array of value/label - pairs will be retrieved from another table by establishing an additional recordset.
    Cheers,
    Günter

  • Multiple users logged into one server, each users printer has a different name, application needs ONE name to print to.

    Multiple users logged into one server, each users printer has a different name, application needs ONE name to print to. 
    I'm NOT in any way a Terminal Services expert and I need help trying to get an application program working in a multi-user environment.
    The issue is that the printer changes for every user that is logged in. The application needs to print NOT to the default printer, but to a "special" printer which is selected in the application... let's call it a label printer to simplify the explanation.
    You have your default regular printer, easy for the application to find that one, and then you have a special printer that labels get printed onto. The application needs to know what printer is the label printer. So we allow the user to select that in the
    application and the selection is stored in a config file in 
    C:\ProgramData\mfgr\prog\setting files
    I don't have access to the application so I can't change how this works.  
    In the "regular" world, selecting the label printer driver to use should be per machine, NOT per user. When a new user logs into a machine, the physical printer doesn't go "poof" and a new printer suddenly appear. Same printer for all
    users.
    Yet in terminal services, the physical machine is "merged" with the virtual machine on the server. And there can be many users logged in at the same time. So each users real machine (and real printer) is injected into the "fake" terminal
    services machine. The name of the printers is made unique for each user. So the printers DO go "poof" and change names depending on the user logged into terminal services.
    So user "A" logs in and sets up the application to print to "LabelPrinterForUserA" (or whatever the name of the printer happens to be), that setting is stored in the ProgramData subfolder, and all is well. Later, user "B" logs
    in, and when they print, the application tries to print to "LabelPrinterForUserA" which doesn't exist for user B or is only accessible by user A. If user B re-configures, that breaks it for user A. 
    SOLUTION 1: The way that /should/ work (in my mind) is that you define one "generic" printer in Terminal Services... call it "Virtual Label printer" and when the user wants to print to it, the print job gets re-directed back to whatever
    physical printer is actually connected to their local workstation. There is a map of virtual printer to actual printer depending on the current user. The application is told once to print to "Virtual Label Printer" for all users.
    SOLUTION 2: Or... there should be some way to make the ProgramData sub folders separate per user. E.g. when user "A" tries to access:
    C:\ProgramData\mfgr\prog\setting files
    they actually get 
    C:\UserData\UserA\AppData\mfgr\prog\setting files
    and user "B" gets
    C:\UserData\UserB\AppData\mfgr\prog\setting files
    So the question I have is: Does either of those solutions exist hidden somewhere in the setup of terminal server? Or is there another way around this issue that I don't know?

    I don't really have a "for sure" answer to this, but because people here can't seem to deal with a question that hasn't been answered I'll provide the best answer I did receive from ServerFault.com user Nathan:
    I can feel your pain with using old software on terminal servers ...the solution I've come up with definitely won't scale as it requires some manual configuration, but I've gotten this method to work with our label printers (which require to be
    printed to an LPT port...yep, that old).
    Share your USB-connected printers to the network on each machine. Then, have the user log in on aunique session for each of them
    (a TS account cannot be shared among computers for this to work) and install a network printer pointing to the USB one they shared. Try to use a DNS name to account for possible DHCP movements.
    After, it should work. Each user can do this since display names can be identical as long as the ports are different (which they are).
    This was clarified by the following series of comments:
    I think you are on to something here, and I originally advised the admin to do this. The problem he ran into is that it setup the printer names in the TS as "printer on usersworkstation"
    and he could not rename it except to change the "printer" to whatever. E.g. the "on userworkstation" remained. I believe there is another way of installing the printer which avoids this, but I can't find it. Ages ago, one used to do NET
    USE LPT2 \\computer\printer password /USER:domain\user /PERSISTENT:YES and then tell the driver to print to LPT2 –  James
    Newton Mar
    17 at 16:21   
    @JamesNewton That's actually the exact method we used. The way around the "network printer" part is to install it as local printer and map it to a TCP/IP port that way. –  Nathan
    C Mar
    17 at 16:28
    You mean in the case where the printers are TCP/IP connected and not local USB / LPT to the users workstation? That makes sense. Wonder if this will work for USB connected printers... –  James
    NewtonMar
    17 at 16:35   
    @JamesNewton You'd share the local printer on the client's PC then on the server connect via TCP/IP to it. You'd need static addresses or use DNS names if DHCP, though. –  Nathan
    C Mar
    17 at 16:51
    Ah. Yes. I see. Looks like the LPT thing should work even with a USB connected printer:superuser.com/questions/182655/… –  James
    Newton Mar
    17 at 17:09   

  • Hello Apple community... I am trying to combine multiple pdf's into one, using preview, but when I drag the additional pages they show up as separate documents.

    I am trying to combine multiple pdf's into one, using preview, but when I drag the additional pages they show up as separate documents.  When I drag the doc in a line would show up in the past, and if I went above th eline all was good.  It doesn't have a line, and no matter what I try I am having no success.
    Please help!

    According to an Apple Support article, unless there are unforeseen issues
    in file ownership or permissions, the combining of .PDFs should be simple.
    •OS X: Combining PDF documents using Preview - Apple Support
    There are a few variable and similar methods, some change with version
    of OS X in use; some vintage OS X may vary a little in the process...
    A variety of similar topics appear in search results, with terms:
    " mac os x combine pdf into one " such as this page shows...
    https://www.google.com/?gws_rd=ssl#q=mac%20os%20x%20combine%20pdf%20into%20one
    If the system is older than Mavericks there may be other methods to try.
    Suggestions are among linked results in the search. I see a few fair ones.
    •Here's another that offers generally similar suggestions...*  this info looks OK, extra links, do not:
    http://osxdaily.com/2014/06/27/how-to-join-multiple-pdf-files-into-a-single-pdf- document-in-mac-os-x/
    { note: avoid clicking on links to products in * this ^ page, since they likely will not help & may be adware prone }
    If you have a problem after trying other methods, based on an OS X
    your computer is running, post back with more exact information...
    Good luck & happy computing!
    edited

  • How do I bind multiple PDF Documents into one single document?

    I am trying to bind multiple PDF documents into one single document can anyone please help me?

    You would need Adobe Acrobat to do that. Reader doesn't have the ability.

  • How do you merge multiple pdf's into one document?

    How do you merge multiple pdf's into one document?

    Hi pharmovative,
    You can use the Combine PDF feature of Adobe PDF pack to combine multiple PDF files into one document. (Or, if you have the full version of Acrobat, you an do it there as well by choosing Create > Combine Files into a Single PDF.)
    Please let us know if you need further assistance.
    Best,
    Sara

  • HT1918 Is there a way to consolidate multiple Apple IDs into one if they are all issued to the same persons(s)?

    Is there a way to consolidate multiple Apple IDs into one if they are all issued to the same persons(s)?

    No. Unfortunately, you can't combine Apple IDs togetehr, even if you own them all.

  • Best approach to join multiple statistics tables into one

    I have read different approaches to join multiple statistics tables into one, they all have a column "productobjectid".
    I want to get all data for each product and put it to excel and output a jpg statistic with cfchart.
    How would you do this, the sql part?
    Thanks.

    A couple suggestions:
    1) when joining tables, its best to list both table/fields that you are joining in the FROM clause:
    FROM shopproductbehaviour_views INNER JOIN shopproductbehaviour_sails ON shopproductbehaviour_views.productobjectid = shopproductbehaviour_sails.productobjectid
    2) You add tables to a SQL join by placing another join statement after the SQL above:
    SELECT *
    FROM TableA INNER JOIN TableB on TableA.myField = TableB.myField
    INNER JOIN TableC on TableA.anotherField = TableC.anotherField
    3) If you have columns in the tables that are named the same, you can use column aliases to change the way they appear in your record set:
    SELECT TableA.datetimecreated 'tablea_create_date', TableB.datetimecreated 'tableb_create_date'
    4) Certainly not a requirement, but you might want to look into using <cfqueryparam> in your where clause:
    WHERE shopproductbehaviour_sails.productobjectid = <cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#all.productobjectid#">
     You might want to consider checking out one of the many tutorials on SQL available online.  Many of the questions you posed in your post are covered in pretty much every basic SQL tutorial.  Alternately, a good SQL book is worth its weight in gold for a beginning web applications developer.

  • FCP 10.1.3 multiple graphic images into one frame

    Hi - How do I put multiple graphic images into one frame? - so it kind of looks like a video wall - except these are still images. I can do it manually but it's not precise. Anyone found a way other than this? Thanks.

    Here is my quick and dirty generator called "9 Pictures": https://www.dropbox.com/s/92c536wgesh2yzj/9%20Pictures.zip?dl=0
    To install it, unzip the file and place the folder inside /Users/yourname/Movies/Motion Templates/Generators
    It will look like this in FCP X. You just have to click each drop zone icon in the inspector and then select the desired clip from the browser. Use the Pan and Scale controls in the inspector to select which part of each image you want to use. Note: this was done in the hope that it may be helpful, but it is no more than a quick thing. You can also control-click the generator in the generator browser and choose open in motion (if you have it) to see how it was done and to modify it.

  • Error Message When Merging Multiple PDF Files into One PDF File

    Good Morning,
    I have a problem with Adobe Acrobat 9 Pro. I am trying to merge/combine multiple PDF files into one PDF file, but I keep receiving this error message:
    Does anyone have a fix for this? Thank you!

    To fix:
    Provide a unique name for each form field. This includes the individual PDFs fields. As you intend to combine/merge no field name in each of the individual PDFs can be the same.
    Be well...

  • Combing multiple sales order into one delivery - help needed!

    basically, this is what im doing and maybe someone can direct me in the right direction?
    i goto vl10c, enter the shipping point and then goto the sales order tab and enter one sales order in sales document 1st field and then in the second field for sales document i enter the second sales order. it then opens up a list of the 2 sales order and i can check mark one or both sales order here. after i check mark both, im not sure what to do to combine the 2 sales order into one delivery document. anyone???
    thanks!

    I will suggest you to go through the link [http://help.sap.com/saphelp_erp60_sp/helpdata/en/38/c1853488601e33e10000009b38f83b/frameset.htm]
    I request you to search the SD forum before posting the issues. You will get plenty of treads on this subject.
    Check the required confiquration for "combing multiple sales order into one delivery" and if still problem persists then you post the error you are getting for resolution.
    Best Regards,
    Bashir
    Edited by: Bashir on Oct 16, 2009 8:58 AM
    Edited by: Bashir on Oct 16, 2009 8:58 AM

  • Concatenate multiple pdf files into one single postscript file

    Hi,
    Could anyone help me with a code to "Concatenate Multiple pdf files into one single postscript file" ?
    Thanks for the help

    Thanks for your reply! Actually the main purpose is to allow user to select multiple pdf documents on a single web page and then he should be able to print all of them at once by hitting the print button on the web page instead of selecting each document seperately to print it. Also he should be able to see all the printing services available to print those documents.
    Thanks,

  • Joining multiple mp3 files into one

    Hi all,
    I am very puzzled as to how to merge multiple mp3 files into one, to upload to Mixcloud. Now, I do have the "Join Together" script and it worked like a charm a few times but now it just freezes and there's nothing I can do.
    Any ideas? Is there any DJ software, other than Nicecast, that could merge the files?
    Any help will be much appreciated.
    Thanks!

    Fronzenfields,
    A lot of folks preparing mixes for Mixcloud use Audacity.  It is a free audio editor, and has both Mac and Windows versions. 
    Besides joining tracks, it will also let you do crossfades, volume adjustments and other typical audo editing functions necesary to create a good quality mix.
    Editing in Audacity does not modify the original tracks.  You import the tracks into Audacity, do the edits, and  then export a single MP3.

  • Publishing multiple calendar categories into one calendar

    Is it possible to publish multiple calendar categories into one calendar on my .Mac?

    David,
    welcome to Apple Discussions.
    I'm not sure if I understand correctly what you mean with "categories". Maybe you want to achieve what I described in "Publishing more than one calender" #1, 04:11pm Oct 19, 2005 CDT
    HTH
    Matthias

  • Converting multiple msft files into one pdf

    HELP - i am using adobe acrobat 9 pro for macs (Mac OS X 10.6.3). when we had a pc, we were able to convert multiple files (microsoft office) to a single pdf at once without first converting them all to pdf. when I attempt this using the same technique, the images for all documents other than pdf files are greyed out and it seems that word/office documents are not a supported format for the conversion of multiple files (not listed in drop down menu) into one pdf.
    I would greatly appreciate help with this. we are business users who are new to macs. we need to do a lot of this and are getting so frustrated. Thanks in advance!

    Hi mephisto11757,
    You can convert the following file types to PDF with the Adobe CreatePDF service:
    Adobe Creative Suite® file formats Examples include: .psd, .ai, .indd
    Microsoft Word (2000, XP, 2003, 2007, 2010, & 2011) .doc, .docx
    Microsoft Excel (2000, XP, 2003, 2007, 2010, & 2011) .xls, .xlsx
    Microsoft PowerPoint (2000, XP, 2003, 2007, 2010, & 2011) .ppt, .pptx
    Microsoft Publisher (2000, XP, 2003, 2007, 2010, & 2011) .pub
    Text Files .txt
    Rich Text Format .rtf
    Adobe PostScript .ps
    OpenOffice Format .odt
    Star Office .sxw, .sxi, .sxc, .sxd, .stw
    Corel WordPerfect .wpd
    Image file formats .gif, .png, .jpg, .bmp, .tiff
    Regards,
    Florence

Maybe you are looking for

  • Why can't I sign in to my Adobe Story?

    I haven't used it in a while, but I have a few scripts in it. I just clicked on a file on my Mac with the extension ".stdoc" and it asked me to download updates in AIR. I downloaded as asked and now I get "Sorry, an error has occurred. The applicatio

  • I have intalled  a new premier pro cc 8 and i have an error when I lauche PP or Media encoder.

    Hi I have this information after lauching pp or encoder. It is a new installation on a new PC. Win7 64b May somebody help me for this problem. Thank you for advance and sorry for my English, I am french but I treate me. Signature du problème :   Nom

  • Unable to run Timed Loops

    Bit of an odd one that had me scratching my head. I have a development system consisting of a PC running a 7842R, acquiring analogue and digital data from the FPGA, loading it into a shared variable, and reading it out within a timed loop on the host

  • Query on Oracle Concepts: Advantages of ASSM

    Hi, A query on Oracle Concepts, specifically on Advantages of ASSM. While I am able to understand 'Simplified administration' & 'Increased concurrency', can anyone mention this in simple terms: • Dynamic affinity of space to instances in an Oracle Re

  • How to get hardware related metrics of SQL Server through query ?

    Hi Folks,                I am newbie to the SQL Server programming. I also follow this forum only now. I am not sure if these kind of question had been asked in the past. Let me furnish you more detail about my query. I do like to get few details reg