These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

showing requested number of fields

rossmac
Registered: May 7 2007
Posts: 2

Hi there,

I am trying to create a form where, once the user types in the "number of samples submitted", then a table will appear with just the right amount of rows as was typed in to the 'samples submitted' field. I already have the form set up, but this is a new function I want to try to add, but I have no javascript knowledge at all, and I fear this may only be workable using JS.

My thoughts are something along the lines of:

"X" = no. of samples submitted (eg: 23)

show '#[=<"X"]' (eg: show '#[=<23]' would show all fields from '#1' to '#23')
show 'ID#[=<"X"]' (eg: would show all fields from 'ID#1' to 'ID#23')
show 'Description #[=<"X"]' (eg: would show all fields from 'Description #1' to 'Description #23')

if "X" => 11 then show page 2
if "X" => 45 then show page 3 ...and so on.

There are 10 spaces on page one to be filled in, then up to #45 on page two. I will eventually need it to go up to 200 samples.

I think I have the basic idea, just no clue as to how to make it work!

Any thoughts?

Ross

lkassuba
ExpertTeam
Registered: Jun 28 2007
Posts: 3636
You can to do this with LiveCycle. There is an example of how to Add and Remove Table Rows in the following example:
http://www.adobe.com/devnet/livecycle/articles/AddingRemovingTableRows.pdf

Lori Kassuba is an AUC Expert and Community Manager for AcrobatUsers.com.