This topic is locked

multi page input form

5/12/2008 12:01:15 PM
PHPRunner General questions
I
indigo author

Hi,
I have a table with many fields.
To facilitate the entry of data,

I wanted to split the fields in multiple pages.
Is it possible to do this?

J
Jane 5/13/2008

Hi,
you can do the following:

  1. create custom view of this table on the Datasource tables tab,
  2. check off different fields for this table and custom view on the add page on the Choose fields tab,
  3. redirect to this new custom view add page in the After record added event on the Events tab.

I
indigo author 5/15/2008

Thats a good workaround.

But is it possible to just create "tabs" on the top of page and then show/hide fields using ajax or something?
How do I achieve that?

Please help. My forms have many fields which I can group in different tabs.

J
Jane 5/15/2008

Hi,
to disable/enable controls on Edit/Add pages based on another control value place a bunch of field to the <DIV> tag (on the Visual Editor tab) with unique ID and change disabled attribute of this div in the Javascript code.

Here is a sample:

document.getElementById('UniqueID').disabled=true;

I
indigo author 5/21/2008

Sorry. I was not clear enough.

The code is fir disabling the input in specific fields.
What I am looking at is creating tabs/pages where the content of a single record can be split and entered. There are numerous fields and it looks like a very big page.
I can achieve that using "Custom Views" but its more like Saving each record and editing it again using a different view.
I wanted something in javascript/ajax which I can insert as a code.

J
Jane 5/22/2008

Hi,
you can use above method for a group of fields. Just place selectedf field to the <DIV> tag with unique ID and change disabled attribute of this div in the Javascript code.