You’re not getting the right URL for your record edit link. The URL should have the private ID code, it will look something like: ?pid=WKE45
Also make sure the “Participant Record Page” is properly configured, under the “Record Form Settings” tab in the plugin settings.
Thanks .. I recheck again. Still no joy.
This is the code I added to my custom template file.
”
<?php
/*
* The Edit link URL here.
*/
if ($this->field->name == ‘edit_link’) {
$this->field->link = $record->get_edit_link();
}
$this->field->print_value();
?>
”
Do I need to use a different function than get_edit_link() ?
I can manually add “edit-qb-member/?pid=BWXM3” and it works.
My edit button from the list has the url as edit-qb-member/?pdb=2
How do I change that?
To confirm I have the following settings
Record Form Settings – Participant Record Page = Edit QB Member
this page has the short code = [pdb_record]
List Display Settings – Single Record Link Field = Edit (edit_link)
Single Record Page = Edit QB Member (as Above)
Thanks again
glenn
Is this problem still in the que? Should I resend this a different way?
Thanks
-glenn
The “single record link field” should be a different one than the one you’re trying to put the edit link on.
I’m sorry I don’t understand. Are you saying that this code is wrong.
”
<?php
/*
* The Edit link URL here.
*/
if ($this->field->name == ‘edit_link’) {
$this->field->link = $record->get_edit_link();
}
$this->field->print_value();
?>
”
I should use a different field like “first_name” other than the field I created by way of the tutorial example.
Sorry just don’t understand your statement “The “single record link field” should be a different one than the one you’re trying to put the edit link on.”
Thanks
-glenn
The “single record link field” is a plugin setting under the “list” tab. Make sure that is not the same field as you’re trying to put the edit link on.