Creating dynamic form fields

I am trying to create a form with an input box, but also want to be able to have a link below it to be able to add another input box on demand. Does anyone know where i can find an example of this, i searched on google but wasn't able to find anything that good.

I tried the following code in a .cfm page and everytime i run it i just get the following error:
Server Error
The server encountered an internal error and was unable to complete your request.
Application server is busy.  Either there are too many concurrent requests or the server still is starting up.
But any other page that run works fine, this is the only that gives me this error.
<html>
<head>
<title></title>
<script language="javascript">
fields = 0;
function addInput() {
if (fields != 10) {
document.getElementById('text').innerHTML += "<input type='file' value='' /><br />";
fields += 1;
} else {
document.getElementById('text').innerHTML += "<br />Only 10 upload fields allowed.";
document.form.add.disabled=true;
</script>
</head>
<body>
<cfform name="form">
<input type="button" onclick="addInput()" name="add" value="Add input field" />
<div id="text">
</div>
</cfform>
</body>
</html>

Similar Messages

  • Creating dynamic form data with SetValue QPAC

    I'm creating form data in a workflow process, and using it to populate a dynamic XDP with a subform.  In my test form, the subform is named "Item", with a text field named "ItemData".  Initially, I can create the form field via the SetValue QPAC and using these parameters;
    location: /process_data/form/form-data/data/xdp/datasets/data/fields/Item/ItemData
    value: "first"
    However, I need to add multiple instances of the Item subform.  For example, if I fill out the test form with 3 items and export the data to XML, the data structure comes out like this:
    first
    second
    third
    So, the question is, how do I use the SetValue QPAC to create multiple instances of the items? I've tried various locations;
    /process_data/form/form-data/data/xdp/datasets/data/fields/Item.x/ItemData
    /process_data/form/form-data/data/xdp/datasets/data/fields/Item[x]/ItemData
    /process_data/form/form-data/data/xdp/datasets/data/fields/Item/ItemData.x
    but none of them seem to work.  I know I'm probably just missing something simple.  Anybody care to fill me in on the obvious?

    Hi Clifton
    Looking back on this thread, I think you're saying that the data is eventually going to come from a MySQL database.
    In that case, our SQLPlus QPAC will do the job perfectly.
    You just specify the query, specify the repeating element:
    /process_data/form/form-data/data/xdp/datasets/data/fields/Item
    and then map columns in the result set to sub-element of the Item.
    eg mycolumn -> ItemData
    The SQLPlus qpac will create all the repeating items for you.
    Does this work for you?
    If not, please specify what you'd like to see.
    A couple of options are:
    - A setValue qpac that correctly inserts for expressions like: process_data/form/form-data/data/xdp/datasets/data/fields/Item[2] (probably difficult to do)
    - An InsertSequence qpac that takes a repeating element and a count as an input, and creates that many repeating elements. You could then refer to them using the regular SetValue qpac. (Probably easier to do.)
    - Something else. Go wild :-)
    Howard

  • Quick Tip: How to create editable form fields | Acrobat X Tips & Tricks | Adobe TV

    A short tip that details how to create editable form fields using Acrobat X Std. or Pro.
    http://adobe.ly/wzXkmL

    I have created a form which will be filled out by customers and sent back to me via 'submit' button. What I am trying to figure out is when we receive the filled out form, is there any way to have it as a pdf. To clarify, when the form is filled out and sent, the receiver opens the email and attached is a non-editable pdf. This way the customers information is no longer editable.

  • How to create new form fields in several columns (spreadsheet) and have them named consecutively?

    Hopefully someone can help.  I created a new form from an Excel spreadsheet, but the form field recognition didn't "take" well and very little of the spreadsheet translated into form fields.  I need to create new fields (31) for each column (about 10) and I want the fields in each column to have a keyword from the parent column and the fields numbered consecutively.  I'm really hoping I don't have to do this manually!
    Next, is there a way to total the values in a column of fields (the same as the SUM function in Excel?) or does the form user have to dig out a calculator and add everything?
    Can I create an email (submit) button and direct how (ie email) and by what method the form is sent?
    Once the form is completed, is there a way for the user to lock it before sending it - ie a button they could press to make it no longer fillable?  Or can I set the document to be a regular .pdf once it leaves the host machine?
    I think that's it!  Hopefully someone can help soon - this is a work project that could be potentially very time consuming if I have to create each form field manually.  Thank you for any assistance!
    Cheers,
    LostintheNorth

    LostintheNorth wrote:
    Rats!  Thank you for your link - I may take you up on that... however for the purposes of this form I'm more than halfway done, so I might as well keep plugging away.  A workaround I found was to creat 32 of something I only need 31 of, then delete the parent.  Somehow even playing with spacing on the "create multiple fields" option as the fields are being created only gets the vertical alignment close - no matter what I do I still end up manually aligning (vertically) 31 little boxes for each column so they fit visually.  Grrrr.
    Yes, this can be very tricky. If you don't get the exact right offset between each field, the difference will accumulate and after a while it will be completely off.
    You just have to play around with it, until you get it right. Or almost right, and then adjust it manually.
    Another thing I've noticed, is that when you select one field and right click for properties, you get an expanded version, as opposed to select/shift/enter for a bunch of cells only yields an abbreviated properties box - what's up with that?  Is there a way to change this?  For instance, I had set the properties for a column of 31 cells to be number, 1 decimal place.  Halfway through my project, the lady I am doing the favor for tells me she would like 2 decimal places, requiring me to manually change each box for 62 cells!  Apparently cell formatting is not an option in the abreviated properties dialogue!  Is there a fix for that?
    No, there isn't. Some propeties you have to set manually (or get right the first time, before copying and pasting...). There is a way to do it with a script, but it's a bit complex and requires using an undocumented method.
    This next question is a bit more complicated, and may not be possible.  The form I am creating is for payroll purposes, so at the moment it is generic (31 days) and the user fills in the month manually. Is it possible to get the form to recognize a month value (or create a pulldown menu with a selection of months to choose from) and limit the days accordingly?  Or better yet, run a calendar function so that weekends and stat holidays are highlighted on the affected row?  Kind of like what you can do with an Excel spreadsheet, which is what I designed the form in at the start (then printed to .pdf - the form field recognition did NOT work well on my spreadsheet!  hence me doing every cell manually).  Is this even possible, and if so, is it something I could learn to do?
    Yeah, it's possible, but requires quite a bit of scripting knowledge. If you wish, contact me personally (by PM or email at try6767 at gmail dot com) and I could possibly create this for you.
    If you want to do it yourself, you would have to learn a lot about both the Date object in JS and about the various date printing and scanning methods in Acrobat JS.

  • How I can create dynamically-formed requests or use native SQL in EJB?

    Hi all.
    I'm working around modify an example from NetWeaver Developer Studio (CarRental). I want to get ordered data from table and allow users to specify the ordering field, not in the code. EJB QL doesn't support dynamically-formed queries like "select object(b) from QuickBooking b where b.status like ?1 order by b.<b>?2</b>" so i can't passing field name as parameter into query. Creating a sorting method for every field is not good solution because I need a dynamically-formed requests.
    I think using native SQL will help but I don't know how I can use SQL in EJB.
    Thanks,
    Lev

    import javax.persistence.EntityManager;within class, place
    protected EntityManager  entityManager;of course make it public, private, whatever you need.
    Then, in your method
    entityManager.createNativeQuery(....);R. Grimes

  • Is there a way to create entry form/fields in Numbers.

    Can anyone let me know if there's a way to create an entry form/field in Numbers. The idea would be to have already created a list of contacts, then at an event on an iPad, people can check off if that person is there and also enter new contact info. Thanks in advance.

    Isnt this just a table? A list of people, with a check box field in the second column, followed by a few columns for contact info to be entered in?
    Jason

  • How to creater dynamic form in Acrobat 9

    Can I make a form that will dynamically add pages (with header and footer) when needed in Adobe Acrobat 9 and if so where is the best documentation on how to do this?

    You can dynamically add pages using templates. This requires some relatively simple JavaScript programming. It will work in Acrobat (Pro or Standard) and Reader 11 (Win/mac), but not previous versions of Reader. Here are some links to the Acrobat javaScript reference:
    http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_Dev_Templates.80.1.html
    http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_Dev_Templates.80.2.html
    http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.1216.html
    If you don't get a two-paned window with the navigation pane on the left, click "Show Navigation" icon in the upper-left.
    If it has to work with previous versions for Reader, Acrobat 9 Pro for Windows comes with the LiveCycle Designer application. With it you can create dynamic XFA forms that can work with Reader.

  • How do I create a form field?

    How do I create a SSN field in my form that is mask?  example: once the user enters the information it will look like this:  SSN *********
    Thanks for any help!!

    After filling out the form, hit the submit button, the next form pops up showing the person it will go back too, hit send then the "Save As" Box pops up and at that time the SSN field goes blank. See attached. This is driving me crazy, what am I doing wrong?? Thanks for your help.

  • How do I create a Form Field Template?

    Does this not exist in the new version of Document Cloud? I would like to be able to add form field layers for signing an Invoice where the account information is going to be different each time I use the form - so the standard template will not work.
    Thanks!

    First of all, it's still possible to add library documents for pro agreement. This discussion centers on creating and use  re-usable form layers.
    So instead of having a document plus fields, this feature let;s you create a template of just the fields, which can be stamped on uploaded document.
    The help article from earlier, only discusses the second part  on how to stamp these layers on an agreement.
    It doesn't explain how to create field layers. Creating form layers is done by going to the dashboard>add Template to library.
    In an account that support it, it's here you get the option to create a reusable form layer.
    now as far as I'm aware this field layer feature only ever has  been a feature in multi user accounts. (So old echosign team accounts and higher) In the Document cloud that would be Document Cloud Enterprise premium.
    I even checked with an old pro account which hasn't been updated to the Document Cloud, and that doesn't this feature either.
    if you did indeed used to have reusable form layers as an option, were you using an Echosign pro, or a different type of account?
    However I'll check with our Product management to see if perhaps this feature can be made part of the Pro account.

  • Creating a form field with Arial MS Unicode and Identity-H encoding

    I need to create a text field on an Adobe Acrobat form that has a font of Arial Unicode MS with the font encoding being set to Identity-H. However when I use Adobe Acrobat 9 Standard (v9.5.1) to do this the encoding is always set to UniKS-UTF16-H. I can't find a way of changing the encoding  to Identity-H. Any suggestions on how I can achieve this.

    I have a 3rd party form filling app that needs the encoding set to identity-h to support the range of characters that could be input. I could ask the vendor to change the app to fix the problem but there would be significant process involved in that. I have a small demo that shows that creating a form with the encoding set to identity-h provides a resolution. The demo was created with iText but as the real form is considerably more complicated I'd rather not use iText if I don't have to. Since the form was originally created with acrobat the question remains as this would be the "least painful" route to a resolution.

  • How to Create Dynamic form using table data

    Dear All,
    I have one Table called PRODUCT_MASTER where product details are stored. Say product A,B,C,D are stored in the table. Another table called SUB_PRODUCT_MASTER, which contains sub product details.Say A1,A1,B1,B2, B3,C1, C2, C3, D1,D2,D3.
    Now, I want to create a dynamic form based on product,sub product. for a whole month. For better under standing here is the format.
    PRODUCT A B C D
    SUB_PROD A1 A2 B1 B2 B3 C1 C2 C3 D1 D2 D3
    Days
    1 x x x x x x x x
    2
    3
    4
    5
    6
    7
    Now whenever I add one row in the PRODUCT)MASTER table and SUB_PRODUCT_MASTER table, Form should add one column in the form automatically. e.g. If I add Product E with two Sub product E1 and E2 then form should add ptoduct E column in the form with sub products E1 and E2 as per above format. Here days are fixed to 31. This forms should accept product wise daily despatch entry. For
    storing despatch entry another table is created.
    Please help to create this type od forms.

    You want I believe to create Croos-Table(Matrix) form. Visit Cross-table (matrix) forms layout and add "Please Send me too".

  • Creating Dynamic Text Field for Flash CS3 in Illustrator CS3

    I've created a series of buttons in an illustration and made
    them into movie clip symbols in Illustrator. I then created some
    text fields for the button labels and assigned them as dynamic text
    in the Flash Text panel in Illustrator.
    When I import the illustration into Flash and test the movie,
    I get this error message:
    TypeError: Error #1034: Type Coercion failed: cannot convert
    flash.text::TextField@d18cef9 to flash.display.MovieClip.
    at
    flash.display::Sprite/flash.display:Sprite::constructChildren()
    at flash.display::Sprite$iinit()
    at flash.display::MovieClip$iinit()
    at menu2_fla::MainTimeline$iinit()
    It seems like Flash is misinterpreting the text fields
    brought in from Illustrator as Movie Clips?

    Download the TinkSpark source from http://code.google.com/p/tink/source/checkout and add the package to your project:
    Then write the following code:
    import ws.tink.core.Library;
    import ws.tink.events.LibraryEvent;
    import ws.tink.managers.LibraryManager;
    private function loadLibrary():void
         var library:Library = LibraryManager.libraryManager.createLibrary( "assetsLibrary" );
         library.addEventListener( LibraryEvent.LOAD_COMPLETE, onAssetsLibraryLoadCompleteHandler, false, 0, true );
         library.loadSWF("board.swf" ); //provide the path of board.swf, pls note board.swf is alos exported as AS3.0
    private function onAssetsLibraryLoadCompleteHandler( event:LibraryEvent ):void
        EventDispatcher( event.currentTarget ).removeEventListener( event.type, arguments.callee );
        var library:Library = LibraryManager.libraryManager.getLibrary( "assetsLibrary" );
        var AssetScore:Class = library.getDefinition( "Score" );
        var score:* = new AssetScore() as Sprite;
        score.scoreDisplay.text = "100";
        addChild( score );
    Warm Regards
    Deepanjan Das
    http://deepanjandas.wordpress.com/

  • ADOBE Forms (Creating Dynamic Forms)

    I am currently creating a form using Adobe Professional 8. IT is three pages each created on separate form files (.pdfx). I combine the files into a PDF package.
    I want to link up the pages together so that when the user types in a value on the first page that it also appears on another box on the second and third page.
    I also want it to be filled using Adobe Acrobat Reader and saved, then submitted.
    If you want me to send you the forms so you know what im talking about please let me know.
    Let me know if you have any questions, comments, or concerns.
    Thanks for all your help in advance!
    Chris P.

    Ensure the fields which are required to be filled on multiple pages have
    the same field name, use the distribute form option and you're done.
    Jon

  • Create dynamic forms

    Hello,
    Hello I have an application based on JSF. We have a requirement to create forms dynamically, I mean end user should be able to add new controls to the form, without recompiling the application. Do u know some frameworks that do this ? For instance , I edit and xml file , and the application creates the form based on that. ? I was reviewing ORBEON framework, and I like the idea that with editing and xhtml file , I can make changed to the form and form submits XML information , but it seems to me complex or a long learning curve , besides it is a completely diferrent technology than JSF........do u know any similar idea like ORBEON , but implemented in JSF ? or how to integrate Orbeon and JSF ? . I want to keep the business logic in java code, and presentation in XFORMS
    Thanks,
    Deibys Quintero

    I'm in charge of the opensource project named XSLTForms (http://www.agencexml.com/xsltforms/).
    It's a client-side XForms solution based on XSLT to generate XHTML+Javascript.

  • Please help with dynamic form field names in cfloop

    Hi,
    I need to create a form with day, date, month, year and time for 12 months
    Instead of coding them 12 times, I create day,date,month,year and time fileds in my form 1 time and then I use cfloop from="1" to="12" index="i" to loop these form fields 12 times.
    I gave each form field name such as: <input type="text" name="ScheduleDate_# i #" value=" "> this way each of those field will be named differently such as:
    ScheduleDate_1, ScheduleDate_2,ScheduleDate_3, ScheduleTime_1,ScheduleTime_2, etc
    I'm facing problem when this form is submitted, I think the error has something to do with the pound sign (##) when it comes to updating the back end
    I use MS SQL
    It doesn like this:
    <CFLOOP From="1" To="12" index="k">
    <CFIF Len(Trim(Form.MeetYear_#k#)) NEQ 0 AND Len(Trim(Form.MeetTime_#k#)) NEQ 0>
    <cfquery name="CreateSchedule" datasource="#DSN#">
    UPDATE TableSchedule 
    SET SchedDay = <cfqueryparam cfsqltype="cf_sql_varchar" value="#form.SchedDay_#k##">,SchedMonth =
    <cfqueryparam cfsqltype="cf_sql_varchar" value="#form.SchedMonth_#k##">,SchedDate =
    <cfqueryparam cfsqltype="cf_sql_varchar" value="#form.SchedDate_#k##">,SchedYear =
    <cfqueryparam cfsqltype="cf_sql_varchar" value="#form.SchedYear_#k##">,SchedTime =
    <cfqueryparam cfsqltype="cf_sql_varchar" value="#form.SchedTime_#k##">
    Where SchedId = <cfqueryparam cfsqltype="cf_sql_numeric" value="#k#">  
    </cfquery>
    </CFIF>
    </CFLOOP>
    Can anyone help please?

    You can't nest hash marks. Do this instead:
    SET SchedDay = <cfqueryparam cfsqltype="cf_sql_varchar" value="#form["SchedDay_" & k]#">
    Dave Watts, CTO, Fig Leaf Software
    http://www.figleaf.com/
    http://training.figleaf.com/

Maybe you are looking for

  • Crystal Reports Server XI error in Infoview

    We have an old Windows 2000 server that was running Crystal Reports Server XI (not R2) and we recently reinstalled it on a Windows 2003 server and imported all the reports.  All scheduled reports work find however in Infoview if we click View Latest

  • New n97 v2 firmware and music player /firmware v2

    just wasted five hours manually updating album art on the n97 for albums thats artwork wasnt recognised using the album art/change function then as usual after being connected in mass storage mode refreshed the music library and it removed all the fo

  • Hidding Password in JSP page

    Hi all, I m using the password value in the jsp page as ahidden variable which is thereafter used in the java script. but the problem is that while in view mode of the jsp page if u right click and view the source the password is getting displayed. w

  • How do you call a java class from the main method in another class?

    Hi all, How do you call a java class from the main() method in another class? Assuming the two class are in the same package. Thanks SI Edited by: okun on May 16, 2010 8:40 PM Edited by: okun on May 16, 2010 8:41 PM Edited by: okun on May 16, 2010 8:

  • Merging layers then using smart sharpening

    I have been trying to apply smart sharpening to multi layers by creating copies of the layers, merging the copies then using smart sharpening on the merge. The change shows in the smart sharpening dialogue and I can see the change in the merged layer