This topic is locked

Passing values to add page from custom view

9/5/2015 3:52:20 PM
PHPRunner General questions
lefty author

Have a custom view with a field that is set to custom . want to pass other field values to add page in main table/view . I used this but don't fill field values on main view.
$value = "<a href='book_display_add.php?fldcategory='".$data["fldcatgegory"]."'&Pos='".$data["Pos"]."'>Book Item</a>";
also tried
$value = "<a href='book_display_add.php?fldcategory='".$data["fldcatgegory"]."'>Book Item</a>";

( just to see if category will load - to no avail )
Just loads add page . Note my add page has tabs so ; don't know if that is the problem And the fields are lookup fields where Pos is dependant on fldcategory on main table/view. So the custom view setup above has no edit or add capability just read.
This is just a custom of main view with photos and the neccessary value fields to pass to main table/view.

Sergey Kornilov admin 9/7/2015

Simply passing values via URL is not enough, you need somehow tell that Add page to use those values.
Typically it's done via setting a default value of field to something like $_GET["fldcategory"]