Custom values Format delimited by commas in the text as a bulleted list field?

Hi all

I have a text field in a Professional Acrobat 9.0 form, when the user enters a series of values separated by commas:

A value of 1, the value 2, value 3...

Is there a way to take these values and after the user has finished typing in the text field and deselected the text field, have the values to be displayed in a bulleted list, i.e.:

< ul >

< li > value 1 < /li >

< li > value 2 < /li >

< li > value 3 < /li >

< /ul >

I know it's pretty easy to do in other languages I know, but I do not know the JavaScript syntax. I guess I would need to put a script in the 'Script of custom Format"text field.

Thank you!

PS. In addition, it is important that when the user "re - selects" modifies the field to, who they see values as a string delimited by comma, instead of the updated list in shape. Just as the default behavior of a currency in the format of text... field when the user selects a currency field, Acrobat removes the dollar sign, etc., so that the user enters just the number without formatting and when they are done, Acrobat adds the name and commas, decimals, etc..

You can do this by creating a script that launches after the new value is validated, and then you do the following (assume that the name of the field where you want the list is "txtfield"):

MYLIST = "";
myValue = event.value;
mySplitValue = myValue.split(",");
for (i = 0; i
myList += ">"+ mySplitValue [i] + "\n"; '.
}
this.getField("txtfield").value = myList;

(Note: this script is NOT tested)

Tags: Acrobat

