• Hello,

    I need to generate a field for export where the field has to contain an URL followed by the record ID. I use this to generate a QR code back to the specific record ion the database.

    On my export template I have the followings:

    ‘export_fields’ => array( ‘first_name’, ‘last_name’, ‘paid’, ‘registration’, ‘status’, ‘id’ )

    I need to export a generated field called “QR Code” which will have the following value: ‘https://someurl.com/checkid/?pdb=’+’id’ field from above.

    is that something I could accomplish easily from the ‘export_fields’ line above?

    Thanks a million for your help.

Viewing 1 replies (of 1 total)
  • Plugin Author xnau webdesign

    (@xnau)

    I don’t have much context for the answer to this, but generally speaking, there will be an array of the record values that you can use to construct your export value.

    In a Participants Database custom template, that array is available as $this->participant_values, and the record ID is available as $this->participant_id. So, you could build you value as someting like this:

    'https://someurl.com/checkid/?pdb=' . $this->participant_id'

    That should give you the general idea.

Viewing 1 replies (of 1 total)
  • The topic ‘pdb_list template with custom text in fields’ is closed to new replies.