> We have a PDF form we take an HTTP submit from and process in 
> CF and I'm having a heck of a time updating someone else's 
> PDF form as someone who has never used Livecycle Designer. 
> I'm hoping maybe someone on here has some insight.
> 
> The form has a row of 3 form fields that all accept user text 
> input. The form also uses an 'add new row' button which calls 
> the addinstance() method. This just generates another row of 
> the same 3 form fields so the user can enter in multiple items.
> 
>  The problem I am encoutnering is the add new row makes every 
> row after the fact the same field name (i.e. row 1 has 
> txtComment and so does row 2). The problem being when a form 
> post is submitted it is concatenating the data values and 
> seperating them with a comma. All fine and good until a user 
> puts a comma in the text itself, then well..... I notice in 
> the examples that come with livecycle it is doing the same thing.

I can think of two approaches offhand.

First, you could look at the raw HTTP POST data using the GetHTTPRequestData
function and reference the multiple fields directly. In a similar vein, I
think you can discover duplicate form fields by looping over
Form.Fieldnames.

Second, you could replace your HTTP Submit button with a regular Button in
LC Designer, and configure the button to post the XDP Data to your URL,
instead of just URL-encoded name-value pairs. Of course, you'd then have to
parse it as XML from within CF.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Training: Adobe/Google/Paperthin Certified Partners
http://training.figleaf.com/

WebManiacs 2008: the ultimate conference for CF/Flex/AIR developers!
http://www.webmaniacsconference.com/

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:304423
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to