How to Add/Concatenate to a text field, values selected in a combo box

I have a combo box form field that allows the user to select a value from a list and click on an Add button. The Add button should add/concatenate the vaue selected to a text field in order to create a list of values selected. I'm not sure how to do this using Javascript in Acrobat? I know I need to add the javascript to the Add button's Mouse Up action. Any help would be greatly appreciated. Thanks!

Thanks so much - it works!
>>> "Gilad D (try67)" <[email protected]> 9/25/2013 9:16 AM >>>
Re: How to Add/Concatenate to a text field, values selected in a combo box created by Gilad D (try67) ( http://forums.adobe.com/people/try67 ) in JavaScript - View the full discussion ( http://forums.adobe.com/message/5712118#5712118 )
Let's say the text field's name is "Text1", and the combo is called "Combo1". You can then use this code as the MouseUp script of the Add button:
var f1 = this.getField("Text1");
var f2 = this.getField("Combo1");
if (f1.value=="") f1.value = f2.value;
else f1.value = f1.value + ", " + f2.value;
Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/5712118#5712118
Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/5712118#5712118
To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/5712118#5712118. In the Actions box on the right, click the Stop Email Notifications link.
Start a new discussion in JavaScript by email ( mailto:[email protected].com ) or at Adobe Community ( http://forums.adobe.com/choose-container!input.jspa?contentType=1&containerType=14&contain er=3286 )
For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

Similar Messages

  • How to add supercripts in a text field

    How to add superscripts symbols like copyright,trademark and registered symbols in a static text field in the Livecycle designer 8.2?

    You can copy-and-paste special characters directly into a text object from a text editor such as MS Word. Alternatively, you can insert the hex character reference into the XML source for the applicable text object instance. For example, to add a copyright symbol, go to the XML Source tab and insert the reference &#x00A9; into the XML node <value><text>Foobar&#x00A9;</text></value>.
    Steve

  • How to add hint in a text field

    Hello,
    How do I add a hint in a text field to let the user know what to type in and the hint will disappear when they click on it?

    In the Accessibility palette (shift - F6 if it is not visible) fill in the tooltip field. Now when you hover over the field your tooltip will appear.

  • How do I correctly use Macro Builder to have a form auto select a TAB depending on a value selected in a combo box?

    I am working in access 2013 to update a database first created in Access 2003. It has been saved as an accdb but I have the same problem in earlier versions.
    I have a Tab Control subform in my MainDataEntry form which has 5 different tabs. Each Tab has its own set of text boxes and combo boxes for data entry. At the top of the MainDataEntry form there is a Text box [Text393], which has a drop down with
    the 5 TAB names, [Mobile Device],[Computer],[Loose Media],[Network] and [Original Device]. When I select one of these values in the Text box, I would like to automatically set focus on the first Textbox or ComboBox inside the corresponding TAB.
    I have tried to do this using the MacroBuilder inside the "After Update" Property for the Text or Combo box that is on the MainDataEntry Form using "If" and "Else If" statements for the "GoToControl" action, however
    I seem to be able to only get one Tab to work. I have tried several different variations of this, putting the If statement first and the action argument second...putting all arguments inside a group, or not grouped....nothing seems to work. What am I
    doing wrong?
    EXAMPLE:
    If [Text393]=[Mobile Device] Then
        GoToControl
             Control Name   Combo471
    Else If [Text393]=[Computer] Then
        GoToControl
    Control Name   Bios_Date
    Else If [Text393]=[Loose Media] Then
        GoToControl
             Control Name   Combo659
    Else If [Text393]=[Network] Then
        GoToControl
             Control Name   User Name
    Else If [Text393]=[Original Device] Then
        GoToControl
             Control Name   Combo814
    End If

    In the Macro Builder's AfterUpdate event for [Text393]:
    GoTo Control
      Control Name =Forms!MainDataEntry.Controls(Text393.Value).Name
    To ensure that the first control on each tab receives the focus, set that control's Tab Index property to zero (0).

  • How to get around Ampersand in text field in Select statement

    I have an SQL statement I am trying to run in SQL*Plus. In one of my subqueries, I have a select statment in which some of the fields I am trying to pull have an "&" within the text. So, when I try and run the query it returns "Enter value for 35:". I've even tried wildcard characters and it is still not working. If anyone could help me with this, I would appreciate it. Here is a sample of my statement (the subquery is at the bottom of the statement):
    select real_case.file_dt, real_case.dscr, pty_cd, first_name, last_name, addr_line1, addr_line2, city, st_cd, zip_cd
    from real_case, pty, idnt, ptyaddr s1, addr
    where real_case.case_id = pty.case_id
    AND pty.idnt_id = idnt.idnt_id
    AND pty.case_id = s1.case_id
    and pty.seq = s1.seq
    and s1.addr_id = addr.addr_id
    and (real_case.file_dt >= '01-NOV-06'
    and real_case.file_dt <= current_date)
    and (real_case.dscr like '79D01-%'
    or real_case.dscr like '79C01-%'
    or real_case.dscr like '79D02-%')
    and (pty.pty_cd like 'DFNDT')
    and (s1.ins_dttm in
    (select max(s2.ins_dttm) from ptyaddr s2
    where s2.case_id = s1.case_id
    and s2.seq = s1.seq))
    and (real_case.case_id in
    (select case_id from ptychrg
    where ptychrg.actn_cd IN ('35-41-5-1&35-48-4-1')));Thanks,
    Shannon

    this?
    SQL> set define off
    SQL> ed
    Wrote file afiedt.buf
      1  with t as
      2    (select 'a&b' col from dual
      3      union all
      4      select 'abc' from dual)
      5   select    * from t
      6*  where col like '%\&%'
      7  /
    COL
    a&b
    or this
    SQL> ed
    Wrote file afiedt.buf
      1  with t as
      2    (select 'a&b' col from dual
      3      union all
      4      select 'abc' from dual)
      5   select    * from t
      6*  where col like '%'||chr(38)||'%'
    SQL> /
    COL
    a&bjust '%'||chr(38)||'%' will not work.
    You nedd either set scan off or set define off
    correction
    Message was edited by:
    devmiral

  • How to add two zeros end of field

    how to add two zeros end of field?

    Hi srinu,
    If it's a number field, then just multiply by 100.
    If it's a string, then just use CONCATENATE and add the '00' to your existing string.
    Hope this helps.
    SL

  • How to create a custom shape text field?

    I have a diamond shape movieClip and I need add a text Field in the same shape format.
    Now how to create a diamond shape text field?
    Please help me!
    Thanks,
    Jafy

    there's no easy way to do that in flash.  that's an advanced task.

  • Trying to add a flowable/expandable text field to the end of a form

    I have created a form in LiveCycle Designer.  At the end of that form, I would like a Summary text box that expands to allow the person who is filling out the form to type as much information as is necessary and it will all be visible/print when they are done.  I have the field to the point where it will expand (finally!) but I have requested that the field allow page breaks (including all subforms it is contained within) but when it expands, it all carries over to the next page and doesn't allow us to go beyond one page of typing.  Is there anyway to remedy this situation so the text will actually "flow" from one page to another instead of just carrying it over?

    I appreciate you replying to my post and maybe this is just that I have never used the forum before but your reply said that you hoped the sample document would help me and I don't see a sample document attached to the reply.  Am I missing something?
    Date: Wed, 24 Nov 2010 18:32:12 -0700
    From: [email protected]
    To: [email protected]
    Subject: Trying to add a flowable/expandable text field to the end of a form
    I hope this sample file solve your issue too.
    >

  • CLM How to add search-help for extension field(New Company Field) in MA.

    Hi all,
         Based on demand,I need to extend a new field(Company) in Master Agreement.
    But I do not know how to add search-help for this field,just like User Accont page.
    Anyone can help me ?thank you very muck.
    Regards,
    JackyCheng

    Hello Jacky,
    To combine all the answers above and have a topic-based reply please go through the below steps:
    #1. Inactivate the current extension field Company (I see it is actually a String value and this is not what you want to have)
    #2. Go to Setup -> System Setup -> Extension Reference Types
    Check if you already have a Company reference type
    If not, create a new Extension Reference Type for Class Company. Fill in all required information.
    #3. Create a new Extension Attribute
    Select Data Type: Object Reference
    Now you can add the Company type as reference
    Regards,
    Bogdan Toma

  • How to add F1 help for a field on ALV grid

    Hi All,
    When we execute a program, the output is displayed using ALV grid.
    on the ALV grid, if we press F1 on a field, it should popup the help document.
    How to add F1 help for a field on ALV grid.
    Thank you all in advance.

    fill field LVC_S_FCAT-ROLLNAME of your fieldcatalog in method SET_TABLE_FOR_FIRST_DISPLAY
    A.

  • How to add search help for standard field LIKP-TRAID

    Hi friends,
    How to add search help for standard field LIKP-TRAID ,
    refer screen
    Program Name       SAPMV50A  
    Screen Number      2108      
    TrnsIDCode ( LIKP-TRAID ) ..
    I need to add a search help, so that i can retrieve data from Ztable.
    Thanks.
    Abhi

    Hi Abhi,
    Try using any one option:
    Create a Search Help in SE11.
    Now Goto SE11 -> Enter Ztable -> Select that field -> Click Search Help and try to assign the created Search help to that field in your Ztable explicitly
    OR
    Create a Zdata element in SE11.
    In Data Element, under Further Characteristics tab, enter Name  Parameters of Search Help.
    Assign this data element to that field in ur Ztable.
    OR
    Create a Zdomain and maintain a Value Table or Fixed Values for it.
    Assign this domain to that field in ur Ztable.

  • How to create pdf files with text field data

    how to create pdf files with text field data

    That looks like it should work, but it doesn't.
    I opened the PDF I had created from Word in Acrobat (X Pro). Went to File > Properties. Selected "Change Settings". I then enabled "Restrict editing...", set a password, set "Printing Allowed" to "none", "Changes Allowed" to "none", and ensured that "Enable copying of text..." was disabled.
    I saved the PDF file, closed Acrobat, opened the PDF in Reader, and I was still able to select text and graphical objects.
    I reopened the PDF in Acrobat, and the document summart still shows everything as allowed. When I click on "show details" (from File > Properties) it shows the correct settings.
    Any ideas?

  • HOW to ADD F4 help to a  field on SCREEN (MODULE POOL)

    Hi,
         How to add f4 help to a field in screen ..plz help
    Regards,
    Saleha

    Hi Saleha,
                    In order to add F4 help to a field in modeule pool follow these steps:-
    1. First go to SE11 and create your own search help( if you dont know how to create a search help please feel free to ask me, it is very easy).
    2. Now in your module pool program program go to the layout of your screen.
    3. Now when you see the attributes of this field in the Dict tab you will find the field Search Help. Now here you can specify the name of the search help you created in SE11.
    There is also another mehtod to create the dynamic search help. eg:- in a posted document data get the Document nos related to that company code.
    The sample code is like this:-
    First of all declare the module below in the flow logic of your screen then create it in your main program.
    You declare the module in the PROCESS ON VALUE-REQUEST.
    PROCESS ON VALUE-REQUEST.
    FIELD TXT_DOCNO MODULE VALUE_BELNR.
    You also need to create an internal table where you wil store results of the select query fired below in the module.
    here you will get a F4 help on the filed Document Number(TXT_DOCNO) based on the field Company code (TXT_CODCO)
    MODULE VALUE_BELNR INPUT.
    progname = sy-repid.
      dynnum   = sy-dynnr.
      CLEAR: field_value, dynpro_values.
      field_value-fieldname = 'TXT_CODCO'.
      APPEND field_value TO dynpro_values.
    CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
        EXPORTING
          tabname     = 'BKPF'
          fieldname   = 'BUKRS'
          dynpprog    = progname
          dynpnr      = dynnum
          dynprofield = 'TXT_CODCO'.
    CALL FUNCTION 'DYNP_VALUES_READ'
           EXPORTING
                dyname             = progname
                dynumb             = dynnum
                translate_to_upper = 'X'
           TABLES
                dynpfields         = dynpro_values.
      READ TABLE dynpro_values INDEX 1 INTO field_value.
      SELECT  BUKRS BELNR
        FROM  BKPF
        INTO  CORRESPONDING FIELDS OF TABLE it_doc1
        WHERE BUKRS = field_value-fieldvalue.
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
           EXPORTING
                retfield    = 'BELNR'
                dynpprog    = progname
                dynpnr      = dynnum
                dynprofield = 'TXT_BELNR'
                value_org   = 'S'
           TABLES
                value_tab   = it_doc1.
    ENDMODULE.                 " VALUE_BELNR  INPUT
    Hope you find this information useful, let me know.
    Regards,
    Aditya.

  • Livecycle populate text field with multiple records from list box

    Can someone tell me how can I populate a text field from list box when I have multiple select.
    Here is example:
    List box consist: Hello
                             World.
    I want to see this in text field: Hello,World.
    Thanks!

    Hi Legro
    I don't know if I understand you correctly, but you can do something like this:
    ----------------- java script begin ---------------------------------
    //Reset text field
    TextField.rawValue = "";
    //loop through items in listbox
    for(i = 0; i < ListBox.length; i++)
              //if item selected
              if(ListBox.getItemState(i))
                        //check if Text field value if null
                        if (TextField.isNull)
                                  TextField.rawValue = ListBox.getDisplayItem(i);
                        else
                                  TextField.rawValue = TextField.rawValue + " " + ListBox.getDisplayItem(i);
    ----------------- java script end ---------------------------------
    I have attached an sample PDF so that you can see how it works!!
    Kind Regards
    Søren Høy Nielsen Dafolo A/S

  • Want to hide the drop down based on text field value

    Hi,
    I want to hide some of the values in drop down based on one text field value.
    I have the field called name which has the value A, B, C, D and also one drop down list which has the values 1,2,3,4,5,6. I want to hide the some of the values in drop down based on A or B or C. Let say, If it is A, drop down value should be 1,3,5. If it is B, Drop down value should be 1,2,3,4. Like this for every record.
    Can you please help me out.
    Thanks
    Ram

    Hi Robert,
    I am trying it in two different way. Please suggest which is the right one and feasible.
    1) I have the drop down list which has all the status. I am trying to hide the drop down values based on one text field value for all records.
    2) I have collected all the drop down values into table in webdynpro method. Rightnow I have two tables.
      one has line items details and another one have drop down values. both tables having common fields.
      I have to show second table values for that particular key, move all of them to drop down.
    Which is the best and feasible option.
    Thanks
    Ram

