![]() |
Sergey Kornilov admin 5/6/2016 |
It doesn't have to be a button, can be just a link like tablename_add.php?field1=someval1&field2=someval2&field3=someval3 $value = "<a href='tablename_add.php?field1='".$data["field1"] . "'>Add new</a>"; |
C
|
cjsaputo author 5/9/2016 |
I have inserted a field at the end of the record line on the list screen with the following custom code: It doesn't have to be a button, can be just a link like tablename_add.php?field1=someval1&field2=someval2&field3=someval3 Then on the Add page you can use $_GET["field1"] as a default value for one of those fields. To build such a link you can use 'View as' Custom, here is the sample code: $value = "<a href='tablename_add.php?field1='".$data["field1"] . "'>Add new</a>"; |
![]() |
lefty 5/11/2016 |
I have inserted a field at the end of the record line on the list screen with the following custom code: $value = "<a href='donors_add.php?fname='".$data["first_name"]."'>Donation</a>"; I also added the following to the donors_add screen in the first name field under Default value: $_GET["fname"] When I click the Donation text/link on the members list screen it does open the donors add screen but the first name is blank. I also want to pass the field values last_name and donorid, but I am not sure of the syntax for adding these to the $value command. Thanks in advance.
|
C
|
cjsaputo author 5/21/2016 |
I have made the changes and all of this is now working. First, thanks very much for the help. Second, after further testing I have realized a few design flaws and would like to see if anyone has a solution. As before, I will probably need code samples since I am not a coder.
|