This topic is locked

Display some fields in record

5/22/2008 11:27:15 PM
PHPRunner General questions
B
bochaka author

Hi

My record has a rather large amount of fields, is it possible to display only say the first 5 fileds and have a button which will display all of the fields when pressed. all the fields are in a single table.

J
Jane 5/23/2008
B
bochaka author 5/23/2008

Could you translate what these scripts do, in plain english

B
bochaka author 5/23/2008

Could you translate what these scripts do, in plain english



Hi

Ok ,thats a bit above me, I am trying something different.I created a custom view with a cut down version of the fields so I now need to know how to display the full table if the user clicks the VIEW CHECK BOX which i will rename full view.My question is how do i make the view (which is already on the page beside an edit check box)button to display the full record OR display the full "_litters_view.php" page with the record in it

J
Jane 5/26/2008

Hi,
there are two ways:

  1. add simple link to the list with all fields on the custom view page.
  2. add new DIV to this page and add unnecessary fields to this DIV. Then change style.display property of this DIV in the custom javascript code.

    More info here:

    http://www.w3schools.com/htmldom/prop_style_display.asp