Similar Questions

  • How can I get my balls to go with the text in a bulleted list?

    When I put my text indented, the bullets remain in place. It looks fine in design mode, but it does not work in a browser. Here is my code:

    #brtext p {}

    are-size: 10px;

    margin: 0px;

    }

    #brtext li {}

    are-size: 10px;

    padding: 0px;

    margin-top: 0px;

    margin-right: auto;

    margin-bottom: 0px;

    margin left: auto;

    text-indent: 20px;

    }

    #brtext ul {}

    are-size: 10px;

    padding: 0px;

    margin-top: 0px;

    margin-right: auto;

    margin-bottom: 0px;

    margin left: auto;

    text-indent: 20px;

    }

    Help, please!

    Links for CSS style lists:

    http://www.alistapart.com/articles/taminglists/


    http://CSS.maxdesign.com.au/Listamatic/


    http://www.w3schools.com/CSS/css_list.asp

    Nancy O.
    ALT-Web Design & Publishing
    Web | Graphics | Print | Media specialists
    www.Alt-Web.com/
    www.Twitter.com/ALTWEB
    www.Alt-Web.com/blogspot.com

  • Prevent commas in the text fields.

    I created a form in which a text field requires the user to enter a detailed documentation. In doing so, the user tends to use a comma in the description. That is extracted from the form data to Excel I can not enable commas. Can someone tell me what java script would be necessary to solve this problem or if it's possible? I am also open to other suggestions such as how to pipe delimited by comma delimited vs spin forms.

    Thank you

    Hello

    I'm not sure about the import in Excel with commas in the text, that he would say would the best solution of fixing.  But to prevent someone from entering a comma character add the following JavaScript in the change event of the text box code;

    XFA. Event.change = xfa.event.change.replace(/,/g,""); "

    This example uses a regular expression (the fuse between the characters ' / ') to replace all occurrences (because of the ' g') with an empty string (replace the second parameter to the method).

    Concerning

    Bruce

  • How to extract values of classic report column in the text element

    Hi all

    I've created a classic report (select id, name,' < input type = "button" value = "add" id = "add" name = "add" > "as" add details "details ;) with a single column as column values want link.i in the text element when I click on the link of that particular record of the report)

    (1) in the link this link column property I've specified the URL as [javascript:insert_in_table(#ID#,#NAME#)]

    (2) text two article P_ID, P_NAME

    (3) in the header of the page, I've specified as javascript

    < script type = "text/javascript" >

    function insert_in_table (id, name) {}

    var regId = ' #detail #'.substr (1);

    var req = new htmldb_Get (not null, $v ('pFlowId'), 'APPLICATION_PROCESS = add', $v('pFlowStepId'));

    Req.Add ('P_ID', ID);

    Req.Add ('P_NAME', Name);

    forced. GetAsync (function () {}

    If {(p.readyState is 4)

    $a_report (regId);

    }

    });

    }

    < /script >

    (4) created a (add) process whose point: on demand, run this process when requested by ajax

    pl/sql: insert into name_detail (id, name) values (: P_ID,: P_NAME)

    now the problem is I m not getting the values of column in the report in the text element, it only shows white.

    Kind regards

    Ketan

    Hello Ketan,

    Assuming that you want to insert the values into the table, this is why you want to set values for the element,

    If this is the case, then no need to define values for the element to insert.

    Follow the steps below, it is one of the embodiment of your condition.

    Step 1: Put the code below in your classic report query

    assuming that the id is of type number and the name is of type varchar, that's why I am attaching the name to apostrophe, see line 3

    select id
         , name
         , ''  as "Add to detail"
    from detail
    

    Edit 'Add details' column-> column attributes-> view-> column of Standard report

    Step 2: Create a process in the processing of the Page

    Name: INSERT_DATA

    Address the point: on demand, run this process when requested by ajax

    Process: putting the code below

    Declare
      P_ID number ;
      P_NAME varchar2(50);
      Begin
          P_ID   := apex_application.g_x01;
          P_NAME := apex_application.g_x02;
          insert into name_detail(id,name) values (P_ID,P_NAME);
    End;
    

    Step 3: Create a java script function to call your insert ajax process.

    Change the Page-> the function and the global variable declaration-> put the code below

    function insert_in_table(id,name) {
      apex.server.process ( "INSERT_DATA", {
          x01: id,x02: name
      }, { success: function( pData ) { }
      });
    }
    

    Hope this helps you,

    Kind regards

    Jitendra

  • I try to send a PDF for visitors to download contrary to Safari and Chrome, FireFox displays the letter numbered and bulleted lists show no inFF

    It is a question of company about my client being read properly by our customers. The pdf file, we created (secure) or unsafe, can be played in the Player browser by default, but lists in the document (numbers, letters and bullets) don't appear - just indented paragraphs. I tried describing the text, etc. - nothing works. The same files are well in Safari and Chrome.

    I could attach screenshots

    Maybe that's a problem with the font used for the numbering? When I create a PDF from MS Word that uses automatic numbering or hierarchical numbering in the same font as the text, Viewer PDF in Firefox it displays normally.

  • update the text with xml, DDL data fields a selection of an identification number

    Hi guys,.

    It should be simple, but I can't seem to find a straight answer.  In short:

    The XML file contains the ID, name, location (so 3 extreme records in the example xml file)

    Form contains a dynamic drop-down list to allow the selection of ID and text fields to display the names of the partners and the location of this ID.  The setting of the drop-down list works fine, however I need to update the associated name and location if different from the other ID's fields are selected.  I guess I'll need some sort of event on the menu drop down update other fields with the name and location of the selected ID, but I don't know enough to have a stab at him.

    Please, please, please help, Im starting to pull my hair.

    James.

    Sorry, looking at him again I could have given a better description of what is happening.

    Have a look at this sample https://acrobat.com/#d=NO5o6NhPTQgSYu3SVoN7rQ and data to go with her https://acrobat.com/#d=jN * pRT4uGg05VU * sGWvjcA

    The thing I should have said and I guess that's your problem is the the Data property, I used in $data. Data.resolveNode (...) must match the item parent of the element of your event if xml looks like

    1

    name 1

    Location1

    It should be $data.events.resolveNode (...)

    Maybe I should have used "itemGroup var = $data.resolveNode ("events.event.» (()_eventId.value_===_«_«_+_xfa.event.change+_»_») "); "in this case, but I try and do the resolveNode go as low as possible.

    Concerning

    Bruce

  • Show / hide the text box drop-down list database

    Hi all

    First time post here - wahoo!  :-)  Brand new user of LiveCycle, and so far I'm loving - very cool app!  I am a bit puzzled, however, and hoping someone can help...

    I am using LiveCycle version 8.05 and try to build a form that has a drop-down list with departments in our Organization.  If the user selects the elements 1-5 on my list, I want two other fields at autopopulated (one for the Admin Assistant) and one for Dept Head.  If however the user selects 'Other', I want a text box (it will be hidden the rest of the time) where the person will be able to type in the Department they work for.  For now, I'm only interested on getting the box 'Other' to appear; I'll worry about the other stuff later.

    Elsewhere in my form, I have a functioning drop-down list that displays a text based on the selection field; However, for some reason this logic does not work with the situation described above.

    My code for the working text field is (in JavaScript)

    var
    
    (sNewSel)
    case "1": 
    switch
    {
    
         TextField6.rawValue = "My text is in here";
    break;
    case "2":
    
    
    
    = "My second text is in here ";
    
    
    break;
    "3":
    
    case 
    
    = "My third text is in here.";
    break;
    TextField6.rawValue
    
    default:
    }
    break;
    
    
    TextField6.rawValue 
    
    
    sNewSel = this.boundItem(xfa.event.newText);
    

    After many fruitless hours yesterday, I got only to the extent where the code below; This was more or less copied right out of a post here.  When I click on the drop-down list, select 'Other', the text field is displayed.  I tried the definition of the text field to the times 'Hidden' and 'Visible' through properties of the object, but no luck.  I tried to use IF statements, subforms and anything else I could think of but am getting nowhere.

    var nSubLength = Subform1.nodes.length;
    var 
    sSelectField 
    for
    
    {if
    {switch (xfa.event.newText) 
    (case "6":
    Subform1.nodes.item(nCount).presence
    break
    default:
    Subform1.nodes.item(nCount).presence
    break
    }
    }
    }
    ;
    = "invisible";;= "visible";((Subform1.nodes.item(nCount).className == 
    "field") &(Subform1.nodes.item(nCount).name== sSelectField)) 
    (var nCount = 0; 
    nCount < nSubLength; 
    nCount++) sSelectField = fieldList.rawValue;
    = sSelectField.replace(' ', '');

    Any ideas?  This is very new to me, but I am familiar with other programming languages, and something this simple should not be difficult which leads me to think I'm missing something.

    Thanks in advance

    Chris

    It was easier to create a sample for you... Please see the attachment.  I think that's what you want.

    The code is on the change event of the DDList

    Paul

  • delimiter of comma in the data entry form

    Hello

    Is can put the comma separator in numbers of planning entry form? I don't see any option to display numbers with comma separator. Please advice how to make it possible.

    Thank you and best regards.

    Hello!

    I think that you can set the decimal separator in the settings of the application; default settings of application; display options. There you can select the separators for the application.

    In case you want to use your own preferences you can do in the workspace: file-> Preferences-> click on schedule-> Display options tab, and then select number of formatting you want.

    Kind regards
    user637777

  • Commas in the text fields...

    I have a few areas where people enter some numbers and then the calculations are done (behind the scenes), and a number that results appears in a new field. I need to know how to get the commas to appear in the appropriate places (for example - if someone result was 82746, I would like it to appear as "82 746" rather than "82746")...

    Here is a link to download my. FLA that I'm working on. The code in question is pictured 5. Thank you! :

    http://Al-i.Anixter.com/temp/pie2.fla

    -Hoffman

    Nevermind - I figured it...

    Just change the:

    for (var i = num_str.length - 3; i > 0; i-= 3) {}

    TO:

    for (var i = num_str.length - 6; i > 0; i-= 3) {}

    Thanks for all the help, guys! ...

  • Format of Date change in the dashboard quick drop-down list

    Hi friends, my dashboard displays a drop-down list for dates, which are in the format "2008-07-01 12:00:00 AM.
    It is defined in sql server datetime data type. Is it possible to change the date format in the swift dash to just '01/07/2008' without doing next database.

    Appreciate your help.
    Thanks and greetings

    Hello... Toony

    In the fast dashboard, you have the option to select for example to show SQL,.

    you write SQL or SQL advanced logic: select cast ("timestampCOLUMN" as the date) of "PresentationLayerName"
    This is a simple way without changing anything beside SPR...
    And if you want that the timestamp column somewhere in some reports you can directly use this column.
    If you don't want you must typecast as the DATE.

    If your question has been answered then put it as answered and mark it as correct... ;)

    Published by: Kishore Guggilla on October 20, 2008 23:44

  • FF4 print format PDF (Acro Pro) makes the text as image (FF3 do not have)

    When I create a PDF file with Acro Pro text using FF4 is rendered as an image. FF3 doesn't have this (another rendering browsers text text as well). Win 7 Pro 64 bit, FF 4.0

    It seems to go away when you disable hardware acceleration: Tools-> Options-> advanced-> general-> browsing, uncheck the "use hardware acceleration when available. Then restart Firefox.

    Looks like a bug to me. Hardware acceleration should affect screen, not print not... and if it produces effects of impression, it should not impact it this way.

  • Set the height of an object list field

    Hi all

    I would like to reduce the height of the ObjectListField so that it does not use the full height of the screen.  This will allow a 'information panel' inside that is updated when the highlighted line is changed.

    Anyone know the best way to do it?

    Thank you

    Glen M.

    Thanks for the reply.  I tried that but still was the question.  I ended up placing the info panel in the status the display field.

  • Value formatting in the guided Navigation

    Hello

    I was not able to find it on my own, so I thought I would ask the community.

    Does anyone know if there is a way to configure the value formatting for an attribute in the guided Navigation?

    In my case we have digital and long values, but because they are numbers or codes, a delimiter is not wanted for these values.

    However, we do not want just the format of the values as strings to keep the formatting because it is also necessary to use a filter of the range on these values, which won't work on strings.

    Someone at - it ideas around that?

    Thank you!

    Assuming you're talking about 3.0, and then on the guided Navigation pane, the value uses formatting configured for this attribute in the display manager.

    See the next section of the User Guide for the Studio.

    Configure the default display for an attribute format

    Janice

  • Need help importing CSV file with commas in the rest of the data

    I have a linux script that gets the CSV files from a remote server and import the data into a table using SQLLoader.

    The problem I have is that the data in the CSV files sometimes contains commas in the text field that is interfering with the import and I have no control over what is in the file.

    my table:

    Create the table my_tab
    * (TIME_STAMP date, *)
    REQUEST_IP varchar2 (30),
    User_id varchar2 (30),
    FACILITY_ID VARCHAR2 (255),
    Number SUBFACILITY_ID,
    DETAIL VARCHAR2 (255)
    *);*

    example of a CSV file:

    * 27032011 story 232708,162.108.20.61,user123,cstmr_view_hlr_history,0,Viewed with 10 results per page for 1234567890 *.
    * 232737,162.108.20.61,user123,cstmr_view_customer,0,Facility 27032011 [display] selected *.
    * 232744,162.108.20.76,user123,cstmr_add_gprs,0,Facility 27032011 [Add x] selected *.
    * 232759,162.108.20.94,user456,cstmr_hlr_request,0,Facility 27032011 [x orders] selected *.
    * 27032011 added 232806,162.108.20.94,user123,cstmr_hlr_request,2,Customer note: note [x], MSISDN [1234567890] *.
    * 232806,162.108.22.96,user789,cstmr_hlr_request,0 27032011, queue update: Action [46], IMSI [1234567890] old [, MSISDN IMSI [1234567890] *.
    * 232815,162.108.20.67,user789,cstmr_view_customer,0,Facility 27032011 [display] selected *.
    * 27032011 232822,162.108.20.67,user123,cstmr_view_customer,5,Screen ' display customer details ': MSISDN [1234567890] *.
    * 27032011 232702,162.108.20.57,user456,cstmr_hlr_request,0,Queue update: Action [45], IMSI [1234567890] old [, MSISDN IMSI [12345678901], AFN [], [PDPREC] *.
    * 27032011 connection 232825,162.169.22.108,user456,adm_login,1,Successful: user [user_name] *.
    * 232829,162.169.22.108,user456,cstmr_view_customer,0,Facility 27032011 [display] selected *.

    How can I get around the commas in the text?

    Published by: cinnamon on April 4, 2011 08:07

    There is a way to do it, but it depends on a few assumptions, and (b) you have to jump through hoops to do it.

    First of all, this only works if there is no comma request_id, user_id or facility_id. (if there is, then you're stuck, because there is no way to determine which commas are part of data and those that are separators.)

    Second, he must know if there are any particular character - say | -who never appears in the detail.

    If you can do both of these assumptions, then what you have to do is:
    (1) create an array that consists of a single VARCHAR2 column large enough to hold longer line of your input data.
    (2) to import your data into this table.
    (3) replace the first five commas in each row of the table with. (or whatever your "unused" character).
    For example:

    UPDATE temp_data_table
    SET row_text = REPLACE(SUBSTR(row_text, 1, INSTR(row_text, ',', 1, 5)), ',', '|') || SUBSTR(row_text,  INSTR(row_text, ',', 1, 5) + 1);
    COMMIT;
    

    (4) write a SQL INSERT command to build your target table according to the values separated by the | characters.

    -Don

  • Displays the text of the dropdown list with bound values

    I don't know it is simple and can be invited at the front (sorry I can't find it).

    If a dropdown bound values, javascript, how interrogate you text displayed field...

    DropdownList1.rawValue returns the bound value, so, how do you get the text?

    Thank you

    or simply DropDownList1.formattedValue;

    Paul

Maybe you are looking for

  • iCloud listed several times calendars

    I've just updated my MBP (15 "mid-2012) to El Capitan (from 10.8.5).  I had to check out the 'moving calendars to the server' problem that others have reported. I managed to fix that by disabling and re-enabling my iCloud as suggested elsewhere but a

  • S - the keyboard has failed?

    Keyboard KG-1061 - s model number no longer works.

  • latitude/longitude exchanged when using html5_init.js on os 5?

    Using html5_init.js in a web widget on the 5.0.0.680 project simulator, it seems, the latitude and longitude are be swapped.  I set up a reminder watchPosition but when the callback is called the latitude and longitude properties of the past position

  • Need to filter the last tasks

    I need to create an analysis that shows the number of tasks that took place yesterday, but since they ran twice they themselves were divided into two rows and two counts are presented. How to choose only the last race?Please help me with this. Thanks

  • How to download photoshop elements on another computer?

    A few months ago, I bought Adobe Photoshop elements for mac online 13 on my desk. The software downloaded perfectly and I used it since then. Now, I wanted to download on my laptop. I went to my orders, and it showed that I bought, so I clicked on do