Maybe you are looking for

  • Performance issues with 10.6/1/2 - Mac hangs every 5 minutes

    Hi all, A recent problem I have started to experience is that my Mac keeps hanging, avery 5-10 minutes the beach ball comes up and freezes the machine; sometimes for 3-5 minutes and it is really frustrating me! Didn't have any issues with a fresh ins

  • Problem with impdp

    Hi, I have the following problem: I make the expdp from my production database and I need import in test database, to make the export I use the command: /u01/app/oracle/product/10g/bin/expdp newsys/mypass@prd schemas=NEWSYS directory=DMPDIR dumpfile=

  • Process Route for Documents in PLM

    Hello Guru's I would like to know if there are any workflow Task id's that needs to be activated for documents. Please see the below attached screen shot for reference. Thanks & Regards Jo Pz

  • Counting fact table records within brackets

    Hi, I have a star schema setup in OBIEE, consisting of a fact table of transaction records, linked to a customer dimension and a time dimension via PK-FK relations. One of the requirements is to count the number of customers based on how many transac

  • How to load the JSP Source Code from Browser

    I have made a program using JSP ( one file ) and Java Beans ( 2 files ). The processed in those JavaBeans files and for output to Browser using JSP File. And I'm using JBuilder7 Software for building my applicaton. I already tested my source through